mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
lavf/mov: Remove redundant code
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
This commit is contained in:
parent
dc16aeb390
commit
856363710f
@ -587,7 +587,7 @@ static int mov_read_dref(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
entries > (atom.size - 1) / MIN_DATA_ENTRY_BOX_SIZE + 1 ||
|
||||
entries >= UINT_MAX / sizeof(*sc->drefs))
|
||||
return AVERROR_INVALIDDATA;
|
||||
sc->drefs_count = 0;
|
||||
|
||||
av_free(sc->drefs);
|
||||
sc->drefs_count = 0;
|
||||
sc->drefs = av_mallocz(entries * sizeof(*sc->drefs));
|
||||
|
Loading…
Reference in New Issue
Block a user