[MPlayer-dev-eng] [PATCH] Do not call to th_decode_ycbcr_out() for packets representing a dropped (0-byte) frame.
Carl Eugen Hoyos
cehoyos at ag.or.at
Sat Jan 14 23:25:38 CET 2012
Giorgio Vazzana <mywing81 <at> gmail.com> writes:
> this is the last patch I wanted to submit. The subject pretty much
> says it all: in case of 0-byte packets we don't need to call
> th_decode_ycbcr_out() to decode the frame because we have a duplicated
> frame, and so we can use the last frame.
Is this related in any way to the problem mentioned here?
http://thread.gmane.org/gmane.comp.video.mplayer.devel/59554/focus=59565
> Note: currently we are returning NULL in decode() if (!data || !len)
> so basically we are discarding duplicated frames. When/if the
> demuxer(s) will get fixed, we can delete that 'if' and things will
> work properly at the decoder end.
>
> After this patch, the file needs a reindent, I don't know if there is
> an automated program/script that can do it. If not let me know and
> I'll do it by hand, after all it's a small file. Regards,
Don't worry, whoever applies can do that, or ask for a patch later.
Carl Eugen
More information about the MPlayer-dev-eng
mailing list