avvidenc: Add thread-count parameter for libav encoders
authorGavin Hurlbut <gjhurlbu@gmail.com>
Tue, 18 Mar 2014 05:26:52 +0000 (22:26 -0700)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 19 May 2014 14:07:02 +0000 (15:07 +0100)
commit38fc56e207516ca58451cc818ebfbb1b9e7e0ccd
treea636bd225972c5536e7f9f096390e8e7bf9c00a3
parent7bb4f93de905d3b1c3ffa4d3dd3aff73cde0ff1f
avvidenc: Add thread-count parameter for libav encoders

As some libav encoders (such as MPEG2) use a thread_count parameter to control
how many threads to use, and since it was always being set to 0 (which uses
the default), suboptimal threading can sometimes be chosen.  This extends the
libav encoders to allow for a max-threads parameter which is passed into
the internal structure to control this knob if applicable to the encoder.

https://bugzilla.gnome.org/show_bug.cgi?id=726612
ext/libav/gstavvidenc.c
ext/libav/gstavvidenc.h