[FFmpeg-cvslog] avcodec/dpx: return proper error code for unsupported files
Paul B Mahol
git at videolan.org
Sat Oct 5 14:30:39 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Oct 5 12:18:28 2013 +0000| [c3e0fbc507fca3f3599fd3a9eb39eda730b54e39] | committer: Paul B Mahol
avcodec/dpx: return proper error code for unsupported files
Also use avpriv_report_missing_feature().
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c3e0fbc507fca3f3599fd3a9eb39eda730b54e39
---
libavcodec/dpx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index f949264..600a735 100644
--- a/libavcodec/dpx.c
+++ b/libavcodec/dpx.c
@@ -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) {
More information about the ffmpeg-cvslog
mailing list