[FFmpeg-cvslog] avformat/av1dec: don't update temporal_unit_size after it's no longer used
James Almer
git at videolan.org
Sun Aug 16 05:31:55 EEST 2020
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Aug 15 23:27:44 2020 -0300| [b6e92d928f3ec6aae9bdddc0e3672553745f5dc5] | committer: James Almer
avformat/av1dec: don't update temporal_unit_size after it's no longer used
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b6e92d928f3ec6aae9bdddc0e3672553745f5dc5
---
libavformat/av1dec.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libavformat/av1dec.c b/libavformat/av1dec.c
index c06f5303f5..10c4560968 100644
--- a/libavformat/av1dec.c
+++ b/libavformat/av1dec.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list