[MPlayer-cvslog] r34807 - trunk/libmpcodecs/vf_uspp.c
reimar
subversion at mplayerhq.hu
Sat Mar 10 20:19:02 CET 2012
Author: reimar
Date: Sat Mar 10 20:19:02 2012
New Revision: 34807
Log:
uspp filter: set no_bitstream option, since we do not care about the
generated bitstream.
About 20% faster.
Modified:
trunk/libmpcodecs/vf_uspp.c
Modified: trunk/libmpcodecs/vf_uspp.c
==============================================================================
--- trunk/libmpcodecs/vf_uspp.c Sat Mar 10 19:45:59 2012 (r34806)
+++ trunk/libmpcodecs/vf_uspp.c Sat Mar 10 20:19:02 2012 (r34807)
@@ -224,6 +224,7 @@ static int config(struct vf_instance *vf
}
for(i=0; i< (1<<vf->priv->log2_count); i++){
AVCodecContext *avctx_enc;
+ AVDictionary *opts = NULL;
avctx_enc=
vf->priv->avctx_enc[i]= avcodec_alloc_context3(NULL);
@@ -236,7 +237,9 @@ static int config(struct vf_instance *vf
avctx_enc->flags = CODEC_FLAG_QSCALE | CODEC_FLAG_LOW_DELAY;
avctx_enc->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL;
avctx_enc->global_quality= 123;
- avcodec_open2(avctx_enc, enc, NULL);
+ av_dict_set(&opts, "no_bitstream", "1", 0);
+ avcodec_open2(avctx_enc, enc, &opts);
+ av_dict_free(&opts);
assert(avctx_enc->codec);
}
vf->priv->frame= avcodec_alloc_frame();
More information about the MPlayer-cvslog
mailing list