changeset 29878:2b4de9979153

Set display size in sh_video when decoding H264. This fixes H264 VDPAU decoding with some native demuxers.
author cehoyos
date Mon, 16 Nov 2009 21:38:32 +0000
parents 4b0c15f7859c
children 5dbbcdb2fb47
files libmpdemux/video.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/video.c	Mon Nov 16 21:36:27 2009 +0000
+++ b/libmpdemux/video.c	Mon Nov 16 21:38:32 2009 +0000
@@ -235,6 +235,8 @@
      return 0;
    }
    h264_parse_sps(&picture, &(videobuffer[pos]), videobuf_len - pos);
+   sh_video->disp_w=picture.display_picture_width;
+   sh_video->disp_h=picture.display_picture_height;
    mp_msg(MSGT_DECVIDEO,MSGL_V,"Searching for picture parameter set... ");
    while(1){
       int i=sync_video_packet(d_video);