FFmpeg/FFmpeg — pull request #79 by koying (2014-07-26 07:20:43+00:00)
Title: FIX: [h264_mp4toannexb] issue when sps/pps are already in the bistream

This fix an issue in AnnexB conversion where "hiccups" are to be seen if sps/pps are already in the stream.

It's a follow-up to http://ffmpeg.org/pipermail/ffmpeg-devel/2014-March/155911.html , which solved most of the issues but not all.
See https://github.com/xbmc/xbmc/pull/5042 for the XBMC discussion.

My best guess for now is that https://github.com/FFmpeg/FFmpeg/commit/289b149cecb381522cc9ccdf382825330169c655#diff-0e332ff3db7b093bfee7dda7ed82ce19 is flawed if non-idr pics have sps/pps of their own. Then ffmpeg adds extradata to non-idr pics, too.