summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2014-11-06 21:58:11 +0100
committerJoerg Bornkessel <hd_brummy@gentoo.org>2014-11-06 21:58:11 +0100
commitf8fdb9551fbdb63a9b05d83b85ea3d20a793efa8 (patch)
treec89ba55d05072306ff1aba1c88391a2f49cdef0e
parent7acfd51907950e79003a2efaad18273fd03586a7 (diff)
downloadvdr-plugin-audiorecorder-f8fdb9551fbdb63a9b05d83b85ea3d20a793efa8.tar.gz
vdr-plugin-audiorecorder-f8fdb9551fbdb63a9b05d83b85ea3d20a793efa8.tar.bz2
compile fix
-rw-r--r--convert.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/convert.c b/convert.c
index 9eb7003..5d346a0 100644
--- a/convert.c
+++ b/convert.c
@@ -183,19 +183,19 @@ abuffer *cConvert::reencode_mpa_frame(mpeg_audio_frame *mpa_frame,
/* frame containing input raw audio */
frame = avcodec_alloc_frame();
- if (!frame) {
+ if (! frame) {
dsyslog("[audiorecorder]: Could not allocate audio frame (%s, " "%s())", __FILE__, __func__);
- return;
+// return;
// fprintf(stderr, "Could not allocate audio frame\n");
-// exit(1);
+ exit(1);
}
encoder_buf.offset = avcodec_encode_audio2(encoder_ctx, &avpkt, frame, &got_output);
- if (ret < 0) {
+ if ( ret < 0 ) {
dsyslog("[audiorecorder]: Error encoding audio frame (%s, " "%s())", __FILE__, __func__);
- return;
+// return;
// fprintf(stderr, "Error encoding audio frame\n");
-// exit(1);
+ exit(1);
}
#endif
return &encoder_buf;