diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-08-30 22:38:59 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-08-30 22:38:59 +0000 |
commit | b43952539bb2e432ec758ee73090680095c3c55b (patch) | |
tree | 152051ee7816c575c36ef029e2f6cefecf0dcfc3 /libavformat/mxfenc.c | |
parent | 283a02c51aad7dd58a73aab2824142d3c12c6e89 (diff) | |
download | ffmpeg-b43952539bb2e432ec758ee73090680095c3c55b.tar.gz |
simplify
Originally committed as revision 15060 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mxfenc.c')
-rw-r--r-- | libavformat/mxfenc.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 3a8d6c2e39..13ef8e1e13 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -347,11 +347,8 @@ static void mxf_write_identification(AVFormatContext *s) product_name_len = strlen("OP1a Muxer") * 2; length = 80 + company_name_len + product_name_len; - if (!(s->streams[0]->codec->flags & CODEC_FLAG_BITEXACT)) { - version = LIBAVFORMAT_IDENT; - } else { - version = "0.0.0"; - } + version = s->streams[0]->codec->flags & CODEC_FLAG_BITEXACT ? + "0.0.0" : LIBAVFORMAT_IDENT; length += 4 + strlen(version)*2; klv_encode_ber_length(pb, length); |