aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dpx.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-10-07 09:10:00 +0000
committerPaul B Mahol <onemda@gmail.com>2013-10-07 09:10:00 +0000
commit62078f25ee9a012b09eeea0940f3290cea4a653b (patch)
tree38b905b4627bd3769c9c92fd9a09bc1d5f7d8537 /libavcodec/dpx.c
parentad934bc353b22ed80276039a4adf9633949b6d2c (diff)
downloadandroid_external_ffmpeg-62078f25ee9a012b09eeea0940f3290cea4a653b.tar.gz
android_external_ffmpeg-62078f25ee9a012b09eeea0940f3290cea4a653b.tar.bz2
android_external_ffmpeg-62078f25ee9a012b09eeea0940f3290cea4a653b.zip
avcodec/dpx: return different error code for unsupported depths
Also give better message in such cases. Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/dpx.c')
-rw-r--r--libavcodec/dpx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index 47906d72c2..1cfc258577 100644
--- a/libavcodec/dpx.c
+++ b/libavcodec/dpx.c
@@ -193,8 +193,12 @@ static int decode_frame(AVCodecContext *avctx,
}
total_size = 2 * avctx->width * avctx->height * elements;
break;
+ case 1:
+ case 32:
+ case 64:
+ avpriv_report_missing_feature(avctx, "Depth %d", bits_per_color);
+ return AVERROR_PATCHWELCOME;
default:
- av_log(avctx, AV_LOG_ERROR, "Unsupported color depth : %d\n", bits_per_color);
return AVERROR_INVALIDDATA;
}