diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-09-11 10:10:55 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-09-11 11:06:44 +0000 |
commit | f2e614e7e9cb294fe4d14e36637709c57884f64c (patch) | |
tree | fb4e8cadfa661bb52acb362fc8d4519057716d09 /libavformat/ffmetadec.c | |
parent | 60caa3d8bc11677b90b791398ac7cca68a7389be (diff) | |
download | ffmpeg-f2e614e7e9cb294fe4d14e36637709c57884f64c.tar.gz |
avformat/ffmetadec: return meaningful error codes
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/ffmetadec.c')
-rw-r--r-- | libavformat/ffmetadec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/ffmetadec.c b/libavformat/ffmetadec.c index 4bdc98a3d4..19c14e4ade 100644 --- a/libavformat/ffmetadec.c +++ b/libavformat/ffmetadec.c @@ -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 |