mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 18:10:13 +01:00
* fill codec_id in codec_open
Originally committed as revision 1329 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user