r1019: Fix crash in Ogg file handling. master
authorJohannes Sixt <johannes.sixt@telecom.at>
Wed, 29 Aug 2007 21:06:20 +0000 (21:06 +0000)
committerJohannes Sixt <johannes.sixt@telecom.at>
Wed, 29 Aug 2007 21:06:20 +0000 (21:06 +0000)
A data structure was not completely initialized.

Based on a patch provided by Mark Carter.

cinelerra/fileogg.C

index 804ea70..695bb75 100644 (file)
@@ -203,8 +203,7 @@ int FileOGG::open_file(int rd, int wr)
        if (!tf)
        {
                tf = new theoraframes_info_t;
-               tf->audiosync = 0;
-               tf->videosync = 0;
+               memset(tf, 0, sizeof(*tf));
        }