diff options
-rw-r--r-- | convert.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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; |