[MPlayer-cvslog] r25229 - trunk/libmpdemux/aviheader.c

reimar subversion at mplayerhq.hu
Sat Dec 1 15:29:53 CET 2007


Author: reimar
Date: Sat Dec  1 15:29:53 2007
New Revision: 25229

Log:
Set sh_video->format when parsing aviheader, otherwise it might never
be set correctly when using demux_demuxers (like with ogg stream in AVI).


Modified:
   trunk/libmpdemux/aviheader.c

Modified: trunk/libmpdemux/aviheader.c
==============================================================================
--- trunk/libmpdemux/aviheader.c	(original)
+++ trunk/libmpdemux/aviheader.c	Sat Dec  1 15:29:53 2007
@@ -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;



More information about the MPlayer-cvslog mailing list