OSDN Git Service

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)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Thu, 21 Apr 2011 10:08:42 +0000 (12:08 +0200)
commit7046b63e69a5a49a8f575d89d8f0fc6680975382
treebb778ef57992f7c69995987de0cd454bb6b5386b
parent6d6351483fe94b7ae4938717b477014f42500145
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>
ffmpeg.c