mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avcodec/cbs*: remove redundant const, it's already in typedef
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
parent
9ad20839fb
commit
fe425d97d1
9 changed files with 17 additions and 17 deletions
|
|
@ -891,7 +891,7 @@ void CBS_FUNC(delete_unit)(CodedBitstreamFragment *frag,
|
|||
|
||||
static void cbs_default_free_unit_content(AVRefStructOpaque opaque, void *content)
|
||||
{
|
||||
const CodedBitstreamUnitTypeDescriptor *desc = opaque.c;
|
||||
CodedBitstreamUnitTypeDescriptor *desc = opaque.c;
|
||||
|
||||
for (int i = 0; i < desc->type.ref.nb_offsets; i++) {
|
||||
void **ptr = (void**)((char*)content + desc->type.ref.offsets[i]);
|
||||
|
|
@ -899,11 +899,11 @@ static void cbs_default_free_unit_content(AVRefStructOpaque opaque, void *conten
|
|||
}
|
||||
}
|
||||
|
||||
static const CodedBitstreamUnitTypeDescriptor
|
||||
static CodedBitstreamUnitTypeDescriptor
|
||||
*cbs_find_unit_type_desc(CodedBitstreamContext *ctx,
|
||||
CodedBitstreamUnit *unit)
|
||||
{
|
||||
const CodedBitstreamUnitTypeDescriptor *desc;
|
||||
CodedBitstreamUnitTypeDescriptor *desc;
|
||||
int i, j;
|
||||
|
||||
if (!ctx->codec->unit_types)
|
||||
|
|
@ -927,7 +927,7 @@ static const CodedBitstreamUnitTypeDescriptor
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static void *cbs_alloc_content(const CodedBitstreamUnitTypeDescriptor *desc)
|
||||
static void *cbs_alloc_content(CodedBitstreamUnitTypeDescriptor *desc)
|
||||
{
|
||||
return av_refstruct_alloc_ext_c(desc->content_size, 0,
|
||||
(AVRefStructOpaque){ .c = desc },
|
||||
|
|
@ -939,7 +939,7 @@ static void *cbs_alloc_content(const CodedBitstreamUnitTypeDescriptor *desc)
|
|||
int CBS_FUNC(alloc_unit_content)(CodedBitstreamContext *ctx,
|
||||
CodedBitstreamUnit *unit)
|
||||
{
|
||||
const CodedBitstreamUnitTypeDescriptor *desc;
|
||||
CodedBitstreamUnitTypeDescriptor *desc;
|
||||
|
||||
av_assert0(!unit->content && !unit->content_ref);
|
||||
|
||||
|
|
@ -957,7 +957,7 @@ int CBS_FUNC(alloc_unit_content)(CodedBitstreamContext *ctx,
|
|||
|
||||
static int cbs_clone_noncomplex_unit_content(void **clonep,
|
||||
const CodedBitstreamUnit *unit,
|
||||
const CodedBitstreamUnitTypeDescriptor *desc)
|
||||
CodedBitstreamUnitTypeDescriptor *desc)
|
||||
{
|
||||
const uint8_t *src;
|
||||
uint8_t *copy;
|
||||
|
|
@ -1017,7 +1017,7 @@ fail:
|
|||
static int cbs_clone_unit_content(CodedBitstreamContext *ctx,
|
||||
CodedBitstreamUnit *unit)
|
||||
{
|
||||
const CodedBitstreamUnitTypeDescriptor *desc;
|
||||
CodedBitstreamUnitTypeDescriptor *desc;
|
||||
void *new_content;
|
||||
int err;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue