aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-26 02:02:18 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-28 11:59:05 +0100
commit6a4d1325e200baad32ae0b77d516630650edfbf8 (patch)
tree0b4d5929e8fc4d691fb4610e0ba8944f72120c41
parentdfce316c12d867400fb132ff5094163e3d2634a3 (diff)
downloadffmpeg-6a4d1325e200baad32ae0b77d516630650edfbf8.tar.gz
avformat/rmdec: fix support for 0 sized mdpr
Fixes Ticket4393 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit df43d03731c138bb113a66fd9c1b4d8cf2d879e5) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/rmdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index 727d065b8f..3506d0712a 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);