[FFmpeg-cvslog] avformat/ivfdec: Change the length field to 32 bits

Raphaël Zumer git at videolan.org
Wed Oct 9 04:58:57 EEST 2019


ffmpeg | branch: master | Raphaël Zumer <rzumer at tebako.net> | Tue Oct  1 13:40:54 2019 -0400| [9d92403add22b29cb908826005af7783b9340df8] | committer: Vittorio Giovara

avformat/ivfdec: Change the length field to 32 bits

Signed-off-by: Raphaël Zumer <rzumer at tebako.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9d92403add22b29cb908826005af7783b9340df8
---

 libavformat/ivfdec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/ivfdec.c b/libavformat/ivfdec.c
index 40ae464b76..4a802573e7 100644
--- a/libavformat/ivfdec.c
+++ b/libavformat/ivfdec.c
@@ -53,7 +53,8 @@ static int read_header(AVFormatContext *s)
     st->codecpar->height     = avio_rl16(s->pb);
     time_base.den         = avio_rl32(s->pb);
     time_base.num         = avio_rl32(s->pb);
-    st->duration          = avio_rl64(s->pb);
+    st->duration          = avio_rl32(s->pb);
+    avio_skip(s->pb, 4); // unused
 
     st->need_parsing      = AVSTREAM_PARSE_HEADERS;
 



More information about the ffmpeg-cvslog mailing list