[MPlayer-dev-eng] [PATCH] Do not call to th_decode_ycbcr_out() for packets representing a dropped (0-byte) frame.

Giorgio Vazzana mywing81 at gmail.com
Wed Jan 11 13:35:52 CET 2012


Hello,

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.

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,

Giorgio Vazzana
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-theora.diff
Type: text/x-patch
Size: 1764 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20120111/86c4ec15/attachment.bin>


More information about the MPlayer-dev-eng mailing list