comparison libmpcodecs/vd_ffmpeg.c @ 35615:26a91d76cfda

Disable direct rendering for non-ref frames only again, it still seems to cause issues that need to be debugged and fixed.
author reimar
date Mon, 24 Dec 2012 14:22:46 +0000
parents b1b262fe38a4
children 4ba6b8d3197e
comparison
equal deleted inserted replaced
35614:cd707857326e 35615:26a91d76cfda
245 if(use_slices && (lavc_codec->capabilities&CODEC_CAP_DRAW_HORIZ_BAND) && !do_vis_debug) 245 if(use_slices && (lavc_codec->capabilities&CODEC_CAP_DRAW_HORIZ_BAND) && !do_vis_debug)
246 ctx->do_slices=1; 246 ctx->do_slices=1;
247 247
248 if(lavc_codec->capabilities&CODEC_CAP_DR1 && !do_vis_debug && lavc_codec->id != CODEC_ID_INTERPLAY_VIDEO && lavc_codec->id != CODEC_ID_VP8) 248 if(lavc_codec->capabilities&CODEC_CAP_DR1 && !do_vis_debug && lavc_codec->id != CODEC_ID_INTERPLAY_VIDEO && lavc_codec->id != CODEC_ID_VP8)
249 ctx->do_dr1=1; 249 ctx->do_dr1=1;
250 ctx->nonref_dr = lavc_codec->id == CODEC_ID_H264; 250 // TODO: fix and enable again. This currently causes issues when using filters
251 // and seeking, usually failing with the "Ran out of numbered images" message,
252 // but bugzilla #2118 might be related as well.
253 //ctx->nonref_dr = lavc_codec->id == CODEC_ID_H264;
251 ctx->ip_count= ctx->b_count= 0; 254 ctx->ip_count= ctx->b_count= 0;
252 255
253 ctx->pic = avcodec_alloc_frame(); 256 ctx->pic = avcodec_alloc_frame();
254 ctx->avctx = avcodec_alloc_context3(lavc_codec); 257 ctx->avctx = avcodec_alloc_context3(lavc_codec);
255 avctx = ctx->avctx; 258 avctx = ctx->avctx;