[FFmpeg-cvslog] r17175 - trunk/libavformat/mxfenc.c
bcoudurier
subversion
Thu Feb 12 04:38:08 CET 2009
Author: bcoudurier
Date: Thu Feb 12 04:38:08 2009
New Revision: 17175
Log:
check body partitions count before writing
Modified:
trunk/libavformat/mxfenc.c
Modified: trunk/libavformat/mxfenc.c
==============================================================================
--- trunk/libavformat/mxfenc.c Thu Feb 12 03:23:25 2009 (r17174)
+++ trunk/libavformat/mxfenc.c Thu Feb 12 04:38:08 2009 (r17175)
@@ -1112,7 +1112,7 @@ static void mxf_write_partition(AVFormat
if (!memcmp(key, body_partition_key, 16) && mxf->body_partitions_count > 1)
put_be64(pb, mxf->body_partition_offset[mxf->body_partitions_count-2]); // PreviousPartition
- else if (!memcmp(key, footer_partition_key, 16))
+ else if (!memcmp(key, footer_partition_key, 16) && mxf->body_partitions_count)
put_be64(pb, mxf->body_partition_offset[mxf->body_partitions_count-1]); // PreviousPartition
else
put_be64(pb, 0);
More information about the ffmpeg-cvslog
mailing list