# HG changeset patch # User cehoyos # Date 1258407512 0 # Node ID 2b4de99791534e414cb43823c54376bb6516cfc4 # Parent 4b0c15f7859cecfdc5a4de16266c1b9b2cd71cd2 Set display size in sh_video when decoding H264. This fixes H264 VDPAU decoding with some native demuxers. diff -r 4b0c15f7859c -r 2b4de9979153 libmpdemux/video.c --- 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);