Message ID | 1332153486-73460-1-git-send-email-martin@martin.st |
---|---|
State | Superseded |
Headers | show |
diff --git a/libavformat/utils.c b/libavformat/utils.c index c91a0dc..4ecf053 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -530,10 +530,10 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, AVInputForma if (options) av_dict_copy(&tmp, *options, 0); - if ((ret = av_opt_set_dict(s, &tmp)) < 0) + if ((ret = init_input(s, filename, &tmp)) < 0) goto fail; - if ((ret = init_input(s, filename, &tmp)) < 0) + if ((ret = av_opt_set_dict(s, &tmp)) < 0) goto fail; /* check filename in case an image number is expected */