mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-23 02:11:14 +08:00
avcodec/cbs: Fix shadowing
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -967,7 +967,7 @@ static int cbs_clone_noncomplex_unit_content(void **clonep,
|
||||
{
|
||||
const uint8_t *src;
|
||||
uint8_t *copy;
|
||||
int err, i;
|
||||
int err;
|
||||
|
||||
av_assert0(unit->content);
|
||||
src = unit->content;
|
||||
@@ -982,7 +982,7 @@ static int cbs_clone_noncomplex_unit_content(void **clonep,
|
||||
*(ptr + 1) = NULL;
|
||||
}
|
||||
|
||||
for (i = 0; i < desc->type.ref.nb_offsets; i++) {
|
||||
for (int i = 0; i < desc->type.ref.nb_offsets; i++) {
|
||||
const uint8_t *const *src_ptr = (const uint8_t* const*)(src + desc->type.ref.offsets[i]);
|
||||
const AVBufferRef *src_buf = *(AVBufferRef**)(src_ptr + 1);
|
||||
uint8_t **copy_ptr = (uint8_t**)(copy + desc->type.ref.offsets[i]);
|
||||
|
||||
Reference in New Issue
Block a user