Mercurial > mplayer.hg
changeset 34719:3ab474cb7b4d
uspp filter: set no_bitstream option, since we do not care about the
generated bitstream.
About 20% faster.
author | reimar |
---|---|
date | Sat, 10 Mar 2012 19:19:02 +0000 |
parents | 8ef6e54892fa |
children | cf625557afab |
files | libmpcodecs/vf_uspp.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_uspp.c Sat Mar 10 18:45:59 2012 +0000 +++ b/libmpcodecs/vf_uspp.c Sat Mar 10 19:19:02 2012 +0000 @@ -224,6 +224,7 @@ } 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 @@ 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();