Commit 72d99c8c authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/dv: check av_malloc() return code

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d36e66bb
...@@ -472,6 +472,9 @@ static int dv_read_timecode(AVFormatContext *s) { ...@@ -472,6 +472,9 @@ static int dv_read_timecode(AVFormatContext *s) {
partial_frame_size); partial_frame_size);
RawDVContext *c = s->priv_data; RawDVContext *c = s->priv_data;
if (!partial_frame)
return AVERROR(ENOMEM);
ret = avio_read(s->pb, partial_frame, partial_frame_size); ret = avio_read(s->pb, partial_frame, partial_frame_size);
if (ret < 0) if (ret < 0)
goto finish; goto finish;
......
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