]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/xan.c
h264: fix cur_chroma_format_idc with slice multithreading.
[ffmpeg] / libavcodec / xan.c
index 21b530200054b7759de313867babdb3f016aedd5..edd4fe8197041daf5f9b6af74c702cb7359776a0 100644 (file)
@@ -555,8 +555,10 @@ static int xan_decode_frame(AVCodecContext *avctx,
         }
         buf_size = buf_end - buf;
     }
-    if (s->palettes_count <= 0)
+    if (s->palettes_count <= 0) {
+        av_log(s->avctx, AV_LOG_ERROR, "No palette found\n");
         return AVERROR_INVALIDDATA;
+    }
 
     if ((ret = avctx->get_buffer(avctx, &s->current_frame))) {
         av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed\n");