avfilter/vf_uspp: fix used pix_fmt
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 13 Dec 2014 15:38:44 +0000 (16:38 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 13 Dec 2014 15:38:44 +0000 (16:38 +0100)
Found-by: carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_uspp.c

index c275862..fa32a86 100644 (file)
@@ -342,7 +342,7 @@ static int config_input(AVFilterLink *inlink)
         avctx_enc->time_base = (AVRational){1,25};  // meaningless
         avctx_enc->gop_size = 300;
         avctx_enc->max_b_frames = 0;
-        avctx_enc->pix_fmt = AV_PIX_FMT_YUV420P;
+        avctx_enc->pix_fmt = inlink->format;
         avctx_enc->flags = CODEC_FLAG_QSCALE | CODEC_FLAG_LOW_DELAY;
         avctx_enc->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL;
         avctx_enc->global_quality = 123;