diff options
author | Johns <johns98@gmx.net> | 2012-02-14 21:51:13 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-02-14 21:51:13 +0100 |
commit | 6775173e4fa82dfc26b98e2b02f317c689843ece (patch) | |
tree | 7642787926167c7a77626df49a46543e0974ea16 | |
parent | 9170fcf4850955db50bfbaab86d411a717ec6ce4 (diff) | |
download | vdr-plugin-softhddevice-6775173e4fa82dfc26b98e2b02f317c689843ece.tar.gz vdr-plugin-softhddevice-6775173e4fa82dfc26b98e2b02f317c689843ece.tar.bz2 |
Fix bug: local id variable overwrites argument.
-rw-r--r-- | softhddev.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/softhddev.c b/softhddev.c index 6b549a1..b77f371 100644 --- a/softhddev.c +++ b/softhddev.c @@ -424,24 +424,24 @@ int PlayAudio(const uint8_t * data, int size, uint8_t id) // FIXME: otherwise it takes too long until sound appears if (AudioCodecID == CODEC_ID_NONE) { - int id; + int codec_id; Debug(3, "[softhddev]%s: ??? %d\n", __FUNCTION__, id); avpkt->data = (void *)data; avpkt->size = size; if (AudioChannelID == 0xBD) { n = FindDolbySync(avpkt); - id = CODEC_ID_AC3; + codec_id = CODEC_ID_AC3; } else { n = FindAudioSync(avpkt); - id = CODEC_ID_MP2; + codec_id = CODEC_ID_MP2; } if (n < 0) { return osize; } - CodecAudioOpen(MyAudioDecoder, NULL, id); - AudioCodecID = id; + CodecAudioOpen(MyAudioDecoder, NULL, codec_id); + AudioCodecID = codec_id; data += n; size -= n; avpkt->pts = AV_NOPTS_VALUE; |