summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-18 22:51:27 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-18 22:57:20 +0200
commit0c152fe916e3f01ac075c6d86e4778e11f807042 (patch)
treea18f3e5b755009f49ca2d79406dda03eb62de43c /ffmpeg.c
parent5771efde87c17e1ecda4db32437d16d108c61be2 (diff)
ffmpeg: prefix encoder with "Lavc " in bitexact mode
This avoids misleading encoder names like "encoder = prores" Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 407f47ceb3..8cf9fa5988 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2394,6 +2394,8 @@ static void set_encoder_id(OutputFile *of, OutputStream *ost)
if (!(format_flags & AVFMT_FLAG_BITEXACT) && !(codec_flags & CODEC_FLAG_BITEXACT))
av_strlcpy(encoder_string, LIBAVCODEC_IDENT " ", encoder_string_len);
+ else
+ av_strlcpy(encoder_string, "Lavc ", encoder_string_len);
av_strlcat(encoder_string, ost->enc->name, encoder_string_len);
av_dict_set(&ost->st->metadata, "encoder", encoder_string,
AV_DICT_DONT_STRDUP_VAL | AV_DICT_DONT_OVERWRITE);