changeset 3808:dd88c58a4432 libavformat

simplify
author bcoudurier
date Sat, 30 Aug 2008 22:38:59 +0000
parents 24113c3ebeaf
children 22b984b6cec1
files mxfenc.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mxfenc.c	Sat Aug 30 22:37:19 2008 +0000
+++ b/mxfenc.c	Sat Aug 30 22:38:59 2008 +0000
@@ -347,11 +347,8 @@
     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);