diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-03-26 02:02:18 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-28 11:59:05 +0100 |
commit | 6a4d1325e200baad32ae0b77d516630650edfbf8 (patch) | |
tree | 0b4d5929e8fc4d691fb4610e0ba8944f72120c41 | |
parent | dfce316c12d867400fb132ff5094163e3d2634a3 (diff) | |
download | ffmpeg-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.c | 2 |
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); |