[FFmpeg-devel] [PATCH] Add a CODEC_CAP_USE_INPUT_BUFFER capabilities flag
Mon Oct 6 00:28:42 CEST 2008
the new flag will be useful for example in libavfilter when the output
frame is accessed *after* the call to av_packet_free().
For example it could be used like this:
if (is->video_st->codec->codec->capabilities & CODEC_CAP_USE_INPUT_BUFFER)
pkt->destruct = av_destruct_packet_nofree;
This looks nicer than the use of a codec id check, even in the case
of rawdec being the only codec having this capability (I don't
know if there are other ones like this).
I'm omitting minor version bump in the patch.
FFmpeg = Faboulous & Fiendish Merciful Portentous Energized Game
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 994 bytes
Desc: not available
More information about the ffmpeg-devel