[MPlayer-dev-eng] [PATCH] Mencoder AV sync

Tim Xiao xiaoyuting at gmail.com
Sat Feb 19 09:36:36 CET 2011


Hi mplayer devs,

I found an AV sync issue with mencoder. For certain audio formats
(like FLAC), the encoder would mistakenly think that the audio is
ahead. This causes it to skip a frame every 0.3 seconds or so, and the
resulting encode would have horrible AV sync issues. After some
experimenting, I discovered that copying a portion of the mplayer.c AV
sync code to mencoder.c fixes the problem. While I don't think copying
code is the best approach, its the best I could come up with. On a
related note, I couldn't figure out if I was supposed to use 4 spaces,
2 spaces or tabs for indentation. So I guessed 2 spaces. :P

Tim Xiao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix.diff
Type: text/x-diff
Size: 982 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20110219/075165b9/attachment.diff>


More information about the MPlayer-dev-eng mailing list