From: Julian S. <ju...@ju...> - 2010-04-24 19:54:45
|
# HG changeset patch # User Julian Scheel <ju...@ju...> # Date 1272138866 -7200 # Node ID 463e577cabff3ce5ffc36253461ba868103c3711 # Parent f6ad1498c63c42c0bddf0ff875813e373407f8ca fix previous commit, it discared frames too early diff --git a/src/video_dec/libvdpau/dpb.c b/src/video_dec/libvdpau/dpb.c --- a/src/video_dec/libvdpau/dpb.c +++ b/src/video_dec/libvdpau/dpb.c @@ -467,10 +467,10 @@ } } while (pic != NULL && (pic = pic->next) != NULL); - /* if all pictured in dpb are marked as delayed for output + /* if all pictures in dpb are marked as delayed for output * we need to drop a not yet drawn image. take the oldest one */ - if(!discard_ref) { + if(i > num_ref_frames && !discard_ref) { discard_ref = dpb->pictures; } } |