comparison libmpcodecs/ad_ffmpeg.c @ 34530:c897dbc5f1de

Fix avcodec_open2 options argument.
author reimar
date Sat, 28 Jan 2012 12:15:38 +0000
parents 0481efcf5489
children e659a561af75
comparison
equal deleted inserted replaced
34529:65f42b3c0efc 34530:c897dbc5f1de
137 memcpy(lavc_context->extradata, (char *)sh_audio->codecdata, 137 memcpy(lavc_context->extradata, (char *)sh_audio->codecdata,
138 lavc_context->extradata_size); 138 lavc_context->extradata_size);
139 } 139 }
140 140
141 /* open it */ 141 /* open it */
142 if (avcodec_open2(lavc_context, lavc_codec, opts) < 0) { 142 if (avcodec_open2(lavc_context, lavc_codec, &opts) < 0) {
143 mp_msg(MSGT_DECAUDIO,MSGL_ERR, MSGTR_CantOpenCodec); 143 mp_msg(MSGT_DECAUDIO,MSGL_ERR, MSGTR_CantOpenCodec);
144 return 0; 144 return 0;
145 } 145 }
146 av_dict_free(&opts); 146 av_dict_free(&opts);
147 mp_msg(MSGT_DECAUDIO,MSGL_V,"INFO: libavcodec \"%s\" init OK!\n", lavc_codec->name); 147 mp_msg(MSGT_DECAUDIO,MSGL_V,"INFO: libavcodec \"%s\" init OK!\n", lavc_codec->name);