ffmpeg: call pre_process_video_frame() only if decoding is needed
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Wed, 20 Apr 2011 11:13:09 +0000 (13:13 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 11 May 2011 05:32:37 +0000 (07:32 +0200)
commit3fd62c6e247468d792ce8f1d3c458017d1ea9eb5
tree711c7e99727124e3ce247deb1b2e7954b43f9429
parent2b95602e93226bd269676b0edcda5322b5be8444
ffmpeg: call pre_process_video_frame() only if decoding is needed

In output_packet(), move the pre_process_video_frame() call inside the
if (ist->decoding_needed) { } block. This way
pre_process_video_frame() is not called when stream-copy has been
selected.

Also simplify.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
ffmpeg.c