[SCM] libav/experimental: a64: Return correct error code on invalid data stream

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sat Aug 30 15:49:51 UTC 2014


The following commit has been merged in the experimental branch:
commit 0528226a05cc08b74197547fba0b1939bf68990d
Author: Nidhi Makhijani <nidhimj22 at gmail.com>
Date:   Wed Aug 13 17:54:55 2014 +0530

    a64: Return correct error code on invalid data stream
    
    Signed-off-by: Diego Biurrun <diego at biurrun.de>

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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list