[FFmpeg-cvslog] avformat/rmdec: fix support for 0 sized mdpr
Michael Niedermayer
git at videolan.org
Sat Mar 28 12:25:46 CET 2015
ffmpeg | branch: release/2.6 | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 26 02:02:18 2015 +0100| [6a4d1325e200baad32ae0b77d516630650edfbf8] | committer: Michael Niedermayer
avformat/rmdec: fix support for 0 sized mdpr
Fixes Ticket4393
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit df43d03731c138bb113a66fd9c1b4d8cf2d879e5)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6a4d1325e200baad32ae0b77d516630650edfbf8
---
libavformat/rmdec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index 727d065..3506d07 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -320,6 +320,8 @@ int ff_rm_read_mdpr_codecdata(AVFormatContext *s, AVIOContext *pb,
if (codec_data_size > INT_MAX)
return AVERROR_INVALIDDATA;
+ if (codec_data_size == 0)
+ return 0;
avpriv_set_pts_info(st, 64, 1, 1000);
codec_pos = avio_tell(pb);
More information about the ffmpeg-cvslog
mailing list