[FFmpeg-devel] [PATCH] [RFC] avformat/options_table: do not merge sidedata by default
Michael Niedermayer
michaelni at gmx.at
Wed Nov 20 00:42:38 CET 2013
This requires applications to pass side data from demuxer to
decoder and demuxer to muxer.
If we want this change then a #if MAJOR_VERSION would need to be
added around it as it adds the new requirement of passing side data
around too (through all queues an application has between its demuxer
and muxer/decoder layers)
Do applications support this kind of side data passing already ?
Suggested-by: wm4
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavformat/options_table.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/options_table.h b/libavformat/options_table.h
index 8145325..76b9d6a 100644
--- a/libavformat/options_table.h
+++ b/libavformat/options_table.h
@@ -37,7 +37,7 @@ static const AVOption avformat_options[] = {
{"direct", "reduce buffering", 0, AV_OPT_TYPE_CONST, {.i64 = AVIO_FLAG_DIRECT }, INT_MIN, INT_MAX, D|E, "avioflags"},
{"probesize", "set probing size", OFFSET(probesize), AV_OPT_TYPE_INT, {.i64 = 5000000 }, 32, INT_MAX, D},
{"packetsize", "set packet size", OFFSET(packet_size), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, 0, INT_MAX, E},
-{"fflags", NULL, OFFSET(flags), AV_OPT_TYPE_FLAGS, {.i64 = AVFMT_FLAG_FLUSH_PACKETS }, INT_MIN, INT_MAX, D|E, "fflags"},
+{"fflags", NULL, OFFSET(flags), AV_OPT_TYPE_FLAGS, {.i64 = AVFMT_FLAG_FLUSH_PACKETS | AVFMT_FLAG_KEEP_SIDE_DATA}, INT_MIN, INT_MAX, D|E, "fflags"},
{"flush_packets", "reduce the latency by flushing out packets immediately", 0, AV_OPT_TYPE_CONST, {.i64 = AVFMT_FLAG_FLUSH_PACKETS }, INT_MIN, INT_MAX, D, "fflags"},
{"ignidx", "ignore index", 0, AV_OPT_TYPE_CONST, {.i64 = AVFMT_FLAG_IGNIDX }, INT_MIN, INT_MAX, D, "fflags"},
{"genpts", "generate pts", 0, AV_OPT_TYPE_CONST, {.i64 = AVFMT_FLAG_GENPTS }, INT_MIN, INT_MAX, D, "fflags"},
--
1.7.9.5
More information about the ffmpeg-devel
mailing list