ffmpeg | branch: master | Nidhi Makhijani <nidhim...@gmail.com> | Wed Aug 13 18:12:55 2014 +0530| [0528226a05cc08b74197547fba0b1939bf68990d] | committer: Diego Biurrun
a64: Return correct error code on invalid data stream Signed-off-by: Diego Biurrun <di...@biurrun.de> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0528226a05cc08b74197547fba0b1939bf68990d --- libavformat/a64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/a64.c b/libavformat/a64.c index da8e310..c8e8e64 100644 --- a/libavformat/a64.c +++ b/libavformat/a64.c @@ -38,7 +38,7 @@ static int a64_write_header(AVFormatContext *s) if (avctx->extradata_size < 4) { av_log(s, AV_LOG_ERROR, "Missing extradata\n"); - return AVERROR(EINVAL); + return AVERROR_INVALIDDATA; } switch (avctx->codec->id) { @@ -53,7 +53,7 @@ static int a64_write_header(AVFormatContext *s) header[4] = 3; break; default: - return AVERROR(EINVAL); + return AVERROR_INVALIDDATA; } avio_write(s->pb, header, 2); return 0; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog