OSDN Git Service

ffmpeg: factorize quality calculation
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 6 Apr 2011 19:17:32 +0000 (21:17 +0200)
committerAnton Khirnov <anton@khirnov.net>
Thu, 12 May 2011 16:02:27 +0000 (18:02 +0200)
commit5da116a3fde9013846bd7b385cdde5ce2951869c
treefd2f200002389594819dace8e04ffaea647c2fe5
parentbbc572a2c4d6d71b1c43e7853dd8caba3234dff6
ffmpeg: factorize quality calculation

Calculate quality value once per stream in print_report().
Also fix segfault, as coded_frame can be NULL.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
ffmpeg.c