changeset 25201:f2036002cac3

Set sh_video->format when parsing aviheader, otherwise it might never be set correctly when using demux_demuxers (like with ogg stream in AVI).
author reimar
date Sat, 01 Dec 2007 14:29:53 +0000
parents 3f59c69ec31c
children 57a3258ec1fc
files libmpdemux/aviheader.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/aviheader.c	Sat Dec 01 14:22:27 2007 +0000
+++ b/libmpdemux/aviheader.c	Sat Dec 01 14:29:53 2007 +0000
@@ -274,6 +274,7 @@
         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;