Commit 5fa671b5 authored by kabi's avatar kabi

* fill codec_id in codec_open


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1329 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 41d69925
...@@ -263,6 +263,7 @@ int avcodec_open(AVCodecContext *avctx, AVCodec *codec) ...@@ -263,6 +263,7 @@ int avcodec_open(AVCodecContext *avctx, AVCodec *codec)
int ret; int ret;
avctx->codec = codec; avctx->codec = codec;
avctx->codec_id = codec->id;
avctx->frame_number = 0; avctx->frame_number = 0;
if (codec->priv_data_size > 0) { if (codec->priv_data_size > 0) {
avctx->priv_data = av_mallocz(codec->priv_data_size); avctx->priv_data = av_mallocz(codec->priv_data_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment