Skip to content

Commit

Permalink
Fixes #11432. Remove a now-unnecessary scaling operation.
Browse files Browse the repository at this point in the history
H264Parser::frameRate() was modified in
5ccedb61ddd2fa87b426cd1c0fbc43d2645cb9a55ccedb61ddd2fa87b426 to return
frames per second instead of frames per thousand seconds, but the one
remaining call to frameRate() was still trying to convert to frames
per second.  This caused big problems in the AVSync mechanism.
  • Loading branch information
stichnot authored and jyavenard committed Mar 8, 2013
1 parent 11ccd4b commit 444e8ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/avformatdecoder.cpp
Expand Up @@ -3130,7 +3130,7 @@ int AvFormatDecoder::H264PreProcessPkt(AVStream *stream, AVPacket *pkt)
uint height = m_h264_parser->pictureHeight();
if (height == 1088 && current_height == 1080)
height = 1080;
float seqFPS = m_h264_parser->frameRate() * 0.001f;
float seqFPS = m_h264_parser->frameRate();

bool res_changed = ((width != (uint)current_width) ||
(height != (uint)current_height));
Expand Down

0 comments on commit 444e8ee

Please sign in to comment.