diff options
author | Nidhi Makhijani <nidhimj22@gmail.com> | 2014-07-06 00:28:56 +0530 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-07-06 07:53:58 -0700 |
commit | 77fc7b76726719746ca45df6c4a62c41abad506e (patch) | |
tree | 31c240a4876cf37f024146c880889bcfe2e6e29a /libavformat | |
parent | 865461099e062de5a3a109c2a5be98004c11d8bd (diff) | |
download | ffmpeg-streaming-77fc7b76726719746ca45df6c4a62c41abad506e.zip ffmpeg-streaming-77fc7b76726719746ca45df6c4a62c41abad506e.tar.gz |
vc1test: Return proper error codes
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/vc1test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c index 859188f..8fabf7d 100644 --- a/libavformat/vc1test.c +++ b/libavformat/vc1test.c @@ -51,12 +51,12 @@ static int vc1t_read_header(AVFormatContext *s) frames = avio_rl24(pb); if(avio_r8(pb) != 0xC5 || avio_rl32(pb) != 4) - return -1; + return AVERROR_INVALIDDATA; /* init video codec */ st = avformat_new_stream(s, NULL); if (!st) - return -1; + return AVERROR(ENOMEM); st->codec->codec_type = AVMEDIA_TYPE_VIDEO; st->codec->codec_id = AV_CODEC_ID_WMV3; @@ -67,7 +67,7 @@ static int vc1t_read_header(AVFormatContext *s) st->codec->height = avio_rl32(pb); st->codec->width = avio_rl32(pb); if(avio_rl32(pb) != 0xC) - return -1; + return AVERROR_INVALIDDATA; avio_skip(pb, 8); fps = avio_rl32(pb); if(fps == 0xFFFFFFFF) |