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:
reimar 2007-12-01 14:29:53 +00:00
parent 45cfc7af1a
commit 7f98fc4ad3
1 changed files with 1 additions and 0 deletions

View File

@ -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;