summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-29 20:21:59 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-29 20:21:59 +0000
commit978bfc3003d393534a773737e0cde928da3823ca (patch)
treecdca20f61ad79ebd2880c7a0c8b531ba53f0cde0 /libmpdemux
parentd4197da915f73c2c565b36223ba49e96b66ef108 (diff)
downloadmpv-978bfc3003d393534a773737e0cde928da3823ca.tar.bz2
mpv-978bfc3003d393534a773737e0cde928da3823ca.tar.xz
fixed RIFF chunk size - patch by "Andriy N. Gritsenko" <andrej@lucky.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7145 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/aviwrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/aviwrite.c b/libmpdemux/aviwrite.c
index 5a03afd3f4..7a86b0a9d1 100644
--- a/libmpdemux/aviwrite.c
+++ b/libmpdemux/aviwrite.c
@@ -146,7 +146,7 @@ void aviwrite_write_header(aviwrite_t *muxer,FILE *f){
return;
#endif
riff[0]=mmioFOURCC('R','I','F','F');
- riff[1]=muxer->file_end; // filesize
+ riff[1]=muxer->file_end-2*sizeof(unsigned int); // filesize
riff[2]=formtypeAVI; // 'AVI '
riff[0]=le2me_32(riff[0]);
riff[1]=le2me_32(riff[1]);