summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2014-11-08 18:14:36 +0100
committerJoerg Bornkessel <hd_brummy@gentoo.org>2014-11-08 18:14:36 +0100
commit6b4b5471c427900d6b28bffa14ff8ed908463bd8 (patch)
treef4763498453ff2d5c9dcf3567854ddfe65e51a59
parent703c5d75820e24eb0d5c7f8d3f05b7e8e39b38ed (diff)
downloadvdr-plugin-audiorecorder-6b4b5471c427900d6b28bffa14ff8ed908463bd8.tar.gz
vdr-plugin-audiorecorder-6b4b5471c427900d6b28bffa14ff8ed908463bd8.tar.bz2
fixed variables
-rw-r--r--convert.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/convert.c b/convert.c
index 1ca4340..28222fe 100644
--- a/convert.c
+++ b/convert.c
@@ -126,6 +126,8 @@ void cConvert::decode_mpa_frame(mpeg_audio_frame *mpa_frame)
#warning "and will compile not working code...(convert.c, decode_mpa_frame)"
// functioniert, aber es wird nur ein mp3 file mit audio level 0 erzeugt :(
+ AVCodecContext *decoder_ctx;
+
AVFrame *frame = avcodec_alloc_frame(); //av_frame_alloc # libav10
int got_output;
@@ -175,7 +177,7 @@ abuffer *cConvert::reencode_mpa_frame(mpeg_audio_frame *mpa_frame,
#warning "and will compile not working code, (convert.c, reencode_mpa_frame)"
// https://www.ffmpeg.org/doxygen/1.0/group__lavc__encoding.html#gf12a9da0d33f50ff406e03572fab4763
// https://www.ffmpeg.org/doxygen/1.0/decoding__encoding_8c-source.html#l00102
- AVCodecContext *codec_ctx;
+ AVCodecContext *encoder_ctx;
AVFrame *frame = avcodec_alloc_frame; // libav10 av_frame_alloc
AVPacket avpkt;
av_init_packet(&avpkt);