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

2016-03-01 Thread Michael Niedermayer
On Mon, Feb 29, 2016 at 09:37:51PM +0100, Michael Niedermayer wrote:
> Signed-off-by: Michael Niedermayer 
> ---
>  libavformat/seek-test.c |2 ++
>  1 file changed, 2 insertions(+)

applied

[...]
-- 
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable


signature.asc
Description: Digital signature
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


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

2016-02-29 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer 
---
 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(_opts, argv[i] + 1, argv[i+1], 0);
 } else {
 argc = 1;
 }
-- 
1.7.9.5

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel