Permalink
Browse files

Fix HLS transcoding after 199342e.

Add a missing + in a += when setting the timecode being saved
in the audio reencode buffer.
  • Loading branch information...
1 parent 68a6f02 commit 413a8e09febe32bfb8569fd335758d76f5e99e78 @cpinkham cpinkham committed Jul 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/programs/mythtranscode/transcode.cpp
View
2 mythtv/programs/mythtranscode/transcode.cpp
@@ -143,7 +143,7 @@ class AudioReencodeBuffer : public AudioOutput
int bufsize = m_saveBuffer->m_buffer.size();
int part = min(len - index, m_audioFrameSize - bufsize);
total_frames += part / m_bytes_per_frame;
- timecode = total_frames * 1000 / m_eff_audiorate;
+ timecode += total_frames * 1000 / m_eff_audiorate;
// Store frames in buffer, basing frame count on number of
// bytes, which works only for uncompressed data.
m_saveBuffer->appendData(&buf[index], part,

0 comments on commit 413a8e0

Please sign in to comment.