whitespace

This commit is contained in:
Isaac Connor 2017-11-03 09:23:08 -04:00
parent 4ef28bb30d
commit fdbd344d74
1 changed files with 3 additions and 3 deletions

View File

@ -823,19 +823,19 @@ int VideoStore::writeVideoFramePacket(AVPacket *ipkt) {
int VideoStore::writeAudioFramePacket(AVPacket *ipkt) { int VideoStore::writeAudioFramePacket(AVPacket *ipkt) {
Debug(4, "writeAudioFrame"); Debug(4, "writeAudioFrame");
if (!audio_out_stream) { if ( !audio_out_stream ) {
Debug(1, "Called writeAudioFramePacket when no audio_out_stream"); Debug(1, "Called writeAudioFramePacket when no audio_out_stream");
return 0; // FIXME -ve return codes do not free packet in ffmpeg_camera at return 0; // FIXME -ve return codes do not free packet in ffmpeg_camera at
// the moment // the moment
} }
if (audio_out_codec) { if ( audio_out_codec ) {
Debug(3, "Have audio codec"); Debug(3, "Have audio codec");
#ifdef HAVE_LIBAVRESAMPLE #ifdef HAVE_LIBAVRESAMPLE
#if LIBAVCODEC_VERSION_CHECK(57, 64, 0, 64, 0) #if LIBAVCODEC_VERSION_CHECK(57, 64, 0, 64, 0)
ret = avcodec_send_packet(audio_in_ctx, ipkt); ret = avcodec_send_packet(audio_in_ctx, ipkt);
if (ret < 0) { if ( ret < 0 ) {
Error("avcodec_send_packet fail %s", av_make_error_string(ret).c_str()); Error("avcodec_send_packet fail %s", av_make_error_string(ret).c_str());
return 0; return 0;
} }