[FFmpeg-trac] #685(undetermined:new): H264 decoder error

FFmpeg trac at avcodec.org
Fri Nov 25 12:09:54 CET 2011


#685: H264 decoder error
-------------------------------------+-------------------------------------
             Reporter:  anatoly      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by anatoly):

 I've made some investigations and found that the problem may be in flag
 dct8x8_allowed. Thus the following patch makes file "frame.264" decodable.

 {{{
 diff --git a/libavcodec/h264_cavlc.c b/libavcodec/h264_cavlc.c
 index b0dc999..ff39d3f 100644
 --- a/libavcodec/h264_cavlc.c
 +++ b/libavcodec/h264_cavlc.c
 @@ -799,10 +799,12 @@ decode_intra_mb:
          if(IS_INTRA4x4(mb_type)){
              int i;
              int di = 1;
 +            /*
              if(dct8x8_allowed && get_bits1(&s->gb)){
                  mb_type |= MB_TYPE_8x8DCT;
                  di = 4;
              }
 +            */

  //                fill_intra4x4_pred_table(h);
              for(i=0; i<16; i+=di){

 }}}



 This is an ugly fix but it may shows the way to resolve this issue.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/685#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list