diff options
author | Joerg Bornkessel <hd_brummy@gentoo.org> | 2014-11-03 13:36:21 +0100 |
---|---|---|
committer | Joerg Bornkessel <hd_brummy@gentoo.org> | 2014-11-03 13:36:21 +0100 |
commit | 117c42c0057e3fe87a4f654b48845892ac88284d (patch) | |
tree | 5bbf8b9e71e913c86a3bfc654daffc3d7ad57810 | |
parent | b2a86cf7cecb0516bceb5d870461a5640e8b5b34 (diff) | |
download | vdr-plugin-audiorecorder-117c42c0057e3fe87a4f654b48845892ac88284d.tar.gz vdr-plugin-audiorecorder-117c42c0057e3fe87a4f654b48845892ac88284d.tar.bz2 |
reverted not workin changes
-rw-r--r-- | convert.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -74,10 +74,10 @@ void cConvert::init_encoder(const char *codec, int bit_rate, int sample_rate, int channels) { avcodec_register_all(); - AVCodec *encoder_codec; - AVCodecContext *encoder_ctx= NULL; - AVFrame *frame; - AVPacket pkt; +// AVCodec *encoder_codec; +// AVCodecContext *encoder_ctx= NULL; +// AVFrame *frame; +// AVPacket pkt; encoder_codec = avcodec_find_encoder(AV_CODEC_ID_MP3); if (! encoder_codec) { @@ -86,7 +86,7 @@ void cConvert::init_encoder(const char *codec, int bit_rate, int sample_rate, return; } - encoder_ctx = avcodec_alloc_context3(encoder_codec); + encoder_ctx = avcodec_alloc_context3(NULL); encoder_ctx->bit_rate = bit_rate; encoder_ctx->sample_fmt = AV_SAMPLE_FMT_S16P; |