You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/rmdec: fix support for 0 sized mdpr
Fixes Ticket4393 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -320,6 +320,8 @@ int ff_rm_read_mdpr_codecdata(AVFormatContext *s, AVIOContext *pb,
|
|||||||
|
|
||||||
if (codec_data_size > INT_MAX)
|
if (codec_data_size > INT_MAX)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
if (codec_data_size == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
avpriv_set_pts_info(st, 64, 1, 1000);
|
avpriv_set_pts_info(st, 64, 1, 1000);
|
||||||
codec_pos = avio_tell(pb);
|
codec_pos = avio_tell(pb);
|
||||||
|
Reference in New Issue
Block a user