[FFmpeg-soc] [soc]: r3336 - mxf/mxfenc.c
spyfeng
subversion at mplayerhq.hu
Sat Aug 16 06:06:30 CEST 2008
Author: spyfeng
Date: Sat Aug 16 06:06:30 2008
New Revision: 3336
Log:
remove mxf_write_reference()
Modified:
mxf/mxfenc.c
Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c (original)
+++ mxf/mxfenc.c Sat Aug 16 06:06:30 2008
@@ -257,13 +257,6 @@ static void mxf_write_local_tag(ByteIOCo
put_be16(pb, value_size);
}
-static void mxf_write_reference(ByteIOContext *pb, int ref_count, UID value)
-{
- put_be32(pb, ref_count);
- put_be32(pb, 16);
- put_buffer(pb, value, sizeof(UID) * ref_count);
-}
-
static void mxf_free(AVFormatContext *s)
{
MXFContext *mxf = s->priv_data;
@@ -328,7 +321,8 @@ static int mxf_write_preface(AVFormatCon
// write essence_container_refs
mxf_write_local_tag(pb, 8 + 16 * mxf->essence_container_count, 0x3B0A);
- mxf_write_reference(pb, mxf->essence_container_count, *mxf->essence_container_uls);
+ mxf_write_refs_count(pb, mxf->essence_container_count);
+ put_buffer(pb, *mxf->essence_container_uls, sizeof(UID) * mxf->essence_container_count);
// write dm_scheme_refs
mxf_write_local_tag(pb, 8, 0x3B0B);
@@ -896,7 +890,8 @@ static void mxf_write_partition(AVFormat
put_buffer(pb, op1a_ul, 16); // operational pattern
// essence container
- mxf_write_reference(pb, mxf->essence_container_count, *mxf->essence_container_uls);
+ mxf_write_refs_count(pb, mxf->essence_container_count);
+ put_buffer(pb, *mxf->essence_container_uls, sizeof(UID) * mxf->essence_container_count);
#ifdef DEBUG
av_log(s,AV_LOG_DEBUG, "essence container count:%d\n", mxf->essence_container_count);
for (i = 0; i < mxf->essence_container_count; i++)
More information about the FFmpeg-soc
mailing list