[Mesa-dev] [PATCH 7/7] g3dvl: Rewrite the mpeg 1&2 bitstream parser

Christian König deathsimple at vodafone.de
Thu Sep 1 07:26:56 PDT 2011

Am Montag, den 29.08.2011, 23:29 +0100 schrieb Andy Furniss:
> Ironically your question made me search to see if I had any other mpeg2 
> HD not from w6rz - I found one and it has issues with -vf ffmpeg12vdpau :-)
Looks like there is some garbage at the end of the stream, mplayer is
also complaining nicely about "TS_PARSE: COULDN'T SYNC".

> I've never tested with this before so don't know if it's a regression, 
> it renders OK but hangs at the end and then may or may not segfault.
> If it doesn't segfault then ddd will show it looping round int the same 
> function as shown in my screenshot, which shows the bt and value of 
> num_skipped_macroblocks.
I can't reproduce the crash, maybe my version of mplayer isn't feeding
the garbage to the decoder any more. Anyway attached is a patch that
adds some extra checks to the macroblock decoding, please give it a try.


More information about the mesa-dev mailing list