diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-12-12 10:23:41 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-12-16 06:22:19 +0200 |
commit | 8a0f0740432772d75dccd47add3844634392f0d5 (patch) | |
tree | ef454d334e5b39cb42c216ee94b9d35865487fa8 /libmpcodecs/ad_twin.c | |
parent | 3bf9f6c1a7690a9e69c4156c377909be2fa42979 (diff) | |
download | mpv-8a0f0740432772d75dccd47add3844634392f0d5.tar.bz2 mpv-8a0f0740432772d75dccd47add3844634392f0d5.tar.xz |
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
Diffstat (limited to 'libmpcodecs/ad_twin.c')
0 files changed, 0 insertions, 0 deletions