From 7f98fc4ad3e6e3bcdddd719d623b15cdbc37bb55 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 1 Dec 2007 14:29:53 +0000 Subject: 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 --- libmpdemux/aviheader.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libmpdemux') diff --git a/libmpdemux/aviheader.c b/libmpdemux/aviheader.c index 14e4bc9e36..85a84e8ca3 100644 --- a/libmpdemux/aviheader.c +++ b/libmpdemux/aviheader.c @@ -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; -- cgit v1.2.3