1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/dv: check av_malloc() return code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-01-23 18:15:43 +01:00
parent d36e66bb26
commit 72d99c8c26

View File

@ -472,6 +472,9 @@ static int dv_read_timecode(AVFormatContext *s) {
partial_frame_size);
RawDVContext *c = s->priv_data;
if (!partial_frame)
return AVERROR(ENOMEM);
ret = avio_read(s->pb, partial_frame, partial_frame_size);
if (ret < 0)
goto finish;