[FFmpeg-soc] [soc]: r2922 - mxf/mxfenc.c
spyfeng
subversion at mplayerhq.hu
Wed Jul 30 16:51:09 CEST 2008
Author: spyfeng
Date: Wed Jul 30 16:51:09 2008
New Revision: 2922
Log:
check the condition when using LIBAVFORMAT_IDENT
Modified:
mxf/mxfenc.c
Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c (original)
+++ mxf/mxfenc.c Wed Jul 30 16:51:09 2008
@@ -438,8 +438,12 @@ static int mxf_write_identification(AVFo
company_name_len = strlen("FFmpeg") + 1;
product_name_len = strlen("OP1a Muxer") + 1;
- version_string_len = strlen(LIBAVFORMAT_IDENT) + 1;
- length = 84 + company_name_len + product_name_len + version_string_len;
+ if (!(s->streams[0]->codec->flags & CODEC_FLAG_BITEXACT)) {
+ version_string_len = strlen(LIBAVFORMAT_IDENT) + 1;
+ length = 84 + company_name_len + product_name_len + version_string_len;
+ } else {
+ length = 80 + company_name_len + product_name_len;
+ }
klv_encode_ber_length(pb, length);
@@ -461,8 +465,10 @@ static int mxf_write_identification(AVFo
mxf_write_local_tag(pb, product_name_len, 0x3C02);
put_buffer(pb, "OP1a Muxer", product_name_len);
- mxf_write_local_tag(pb, version_string_len, 0x3C04);
- put_buffer(pb, "LIBAVFORMAT_IDENT", version_string_len);
+ if (!(s->streams[0]->codec->flags & CODEC_FLAG_BITEXACT)) {
+ mxf_write_local_tag(pb, version_string_len, 0x3C04);
+ put_buffer(pb, LIBAVFORMAT_IDENT, version_string_len);
+ }
// write product uid
mxf_generate_uuid(s, uid);
More information about the FFmpeg-soc
mailing list