diff options
author | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-15 22:32:11 +0000 |
---|---|---|
committer | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-15 22:32:11 +0000 |
commit | 6c239f12ff690018ab7eadfcebd9d11000107024 (patch) | |
tree | e1fa82514ca31eec934e2c3e0510c127374fda57 /libmpdemux/video.c | |
parent | 0eee2d2bd5a9aa03ff9211ef481914041e4ec644 (diff) | |
download | mpv-6c239f12ff690018ab7eadfcebd9d11000107024.tar.bz2 mpv-6c239f12ff690018ab7eadfcebd9d11000107024.tar.xz |
Calculate width and height in mp4_header_process_vop().
Fixes elementary streams with -vc ffodivxvdpau and the native demuxer.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30904 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/video.c')
-rw-r--r-- | libmpdemux/video.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/video.c b/libmpdemux/video.c index a7b1ca1232..792dc7dcc0 100644 --- a/libmpdemux/video.c +++ b/libmpdemux/video.c @@ -169,6 +169,8 @@ switch(video_codec){ return 0; } mp4_header_process_vop(&picture, &(videobuffer[pos])); + sh_video->disp_w = picture.display_picture_width; + sh_video->disp_h = picture.display_picture_height; units[vop_cnt] = picture.timeinc_unit; vop_cnt++; //mp_msg(MSGT_DECVIDEO,MSGL_V, "TYPE: %d, unit: %d\n", picture.picture_type, picture.timeinc_unit); |