mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avformat/ffmetadec: return meaningful error codes
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
60caa3d8bc
commit
f2e614e7e9
@ -135,7 +135,7 @@ static int read_header(AVFormatContext *s)
|
||||
AVStream *st = avformat_new_stream(s, NULL);
|
||||
|
||||
if (!st)
|
||||
return -1;
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
st->codec->codec_type = AVMEDIA_TYPE_DATA;
|
||||
st->codec->codec_id = AV_CODEC_ID_FFMETADATA;
|
||||
@ -145,7 +145,7 @@ static int read_header(AVFormatContext *s)
|
||||
AVChapter *ch = read_chapter(s);
|
||||
|
||||
if (!ch)
|
||||
return -1;
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
m = &ch->metadata;
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user