[FFmpeg-devel] [PATCH 2/3] cllc: Print a message when coding type 2 is found

Derek Buitenhuis derek.buitenhuis at gmail.com
Fri Aug 10 19:07:10 CEST 2012


As I am unable to figure out how to create an RGBQ sample with the binary
CLLC encoder, print a message asking for samples.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
 libavcodec/cllc.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/cllc.c b/libavcodec/cllc.c
index dde2a39..ddf64f2 100644
--- a/libavcodec/cllc.c
+++ b/libavcodec/cllc.c
@@ -224,6 +224,10 @@ static int cllc_decode_frame(AVCodecContext *avctx, void *data,
             return ret;
 
         break;
+    case 2:
+        av_log(avctx, AV_LOG_ERROR,
+               "Coding type 2 (RGBQ) is unsupported, please send a sample!\n");
+        return AVERROR_INVALIDDATA;
     default:
         av_log(avctx, AV_LOG_ERROR, "Unknown coding type: %d.\n", coding_type);
         return AVERROR_INVALIDDATA;
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list