[FFmpeg-cvslog] avformat/cinedec: ask for sample when biBitCount isnt supported

Michael Niedermayer git at videolan.org
Sun Apr 6 01:41:35 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Apr  6 00:34:09 2014 +0200| [1fec720afa49ce8ddd13b3955aa2a0ac25e0afac] | committer: Michael Niedermayer

avformat/cinedec: ask for sample when biBitCount isnt supported

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1fec720afa49ce8ddd13b3955aa2a0ac25e0afac
---

 libavformat/cinedec.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavformat/cinedec.c b/libavformat/cinedec.c
index 5e16032..3720884 100644
--- a/libavformat/cinedec.c
+++ b/libavformat/cinedec.c
@@ -125,8 +125,10 @@ static int cine_read_header(AVFormatContext *avctx)
         return AVERROR_INVALIDDATA;
 
     biBitCount = avio_rl16(pb);
-    if (biBitCount != 8 && biBitCount != 16 && biBitCount != 24 && biBitCount != 48)
+    if (biBitCount != 8 && biBitCount != 16 && biBitCount != 24 && biBitCount != 48) {
+        avpriv_request_sample(avctx, "unsupported biBitCount %i", biBitCount);
         return AVERROR_INVALIDDATA;
+    }
 
     switch (avio_rl32(pb)) {
     case BMP_RGB:



More information about the ffmpeg-cvslog mailing list