summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulian Scheel <julian@jusst.de>2010-04-24 21:54:26 +0200
committerJulian Scheel <julian@jusst.de>2010-04-24 21:54:26 +0200
commit8665dba961523e99545407c3a114af04ac0f06fe (patch)
tree9384638e2af7e4014ff56a5bf10768bc75f98859 /src
parent850476e20b8963357071b4983db47089371c8206 (diff)
downloadxine-lib-8665dba961523e99545407c3a114af04ac0f06fe.tar.gz
xine-lib-8665dba961523e99545407c3a114af04ac0f06fe.tar.bz2
fix previous commit, it discared frames too early
Diffstat (limited to 'src')
-rw-r--r--src/video_dec/libvdpau/dpb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_dec/libvdpau/dpb.c b/src/video_dec/libvdpau/dpb.c
index 1bdb06b27..79cd35db3 100644
--- a/src/video_dec/libvdpau/dpb.c
+++ b/src/video_dec/libvdpau/dpb.c
@@ -467,10 +467,10 @@ int dpb_add_picture(struct dpb *dpb, struct decoded_picture *pic, uint32_t num_r
}
} 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;
}
}