summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorRoman Shaposhnik <roman@shaposhnik.org>2003-04-24 03:59:33 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2003-04-24 03:59:33 +0000
commit8c0ff5d5c28df0cda89f31cda2df2fcdf8fd85bb (patch)
treeab6b59970eb72f865cde043fa9b177d2af9d91b0 /libavformat
parent546031ee868c2b1b61c5878051e50c2bbad34096 (diff)
* Making AVI encoding predictable (all JUNK chunks are filled with 0)
* Updating regression refs * Making server-regression.sh work on Solaris Originally committed as revision 1818 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avienc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index bee61db113..04be25b917 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -416,10 +416,11 @@ static int avi_write_header(AVFormatContext *s)
if (!url_is_streamed(pb)) {
unsigned char tag[5];
+ int j;
/* Starting to lay out AVI OpenDML master index.
* We want to make it JUNK entry for now, since we'd
- * like to get away without making AVI and OpenDML one
+ * like to get away without making AVI an OpenDML one
* for compatibility reasons.
*/
avi->indexes[i].entry = avi->indexes[i].ents_allocated = 0;
@@ -432,7 +433,8 @@ static int avi_write_header(AVFormatContext *s)
/* dwChunkId */
put_le64(pb, 0); /* dwReserved[3]
put_le32(pb, 0); Must be 0. */
- url_fskip(pb, AVI_MASTER_INDEX_SIZE * 4 * 4);
+ for (j=0; j < AVI_MASTER_INDEX_SIZE * 2; j++)
+ put_le64(pb, 0);
end_tag(pb, avi->indexes[i].indx_start);
}