]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mss4.c
ffmpeg: notify when the thread message queue blocks.
[ffmpeg] / libavcodec / mss4.c
index 07d90ed4f3cdef69bd64b4154c59e621c63d37da..00c31dda15d4960243da15b816f3280522a79dbd 100644 (file)
@@ -572,7 +572,8 @@ static int mss4_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
             ff_mss34_gen_quant_mat(c->quant_mat[i], quality, !i);
     }
 
-    init_get_bits8(&gb, buf + HEADER_SIZE, (buf_size - HEADER_SIZE));
+    if ((ret = init_get_bits8(&gb, buf + HEADER_SIZE, buf_size - HEADER_SIZE)) < 0)
+        return ret;
 
     mb_width  = FFALIGN(width,  16) >> 4;
     mb_height = FFALIGN(height, 16) >> 4;