summaryrefslogtreecommitdiff
path: root/src/libvdpau
diff options
context:
space:
mode:
authorReinhard Nißl <rnissl@gmx.de>2008-12-29 11:49:50 +0000
committerReinhard Nißl <rnissl@gmx.de>2008-12-29 11:49:50 +0000
commit25575a3f4cc3ec3147f0b47ff99f53501cb0e565 (patch)
tree5f7e302dd069c273c55bf59519b2e4476d677956 /src/libvdpau
parent862354fcea8351ddf7b6745a1d5bf559e37d2d32 (diff)
downloadxine-lib-25575a3f4cc3ec3147f0b47ff99f53501cb0e565.tar.gz
xine-lib-25575a3f4cc3ec3147f0b47ff99f53501cb0e565.tar.bz2
Add top_field_first flag.
Diffstat (limited to 'src/libvdpau')
-rw-r--r--src/libvdpau/vdpau_h264.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libvdpau/vdpau_h264.c b/src/libvdpau/vdpau_h264.c
index 7a9928f90..d69aa0b5c 100644
--- a/src/libvdpau/vdpau_h264.c
+++ b/src/libvdpau/vdpau_h264.c
@@ -451,8 +451,6 @@ static void vdpau_h264_decode_data (video_decoder_t *this_gen,
{
xprintf(this->xine, XINE_VERBOSITY_LOG, "vdpau_h264: Decoder failure: %s\n", this->vdpau_accel->vdp_get_error_string(status));
img->bad_frame = 1;
- if (img->pts)
- fprintf(stderr, "===== img->pts: %lld\n", img->pts);
img->draw(img, this->stream);
this->last_img = NULL;
}
@@ -500,6 +498,7 @@ static void vdpau_h264_decode_data (video_decoder_t *this_gen,
/* now retrieve the next output frame */
decoded_pic = dpb_get_next_out_picture(&(this->nal_parser->dpb));
if(decoded_pic) {
+ decoded_pic->img->top_field_first = (decoded_pic->nal->top_field_order_cnt <= decoded_pic->nal->bottom_field_order_cnt);
decoded_pic->img->draw(decoded_pic->img, this->stream);
dpb_set_output_picture(&(this->nal_parser->dpb), decoded_pic);
}