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
This commit is contained in:
arpi 2002-08-29 20:21:59 +00:00
parent d4197da915
commit 978bfc3003
1 changed files with 1 additions and 1 deletions

View File

@ -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]);