diff options
author | Joerg Bornkessel <hd_brummy@gentoo.org> | 2014-11-03 16:49:44 +0100 |
---|---|---|
committer | Joerg Bornkessel <hd_brummy@gentoo.org> | 2014-11-03 16:49:44 +0100 |
commit | 6187ed4177a4bce1a2c23879354e2d5c08ad66c2 (patch) | |
tree | 1a86b7ee0f386a253759748cf6f263a5d0f8150a | |
parent | d3aa697d9e1f7cbbd7821248a60c56c6a3cd7282 (diff) | |
download | vdr-plugin-audiorecorder-6187ed4177a4bce1a2c23879354e2d5c08ad66c2.tar.gz vdr-plugin-audiorecorder-6187ed4177a4bce1a2c23879354e2d5c08ad66c2.tar.bz2 |
using avcodec_find_encoder_by_name again
-rw-r--r-- | audiorecorder.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/audiorecorder.c b/audiorecorder.c index fece799..b3f53cf 100644 --- a/audiorecorder.c +++ b/audiorecorder.c @@ -178,9 +178,6 @@ bool cPluginAudiorecorder::Initialize(void) bool cPluginAudiorecorder::Start(void) { /* initialize libavcodec */ -#if LIBAVCODEC_VERSION_MAJOR < 54 - avcodec_init(); -#endif avcodec_register_all(); probe_audio_codecs(); @@ -330,7 +327,8 @@ void cPluginAudiorecorder::probe_audio_codecs() { AVCodec *codec = NULL; for (c = 1; c < SetupValues.num_audio_codecs; ++c) { - codec = avcodec_find_encoder(AV_CODEC_ID_MP3); +// codec = avcodec_find_encoder(AV_CODEC_ID_MP3); /* codec hard enabled for libmp3 debug */ + codec = avcodec_find_encoder_by_name(audio_codecs[c]); if (codec) continue; |