vd_ffmpeg: fix MP_IMGTYPE selection for non-ref non-B frames
commit8a0f0740432772d75dccd47add3844634392f0d5
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 12 Dec 2010 10:23:41 +0000 (12 10:23 +0000)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Thu, 16 Dec 2010 04:22:19 +0000 (16 06:22 +0200)
treeef454d334e5b39cb42c216ee94b9d35865487fa8
parent3bf9f6c1a7690a9e69c4156c377909be2fa42979
vd_ffmpeg: fix MP_IMGTYPE selection for non-ref non-B frames

Change direct rendering buffer allocation code to treat non-ref frames
like B-frames even if has_b_frames is not set and they are indeed not
B-frames (no reordering). Treating it as an I/P frame would violate
the assumptions of MPlayer's buffering system, which thinks only the
latest previous I/P frame is needed (in addition to one possibly being
decoded). In this case the previous I/P frame will still be needed in
the future, not the non-ref frame being decoded now.

This happens with flv files, as in bug #1079, and this change fixes that
corruption.

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