]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/eatqi.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / eatqi.c
index 5b7ff39e4aec7aea43682210fc669bc7eeafffdc..9e773bcb0e4b226c752ba4ea191a4c53f5eb6490 100644 (file)
@@ -139,9 +139,10 @@ static int tqi_decode_frame(AVCodecContext *avctx,
     for (s->mb_x=0; s->mb_x<(avctx->width+15)/16; s->mb_x++)
     {
         if(tqi_decode_mb(s, t->block) < 0)
-            break;
+            goto end;
         tqi_idct_put(t, t->block);
     }
+    end:
 
     *data_size = sizeof(AVFrame);
     *(AVFrame*)data = t->frame;
@@ -166,5 +167,5 @@ AVCodec ff_eatqi_decoder = {
     .close          = tqi_decode_end,
     .decode         = tqi_decode_frame,
     .capabilities   = CODEC_CAP_DR1,
-    .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TQI Video"),
+    .long_name      = NULL_IF_CONFIG_SMALL("Electronic Arts TQI Video"),
 };