summaryrefslogtreecommitdiff
path: root/src/internal/audio/kitaudio.c
diff options
context:
space:
mode:
authorTuomas Virtanen <katajakasa@gmail.com>2018-09-30 12:53:56 +0300
committerTuomas Virtanen <katajakasa@gmail.com>2018-09-30 12:53:56 +0300
commit19be3d98a0017823237dfceacc3a1caa34bdef1d (patch)
tree0b340ac0ab9386eae65019ef9c0f954b5f0b3650 /src/internal/audio/kitaudio.c
parent24a1a5914af5949f3eb9b41fef86969ca973acdb (diff)
Code cleanups
Diffstat (limited to 'src/internal/audio/kitaudio.c')
-rw-r--r--src/internal/audio/kitaudio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/internal/audio/kitaudio.c b/src/internal/audio/kitaudio.c
index eed1c97..3a534bb 100644
--- a/src/internal/audio/kitaudio.c
+++ b/src/internal/audio/kitaudio.c
@@ -275,7 +275,6 @@ double Kit_GetAudioDecoderPTS(Kit_Decoder *dec) {
int Kit_GetAudioDecoderData(Kit_Decoder *dec, unsigned char *buf, int len) {
assert(dec != NULL);
- Kit_AudioPacket *next_packet = NULL;
Kit_AudioPacket *packet = NULL;
int ret = 0;
int bytes_per_sample = 0;
@@ -283,7 +282,7 @@ int Kit_GetAudioDecoderData(Kit_Decoder *dec, unsigned char *buf, int len) {
double sync_ts = 0;
// First, peek the next packet. Make sure we have something to read.
- packet = next_packet = Kit_PeekDecoderOutput(dec);
+ packet = Kit_PeekDecoderOutput(dec);
if(packet == NULL) {
return 0;
}