diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-08 05:12:30 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-08 05:12:30 +0000 |
commit | 5ac4d7689d753147f89b3322593d6998e32d27c4 (patch) | |
tree | 50b467ac3ac14896987aa760458768383c1244df /libavformat/mxfenc.c | |
parent | 251bf87560c0c4d1c0a35e73eed76fa6d60a6ab3 (diff) | |
download | ffmpeg-5ac4d7689d753147f89b3322593d6998e32d27c4.tar.gz |
reuse MXFCodecUL for data def and simplify
Originally committed as revision 17042 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mxfenc.c')
-rw-r--r-- | libavformat/mxfenc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 6381cad603..361c52da89 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -325,11 +325,11 @@ static void mxf_free(AVFormatContext *s) } } -static const MXFDataDefinitionUL *mxf_get_data_definition_ul(enum CodecType type) +static const MXFCodecUL *mxf_get_data_definition_ul(int type) { - const MXFDataDefinitionUL *uls = ff_mxf_data_definition_uls; - while (uls->type != CODEC_TYPE_DATA) { - if (type == uls->type) + const MXFCodecUL *uls = ff_mxf_data_definition_uls; + while (uls->uid[0]) { + if (type == uls->id) break; uls++; } @@ -509,7 +509,7 @@ static void mxf_write_track(AVFormatContext *s, AVStream *st, enum MXFMetadataSe static void mxf_write_common_fields(ByteIOContext *pb, AVStream *st) { - const MXFDataDefinitionUL *data_def_ul = mxf_get_data_definition_ul(st->codec->codec_type); + const MXFCodecUL *data_def_ul = mxf_get_data_definition_ul(st->codec->codec_type); MXFStreamContext *sc = st->priv_data; // find data define uls |