summaryrefslogtreecommitdiff
path: root/codec.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-02-24 18:16:24 +0100
committerJohns <johns98@gmx.net>2012-02-24 18:16:24 +0100
commitb2cab005996801b6d974809a066708178562a623 (patch)
treee308ac1fbf94a7ea3270c2ff9bee3c1947dc8441 /codec.c
parentb54d62ef3599e7381fe8036aa608cada37a3442e (diff)
downloadvdr-plugin-softhddevice-b2cab005996801b6d974809a066708178562a623.tar.gz
vdr-plugin-softhddevice-b2cab005996801b6d974809a066708178562a623.tar.bz2
Remove AVDictionary.
Diffstat (limited to 'codec.c')
-rw-r--r--codec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/codec.c b/codec.c
index 9000b29..41b0774 100644
--- a/codec.c
+++ b/codec.c
@@ -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);