diff options
author | Johns <johns98@gmx.net> | 2012-02-24 18:16:24 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-02-24 18:16:24 +0100 |
commit | b2cab005996801b6d974809a066708178562a623 (patch) | |
tree | e308ac1fbf94a7ea3270c2ff9bee3c1947dc8441 /codec.c | |
parent | b54d62ef3599e7381fe8036aa608cada37a3442e (diff) | |
download | vdr-plugin-softhddevice-b2cab005996801b6d974809a066708178562a623.tar.gz vdr-plugin-softhddevice-b2cab005996801b6d974809a066708178562a623.tar.bz2 |
Remove AVDictionary.
Diffstat (limited to 'codec.c')
-rw-r--r-- | codec.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -667,7 +667,7 @@ void CodecAudioOpen(AudioDecoder * audio_decoder, const char *name, int codec_id) { AVCodec *audio_codec; - AVDictionary *av_dict; + //AVDictionary *av_dict; if (name && (audio_codec = avcodec_find_decoder_by_name(name))) { Debug(3, "codec: audio decoder '%s' found\n", name); @@ -694,15 +694,15 @@ void CodecAudioOpen(AudioDecoder * audio_decoder, const char *name, Fatal(_("codec: can't open audio codec\n")); } #else - av_dict = NULL; + //av_dict = NULL; //av_dict_set(&av_dict, "dmix_mode", "0", 0); //av_dict_set(&av_dict, "ltrt_cmixlev", "1.414", 0); //av_dict_set(&av_dict, "loro_cmixlev", "1.414", 0); - if (avcodec_open2(audio_decoder->AudioCtx, audio_codec, &av_dict) < 0) { + if (avcodec_open2(audio_decoder->AudioCtx, audio_codec, NULL) < 0) { pthread_mutex_unlock(&CodecLockMutex); Fatal(_("codec: can't open audio codec\n")); } - av_dict_free(&av_dict); + //av_dict_free(&av_dict); #endif pthread_mutex_unlock(&CodecLockMutex); Debug(3, "codec: audio '%s'\n", audio_decoder->AudioCtx->codec_name); |