OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad934bc
)
avcodec/dpx: return different error code for unsupported depths
author
Paul B Mahol
<onemda@gmail.com>
Mon, 7 Oct 2013 09:10:00 +0000
(09:10 +0000)
committer
Paul B Mahol
<onemda@gmail.com>
Mon, 7 Oct 2013 09:10:00 +0000
(09:10 +0000)
Also give better message in such cases.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/dpx.c
patch
|
blob
|
history
diff --git
a/libavcodec/dpx.c
b/libavcodec/dpx.c
index
47906d7
..
1cfc258
100644
(file)
--- 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;
}