[FFmpeg-devel] [PATCH] ffmpeg: Fix setting flags for codec copy.
Michael Niedermayer
michaelni at gmx.at
Sat Feb 18 07:54:13 CET 2012
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
ffmpeg.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index dfe7394..e6c27f6 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -4402,6 +4402,15 @@ static void opt_output_file(void *optctx, const char *filename)
}
}
+ for (i = nb_output_streams - oc->nb_streams; i < nb_output_streams; i++) {
+ AVDictionaryEntry *e;
+ ost = &output_streams[i];
+
+ if (ost->stream_copy && (e = av_dict_get(codec_opts, "flags", NULL, 0)))
+ if (av_opt_set(ost->st->codec, "flags", e->value, 0) < 0)
+ exit_program(1);
+ }
+
/* handle attached files */
for (i = 0; i < o->nb_attachments; i++) {
AVIOContext *pb;
--
1.7.5.4
More information about the ffmpeg-devel
mailing list