[FFmpeg-cvslog] avcodec/dpx: check packing
Michael Niedermayer
git at videolan.org
Sat Oct 5 02:03:44 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 5 01:38:47 2013 +0200| [a927276fcc20c99f6e311fb9aa679d4ba1ba7e99] | committer: Michael Niedermayer
avcodec/dpx: check packing
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a927276fcc20c99f6e311fb9aa679d4ba1ba7e99
---
libavcodec/dpx.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index 9609a52..f949264 100644
--- a/libavcodec/dpx.c
+++ b/libavcodec/dpx.c
@@ -129,6 +129,11 @@ static int decode_frame(AVCodecContext *avctx,
packing = read16(&buf, endian);
encoding = read16(&buf, endian);
+ if (packing > 1) {
+ avpriv_report_missing_feature(avctx,
+ "Unsupported packing %d\n", packing);
+ return AVERROR_PATCHWELCOME;
+ }
if (encoding) {
avpriv_report_missing_feature(avctx,
"Unsupported encoding %d\n", encoding);
More information about the ffmpeg-cvslog
mailing list