From 69e86099e2c1b661580e27d7b06c5db6bb41da0c Mon Sep 17 00:00:00 2001 From: cehoyos Date: Mon, 16 Nov 2009 21:38:32 +0000 Subject: Set display size in sh_video when decoding H264. This fixes H264 VDPAU decoding with some native demuxers. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29920 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/video.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmpdemux/video.c') diff --git a/libmpdemux/video.c b/libmpdemux/video.c index fba4077207..6b507b0d57 100644 --- a/libmpdemux/video.c +++ b/libmpdemux/video.c @@ -235,6 +235,8 @@ switch(video_codec){ 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); -- cgit v1.2.3