[FFmpeg-cvslog] avformat/seek-test: Support passing options to demuxers and protocols
Michael Niedermayer
git at videolan.org
Wed Mar 2 02:13:32 CET 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Feb 29 21:37:51 2016 +0100| [a870aa89bf384f485c112794a0ca0b49d6aceca2] | committer: Michael Niedermayer
avformat/seek-test: Support passing options to demuxers and protocols
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a870aa89bf384f485c112794a0ca0b49d6aceca2
---
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;
}
More information about the ffmpeg-cvslog
mailing list