[MPlayer-cvslog] r29920 - trunk/libmpdemux/video.c

cehoyos subversion at mplayerhq.hu
Mon Nov 16 22:38:32 CET 2009


Author: cehoyos
Date: Mon Nov 16 22:38:32 2009
New Revision: 29920

Log:
Set display size in sh_video when decoding H264.
This fixes H264 VDPAU decoding with some native demuxers.

Modified:
   trunk/libmpdemux/video.c

Modified: trunk/libmpdemux/video.c
==============================================================================
--- trunk/libmpdemux/video.c	Mon Nov 16 22:36:27 2009	(r29919)
+++ trunk/libmpdemux/video.c	Mon Nov 16 22:38:32 2009	(r29920)
@@ -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);


More information about the MPlayer-cvslog mailing list