mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/dv: check av_malloc() return code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d36e66bb26
commit
72d99c8c26
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user