提交 4cb3ca72 编写于 作者: Z Zdenek Kabelac

* fill codec_id in codec_open

Originally committed as revision 1329 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 befaced5
......@@ -263,6 +263,7 @@ int avcodec_open(AVCodecContext *avctx, AVCodec *codec)
int ret;
avctx->codec = codec;
avctx->codec_id = codec->id;
avctx->frame_number = 0;
if (codec->priv_data_size > 0) {
avctx->priv_data = av_mallocz(codec->priv_data_size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册