avcodec/dpx: return proper error code for unsupported files
authorPaul B Mahol <onemda@gmail.com>
Sat, 5 Oct 2013 12:18:28 +0000 (12:18 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sat, 5 Oct 2013 12:26:21 +0000 (12:26 +0000)
Also use avpriv_report_missing_feature().

Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/dpx.c

index f949264..600a735 100644 (file)
@@ -158,8 +158,8 @@ static int decode_frame(AVCodecContext *avctx,
             elements = 3;
             break;
         default:
-            av_log(avctx, AV_LOG_ERROR, "Unsupported descriptor %d\n", descriptor);
-            return AVERROR_INVALIDDATA;
+            avpriv_report_missing_feature(avctx, "Descriptor %d", descriptor);
+            return AVERROR_PATCHWELCOME;
     }
 
     switch (bits_per_color) {