Commit 5e6e718d authored by conrad's avatar conrad

skeleton.c::ogg_from_fisbone(): avoid memcpy of NULL fp->message_header_fields.

Fixes ticket:408, reported by j^


git-svn-id: http://svn.annodex.net/liboggz/trunk@3664 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 99bc8527
...@@ -163,7 +163,9 @@ int ogg_from_fisbone(fisbone_packet *fp,ogg_packet *op) { ...@@ -163,7 +163,9 @@ int ogg_from_fisbone(fisbone_packet *fp,ogg_packet *op) {
*((ogg_int64_t*)(op->packet+36)) = _le_64 (fp->start_granule); /* start granule */ *((ogg_int64_t*)(op->packet+36)) = _le_64 (fp->start_granule); /* start granule */
*((ogg_uint32_t*)(op->packet+44)) = _le_32 (fp->preroll); /* preroll, for theora its 0 */ *((ogg_uint32_t*)(op->packet+44)) = _le_32 (fp->preroll); /* preroll, for theora its 0 */
*(op->packet+48) = fp->granule_shift; /* granule shift */ *(op->packet+48) = fp->granule_shift; /* granule shift */
memcpy((op->packet+FISBONE_SIZE), fp->message_header_fields, fp->current_header_size); if (fp->message_header_fields)
memcpy((op->packet+FISBONE_SIZE), fp->message_header_fields, fp->current_header_size);
op->b_o_s = 0; op->b_o_s = 0;
op->e_o_s = 0; op->e_o_s = 0;
......
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