comparison libmpcodecs/vd_ffmpeg.c @ 33869:9b59c0e0948c

Fix neverending "DRI Failure" messages with frame multithreading.
author reimar
date Tue, 09 Aug 2011 19:15:19 +0000
parents 846cc6abc5ba
children 15e182c07689
comparison
equal deleted inserted replaced
33868:1714e25ded23 33869:9b59c0e0948c
649 if (!pic->buffer_hints) { 649 if (!pic->buffer_hints) {
650 if(ctx->b_count>1 || ctx->ip_count>2){ 650 if(ctx->b_count>1 || ctx->ip_count>2){
651 mp_msg(MSGT_DECVIDEO, MSGL_WARN, MSGTR_MPCODECS_DRIFailure); 651 mp_msg(MSGT_DECVIDEO, MSGL_WARN, MSGTR_MPCODECS_DRIFailure);
652 652
653 ctx->do_dr1=0; //FIXME 653 ctx->do_dr1=0; //FIXME
654 // For frame-multithreading these contexts aren't
655 // the same and must both be updated.
656 ctx->avctx->get_buffer=
654 avctx->get_buffer= avcodec_default_get_buffer; 657 avctx->get_buffer= avcodec_default_get_buffer;
658 ctx->avctx->reget_buffer=
655 avctx->reget_buffer= avcodec_default_reget_buffer; 659 avctx->reget_buffer= avcodec_default_reget_buffer;
656 if (pic->data[0]) 660 if (pic->data[0])
657 release_buffer(avctx, pic); 661 release_buffer(avctx, pic);
658 return avctx->get_buffer(avctx, pic); 662 return avctx->get_buffer(avctx, pic);
659 } 663 }