summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-01 14:29:53 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-01 14:29:53 +0000
commit7f98fc4ad3e6e3bcdddd719d623b15cdbc37bb55 (patch)
treec4de57ab24928966ab0c982273a5ca13ddc75173 /libmpdemux
parent45cfc7af1aa757fe0f3ed42da2deda78ae472c59 (diff)
downloadmpv-7f98fc4ad3e6e3bcdddd719d623b15cdbc37bb55.tar.bz2
mpv-7f98fc4ad3e6e3bcdddd719d623b15cdbc37bb55.tar.xz
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
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/aviheader.c1
1 files changed, 1 insertions, 0 deletions
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;