[MPlayer-dev-eng] [PATCH] patch for h264 parse sps'emulation bug

JulionLiang at viatech.com.cn JulionLiang at viatech.com.cn
Wed Jun 11 09:50:15 CEST 2008


 
Hi,

      The bug is that  h264 file whose  SPS include 0x00 00 03 03 bytes,

      and the first emulation 0x03 byte will be skipped from *buf when
call  function 
      video_read_properties(),and forward call function mp_unescape03(),
the secoond 03 byte
      is not emulation byte and is the useful sps data, so the byte
stream becomes 0x00 00 03
      in the decoder , but the 0x03 byte will be recognized as emulation
byte, 
      and will be skipped, finally it will bring bug.

      copy all the SPS data from *buf to *dest, skip emulation byte and
decode sps from *dest ,
      make *buf remain the same, the emulation byte 0x03 will be skipped
in decoder. 

      The concrete solution refers to patch.


Thanks & Best Regards! 

--Julion

 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: h264_parse_sps_bug.patch
Type: application/octet-stream
Size: 3230 bytes
Desc: h264_parse_sps_bug.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080611/cf3cf62c/attachment.obj>


More information about the MPlayer-dev-eng mailing list