diff -ru MPlayer-1.0pre7try2-orig/libmpcodecs/vd.c MPlayer-1.0pre7try2/libmpcodecs/vd.c
|
old
|
new
|
|
| 151 | 151 | |
| 152 | 152 | if(!sh->disp_w || !sh->disp_h) |
| 153 | 153 | mp_msg(MSGT_DECVIDEO,MSGL_WARN, MSGTR_CodecDidNotSet); |
| 154 | | /* XXX: HACK, if sh->disp_* aren't set, |
| 155 | | * but we have w and h, set them :: atmos */ |
| 156 | | if(!sh->disp_w && w) |
| | 154 | |
| | 155 | /* Always set w & h if given - this works around the problem with |
| | 156 | * resolution changing mid-stream, for example in MPEG-PES aka DVB |
| | 157 | * recordings switches between 720x576 and 704x576 occur. */ |
| | 158 | if(w) |
| 157 | 159 | sh->disp_w=w; |
| 158 | | if(!sh->disp_h && h) |
| | 160 | if(h) |
| 159 | 161 | sh->disp_h=h; |
| 160 | 162 | |
| 161 | 163 | if(!sh->disp_w || !sh->disp_h) |