summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;