Revision b7ec19d3 libavcodec/mpeg12.c

View differences:

libavcodec/mpeg12.c
1260 1260
    Mpeg1Context *s1 = avctx->priv_data;
1261 1261
    MpegEncContext *s = &s1->mpeg_enc_ctx;
1262 1262
    int ret;
1263
    DCTELEM block[6][64];
1264 1263

  
1265 1264
    start_code = (start_code - 1) & 0xff;
1266 1265
    if (start_code >= s->mb_height)
......
1288 1287
    }
1289 1288

  
1290 1289
    for(;;) {
1291
        memset(block, 0, sizeof(block));
1292
        ret = mpeg_decode_mb(s, block);
1290
        memset(s->block, 0, sizeof(s->block));
1291
        ret = mpeg_decode_mb(s, s->block);
1293 1292
        dprintf("ret=%d\n", ret);
1294 1293
        if (ret < 0)
1295 1294
            return -1;
1296 1295
        if (ret == 1)
1297 1296
            break;
1298
        MPV_decode_mb(s, block);
1297
        MPV_decode_mb(s, s->block);
1299 1298
    }
1300 1299
    
1301 1300
    /* end of slice reached */

Also available in: Unified diff