From fcacb5e5426dfd47add71f0aa75e86b15bddefb3 Mon Sep 17 00:00:00 2001 From: Tuomas Virtanen Date: Thu, 28 Jun 2018 23:36:03 +0300 Subject: Code style improvements --- src/internal/audio/kitaudio.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/internal/audio/kitaudio.c') diff --git a/src/internal/audio/kitaudio.c b/src/internal/audio/kitaudio.c index 02b9787..7a3b0a4 100644 --- a/src/internal/audio/kitaudio.c +++ b/src/internal/audio/kitaudio.c @@ -110,9 +110,12 @@ static void dec_decode_audio_cb(Kit_Decoder *dec, AVPacket *in_packet) { Kit_AudioDecoder *audio_dec = dec->userdata; int frame_finished; - int len, len2; + int len; + int len2; int dst_linesize; - int dst_nb_samples, dst_bufsize; + int dst_nb_samples; + int dst_bufsize; + double pts; unsigned char **dst_data; // Decode as long as there is data @@ -151,7 +154,7 @@ static void dec_decode_audio_cb(Kit_Decoder *dec, AVPacket *in_packet) { _FindAVSampleFormat(dec->output.format), 1); // Get presentation timestamp - double pts = av_frame_get_best_effort_timestamp(audio_dec->scratch_frame); + pts = av_frame_get_best_effort_timestamp(audio_dec->scratch_frame); pts *= av_q2d(dec->format_ctx->streams[dec->stream_index]->time_base); // Lock, write to audio buffer, unlock -- cgit v1.2.3