Commit 44888c17 authored by ogg.k.ogg.k's avatar ogg.k.ogg.k Committed by conrad

allocate enough space for the theora info message

parent b2754992
......@@ -135,12 +135,12 @@ ot_theora_info (unsigned char * data, long len)
if (len < 41) return NULL;
buf = malloc (80);
buf = malloc (128);
width = INT16_BE_AT(&data[15]);
height = INT16_BE_AT(&data[18]);
snprintf (buf, 80,
snprintf (buf, 128,
"\tTheora-Version: %d.%d.%d\n"
"\tVideo-Framerate: %.3f fps\n"
"\tVideo-Width: %d\n\tVideo-Height: %d\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment