diff options
author | Julian Scheel <julian@jusst.de> | 2008-12-15 14:43:31 +0000 |
---|---|---|
committer | Julian Scheel <julian@jusst.de> | 2008-12-15 14:43:31 +0000 |
commit | 5b2f970099040357993e37a59bcf63ef8ad24366 (patch) | |
tree | 20df7746ccfe1eb8cc7b74ae76b43defd45130d8 /src | |
parent | b08385e8109ffc196aa13b9cc6dc608e98184587 (diff) | |
download | xine-lib-5b2f970099040357993e37a59bcf63ef8ad24366.tar.gz xine-lib-5b2f970099040357993e37a59bcf63ef8ad24366.tar.bz2 |
Testing interlacing.
Diffstat (limited to 'src')
-rw-r--r-- | src/libvdpau/vdpau_h264.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/libvdpau/vdpau_h264.c b/src/libvdpau/vdpau_h264.c index ebf838772..d3c4cd5df 100644 --- a/src/libvdpau/vdpau_h264.c +++ b/src/libvdpau/vdpau_h264.c @@ -343,13 +343,11 @@ static void vdpau_h264_decode_data (video_decoder_t *this_gen, if(img == NULL) { fflush(stdout); - //printf("Acquire Image\n"); img = this->stream->video_out->get_frame (this->stream->video_out, this->width, this->height, this->ratio, XINE_IMGFMT_VDPAU, VO_BOTH_FIELDS); this->vdpau_accel = (vdpau_accel_t*)img->accel_data; - //printf("OK\n"); } VdpVideoSurface surface = this->vdpau_accel->surface; @@ -376,11 +374,11 @@ 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)); else { - img->duration = this->video_step; - if(this->nal_parser->current_nal->nal_unit_type == NAL_SLICE_IDR) + img->duration = 0; //this->video_step; + //if(this->nal_parser->current_nal->nal_unit_type == NAL_SLICE_IDR) img->pts = buf->pts; - else - img->pts = 0; + //else + // img->pts = 0; img->bad_frame = 0; @@ -419,7 +417,7 @@ static void vdpau_h264_decode_data (video_decoder_t *this_gen, } printf("pts diff: %d\n", this->last_pts - this->tmp_pts); - decoded_pic->img->pts = this->last_pts; + //decoded_pic->img->pts = this->last_pts; this->tmp_pts = decoded_pic->img->pts; this->last_pts += this->video_step; printf("poc: %d, %d, pts: %lld\n", decoded_pic->nal->top_field_order_cnt, decoded_pic->nal->bottom_field_order_cnt, decoded_pic->img->pts); |