]> git.sesse.net Git - vlc/commit
Set up the encoder after the transcode filter chain
authorSteinar H. Gunderson <steinar+vlc@gunderson.no>
Sat, 8 Jun 2013 21:11:16 +0000 (23:11 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 11 Jun 2013 19:03:31 +0000 (22:03 +0300)
commitb269a1e6b64651a94a0023ea947d4894d2667798
tree66c2f48f1d8c03a5e46f6a590a057c6da29bcb8c
parent1f84bc065754ca1cdd0976d818ed1454e9e2b2cd
Set up the encoder after the transcode filter chain

The filter chain can change the format (in particular by changing
colorspace, or by deinterlacing to twice the frame rate), so wait with
initializing the encoder format until the filter chain has been set up.

It might be that the encoder itself demands format changes, e.g. due to
chroma demands or to make the resolution divisible by 16, but we can add
that extra filter to the end of the filter chain after the encoder
parameters have been set up.

Also fix a bug where we'd leak the filter chain when changing it during
the encode.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/stream_out/transcode/video.c