Limit buffered PTS only when we actually got a frame from the decoder.
commit82aabb77d39ab0c2042da61bcc67c7735841f2bc
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 3 Jun 2010 20:59:40 +0000 (3 20:59 +0000)
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 3 Jun 2010 20:59:40 +0000 (3 20:59 +0000)
treebeb35fcf5e0c7fe82a488c8bef0998781e1864bb
parent9343d1cb2d6b01e5c08a6a82f5b2c43d251c868e
Limit buffered PTS only when we actually got a frame from the decoder.
This avoids some issues with H.264 PAFF due to dropping PTS values too
early because only every second packet actually produced output.
Just keeping up to one additional pts value would have avoided this
particular issue as well, but this is more generic.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31312 b3059339-0415-0410-9bf9-f77b7e298cf2
libmpcodecs/dec_video.c