mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/av1dec: don't update temporal_unit_size after it's no longer used
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
2250dc4044
commit
b6e92d928f
@ -154,13 +154,11 @@ static int annexb_probe(const AVProbeData *p)
|
||||
if (ret < 0 || ((int64_t)frame_unit_size + ret) > temporal_unit_size)
|
||||
return 0;
|
||||
cnt += ret;
|
||||
temporal_unit_size -= ret;
|
||||
ret = leb(&pb, &obu_unit_size);
|
||||
if (ret < 0 || ((int64_t)obu_unit_size + ret) >= frame_unit_size)
|
||||
return 0;
|
||||
cnt += ret;
|
||||
|
||||
temporal_unit_size -= obu_unit_size + ret;
|
||||
frame_unit_size -= obu_unit_size + ret;
|
||||
|
||||
avio_skip(&pb, obu_unit_size);
|
||||
@ -192,7 +190,6 @@ static int annexb_probe(const AVProbeData *p)
|
||||
if (ret >= 0)
|
||||
return ret;
|
||||
|
||||
temporal_unit_size -= obu_unit_size + ret;
|
||||
frame_unit_size -= obu_unit_size + ret;
|
||||
} while (frame_unit_size);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user