Skip to content

Commit

Permalink
Fix HLS transcoding after 199342e.
Browse files Browse the repository at this point in the history
Add a missing + in a += when setting the timecode being saved
in the audio reencode buffer.
  • Loading branch information
cpinkham committed Jul 12, 2012
1 parent 68a6f02 commit 413a8e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/programs/mythtranscode/transcode.cpp
Expand Up @@ -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,
Expand Down

0 comments on commit 413a8e0

Please sign in to comment.