[mythtv-commits] Ticket #6746: xvmc_vld decoding does not work any more after ffmpeg sync (20797)

MythTV mythtv at cvs.mythtv.org
Fri Aug 21 08:55:49 UTC 2009


#6746: xvmc_vld decoding does not work any more after ffmpeg sync (20797)
-------------------------------------+--------------------------------------
 Reporter:  mythdev at telfort.nl       |        Owner:  janne   
     Type:  defect                   |       Status:  accepted
 Priority:  minor                    |    Milestone:  0.22    
Component:  MythTV - Video Playback  |      Version:  unknown 
 Severity:  medium                   |   Resolution:          
  Mlocked:  0                        |  
-------------------------------------+--------------------------------------

Comment(by mythdev at telfort.nl):

 I added some debug code around the error:

 {{{
     if (!render || render->xvmc_id != AV_XVMC_ID ||
         !render->data_blocks || !render->mv_blocks ||
         (unsigned int)render->allocated_mv_blocks   > INT_MAX/(64*6) ||
         (unsigned int)render->allocated_data_blocks > INT_MAX/64     ||
         !render->p_surface) {
         av_log(avctx, AV_LOG_ERROR,
                "Render token doesn't look as expected.\n");
         av_log(avctx, AV_LOG_ERROR, "Render: %i\n", render);
         av_log(avctx, AV_LOG_ERROR, "XVMC_ID: %i == %i ??\n",
 render->xvmc_id, AV_XVMC_ID);
         av_log(avctx, AV_LOG_ERROR, "data_blocks: %i\n",
 render->data_blocks);
         av_log(avctx, AV_LOG_ERROR, "mv_blocks: %i\n", render->mv_blocks);
         av_log(avctx, AV_LOG_ERROR, "allocated_mv_blocks: %i == %i ??\n",
 render->allocated_mv_blocks, (INT_MAX/(64*6)));
         av_log(avctx, AV_LOG_ERROR, "allocated_data_blocks: %i == %i
 ??\n", render->allocated_data_blocks, (INT_MAX/64));
         av_log(avctx, AV_LOG_ERROR, "surface: %i\n", render->p_surface);
         return -1; // make sure that this is a render packet
     }
 }}}

 Resulting in the following log info (-v playback,libav)

 {{{
 2009-08-21 10:52:35.762 [mpegvideo_xvmc_vld @ 0xb6fd04e0]Render token
 doesn't look as expected.
 2009-08-21 10:52:35.762 [mpegvideo_xvmc_vld @ 0xb6fd04e0]Render: 149056352
 2009-08-21 10:52:35.763 [mpegvideo_xvmc_vld @ 0xb6fd04e0]XVMC_ID:
 499585472 == 499585472 ??
 2009-08-21 10:52:35.764 [mpegvideo_xvmc_vld @ 0xb6fd04e0]data_blocks: 0
 2009-08-21 10:52:35.764 [mpegvideo_xvmc_vld @ 0xb6fd04e0]mv_blocks: 0
 2009-08-21 10:52:35.765 [mpegvideo_xvmc_vld @
 0xb6fd04e0]allocated_mv_blocks: 0 == 5592405 ??
 2009-08-21 10:52:35.766 [mpegvideo_xvmc_vld @
 0xb6fd04e0]allocated_data_blocks: 0 == 33554431 ??
 2009-08-21 10:52:35.767 [mpegvideo_xvmc_vld @ 0xb6fd04e0]surface:
 149054664
 }}}

 The problem seems to be that the render->data_blocks and the
 render->mv_blocks are zero.

 Does this help somehow?

 Regards.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/6746#comment:8>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list