mirror of https://github.com/mpv-player/mpv
Set sh_video->format when parsing aviheader, otherwise it might never
be set correctly when using demux_demuxers (like with ogg stream in AVI). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25229 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
45cfc7af1a
commit
7f98fc4ad3
|
@ -274,6 +274,7 @@ while(1){
|
|||
chunksize=0;
|
||||
sh_video->fps=(float)sh_video->video.dwRate/(float)sh_video->video.dwScale;
|
||||
sh_video->frametime=(float)sh_video->video.dwScale/(float)sh_video->video.dwRate;
|
||||
sh_video->format = sh_video->bih->biCompression;
|
||||
// if(demuxer->video->id==-1) demuxer->video->id=stream_id;
|
||||
// IdxFix:
|
||||
idxfix_videostream=stream_id;
|
||||
|
|
Loading…
Reference in New Issue