[FFmpeg-devel] [PATCH] avformat/seek-test: Support passing options to demuxers and protocols

Michael Niedermayer michael at niedermayer.cc
Mon Feb 29 21:37:51 CET 2016


Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavformat/seek-test.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/seek-test.c b/libavformat/seek-test.c
index bfd06db..904b435 100644
--- a/libavformat/seek-test.c
+++ b/libavformat/seek-test.c
@@ -80,6 +80,8 @@ int main(int argc, char **argv)
             if (atoi(argv[i+1])) {
                 ic->flags |= AVFMT_FLAG_FAST_SEEK;
             }
+        } else if(argv[i][0] == '-' && argv[i+1]) {
+            av_dict_set(&format_opts, argv[i] + 1, argv[i+1], 0);
         } else {
             argc = 1;
         }
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list