Commit df43d037 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/rmdec: fix support for 0 sized mdpr

Fixes Ticket4393
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1301aa55
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment