Hi,Sorry to trouble you,
I want to know about speed up decoding h264,

AVCodec* codec = avcodec_find_decoder(AV_CODEC_ID_H264);
AVCodecContext* ctx = avcodec_alloc_context3(codec);
ctx->thread_count = 3;
ctx->pix_fmt = AV_PIX_FMT_YUV420P;
ctx->codec_type = AVMEDIA_TYPE_VIDEO;
AVDictionary * opts = NULL;
av_dict_set(&opts, "threads", "auto", 0);
ret = avcodec_open2(zh->avContext,zh->avCodec,&opts);

am I right?
_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to