summaryrefslogtreecommitdiff
path: root/libavfilter/vf_uspp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-13 16:38:44 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-13 16:38:44 +0100
commit354fda7698bfeb0553d41ef8fbbf6d8b02383bf8 (patch)
treee45b9fa5a442282f9a7c605e2dd59727d8710955 /libavfilter/vf_uspp.c
parent5d0cfb58ef995dc17a12f42c5e5ba2f360e6655d (diff)
avfilter/vf_uspp: fix used pix_fmt
Found-by: carl Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_uspp.c')
-rw-r--r--libavfilter/vf_uspp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_uspp.c b/libavfilter/vf_uspp.c
index c275862861..fa32a861d1 100644
--- a/libavfilter/vf_uspp.c
+++ b/libavfilter/vf_uspp.c
@@ -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;