[FFmpeg-devel] [PATCH] mdec.c cleanups

Alexander Strange astrange
Fri Jun 27 04:03:56 CEST 2008


Inspired by Michael's psxstr cleanup.

1- Use reget_buffer().
2- Move setting the three different ways of being a keyframe into  
decode_init, since they never change.
3- Remove unused PutBitContext since there's no encoder, and probably  
won't be one.
4- Fix and uncomment the code setting qscale_table.
5- Remove commented-out code.
6- Remove pointless emms_c(). Several other codecs have these lying  
around too.
7- Remove pointless casting to AVFrame*.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1-reget-buffer.diff
Type: text/x-diff
Size: 657 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080626/dcc152b5/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2-avframe-settings.diff
Type: text/x-diff
Size: 698 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080626/dcc152b5/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3-no-pb.diff
Type: text/x-diff
Size: 296 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080626/dcc152b5/attachment-0002.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4-set-qscale.diff
Type: text/x-diff
Size: 470 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080626/dcc152b5/attachment-0003.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5-unused-comments.diff
Type: text/x-diff
Size: 1402 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080626/dcc152b5/attachment-0004.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6-emms.diff
Type: text/x-diff
Size: 283 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080626/dcc152b5/attachment-0005.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7-avframe-casts.diff
Type: text/x-diff
Size: 1112 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080626/dcc152b5/attachment-0006.diff>



More information about the ffmpeg-devel mailing list