diff options
author | Julian Scheel <julian@jusst.de> | 2008-12-08 10:46:30 +0000 |
---|---|---|
committer | Julian Scheel <julian@jusst.de> | 2008-12-08 10:46:30 +0000 |
commit | 2a0e91697830b8645ce3feeda623ad549b9809aa (patch) | |
tree | 90897ed8615420134be4246704bf1548d4796db4 /src/libvdpau/dpb.c | |
parent | 6b73508d4e9a12689c8f0749c30f683ce777fef8 (diff) | |
download | xine-lib-2a0e91697830b8645ce3feeda623ad549b9809aa.tar.gz xine-lib-2a0e91697830b8645ce3feeda623ad549b9809aa.tar.bz2 |
Progress... seeing the first picture (c:
Diffstat (limited to 'src/libvdpau/dpb.c')
-rw-r--r-- | src/libvdpau/dpb.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libvdpau/dpb.c b/src/libvdpau/dpb.c index 460149ea3..a13e758bf 100644 --- a/src/libvdpau/dpb.c +++ b/src/libvdpau/dpb.c @@ -219,4 +219,18 @@ void fill_vdpau_reference_list(struct dpb *dpb, VdpReferenceFrameH264 *reflist) } last_pic = pic; } while ((pic = pic->next) != NULL && i < 16); + + printf("Used ref-frames: %d\n", i); + + // fill all other frames with invalid handles + while(i < 16) { + reflist[i].bottom_is_reference = VDP_FALSE; + reflist[i].top_is_reference = VDP_FALSE; + reflist[i].frame_idx = VDP_INVALID_HANDLE; + reflist[i].is_long_term = VDP_FALSE; + reflist[i].surface = VDP_INVALID_HANDLE; + reflist[i].field_order_cnt[0] = 0; + reflist[i].field_order_cnt[1] = 0; + i++; + } } |