win32: explicitely enable NLS
dtv: fix ISDB-S tuning

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
Revert "contrib: ffmpeg: disable non-h264 hwaccels (fixes #8537)"

This reverts commit c16bc980cbf1e3b8d3cac2f35f584d8b5b83fa5b.
This is no longer applicable with current libav HEAD.
freetype: fix double free
freetype: fix memory leak
Add GoToMeeting FOURCC
Avcodec: Map G2M4 FourCC
libvlc_media_new_path: allow UNC paths
Contribs: FLAC 1.3.0 is out
avcodec: unused variable
avcodec: adjust MT contention scope
vdpau: fallback to NV12 if YV12 is unsupported (fixes #8495)
Qt: ConvertDialog: Don't enforce extension on raw dump
Qt: ConvertDialog: rewrite logic
Qt: OpenFile: Use QGroupBox for subs.

And don't make use of confusing raised QFrame panels.
Fix frame rate output from deinterlacer

In the deinterlacer module, when b_double_rate is set, actually
double the frame rate in the output format.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
In transcoding, move frame output into its own function

This function was already getting very long and complex,
and we'll soon be moving it into two more for loops.

This also fixes a bug where output packets from the
encoder thread (with --sout-transcode-threads larger than zero)
could get lost, since we could extract the output blocks twice
and thus overwrite the output parameter.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
Make the video transcoder support filter chains that output multiple frames

In the video transcoder, call the filters as many times as needed
(second and following time with NULL input) until they stop outputting
frames. This means that frame-doubling filters, such as the yadif2x
deinterlacer, get all their frames output.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
In video transcode, use the correct format for calculations

The current code doesn't properly take into account that filters
can change the format (including the frame rate) from that of the
decoder's output, and thus uncritically use the decoder's output
format where it should use the output of the decoder -> filter
-> user_filter chain.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
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>