[vlc-devel] [PATCH/RFC] video-encoder flushing at removing of track

Ilkka Ollakka ileoo at videolan.org
Wed Apr 28 15:01:44 CEST 2010


Hi,

Attached patch is something I mixed together somewhat quickly to fix
problem that transcoding we don't output all frames (eg x264 encoder
'eats' about 13 frames with default settings). 

Patch sends NULL-picture to encoder when track is going to be removed,
so encoder-module knows to flush buffers and output everything out. Can
cause some issues with eg transcode{}:gather{}:http{} -type chains,
didn't really test other than that it compiles and doesn't segfault and
closing on x264 encoder, it doesn't have any frames in buffer anymore.

Patch only handles video-transcode on transcode-module and x264-module,
so dirac/avcodec/dmo/ don't deal with sending NULL-picture to those
modules atm.

-- 
Ilkka Ollakka
There are no games on this system.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-transcode-send-NULL-picture-when-deleting-track.patch
Type: text/x-patch
Size: 3227 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100428/5481e8b0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100428/5481e8b0/attachment.sig>


More information about the vlc-devel mailing list