diff options
author | Muhammad Faiz <mfcc64@gmail.com> | 2017-04-25 10:33:24 +0300 |
---|---|---|
committer | Muhammad Faiz <mfcc64@gmail.com> | 2017-04-28 21:23:25 +0300 |
commit | e061826eb2a5706dd75cf42f2fb7603c34c3ea0f (patch) | |
tree | af17c73ea821245d590f8e29c5b03bcd76cf68ee /libavfilter | |
parent | cbfd44a9229cdead17c2857469ed1340615b3f36 (diff) |
avfilter/lavfutils: use image2pipe demuxer on ff_load_image
allow protocols other than file to be used
for example, use data protocol to embed a file in script
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/lavfutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/lavfutils.c b/libavfilter/lavfutils.c index 706badf63d..35878b3d50 100644 --- a/libavfilter/lavfutils.c +++ b/libavfilter/lavfutils.c @@ -38,7 +38,7 @@ int ff_load_image(uint8_t *data[4], int linesize[4], av_register_all(); - iformat = av_find_input_format("image2"); + iformat = av_find_input_format("image2pipe"); if ((ret = avformat_open_input(&format_ctx, filename, iformat, NULL)) < 0) { av_log(log_ctx, AV_LOG_ERROR, "Failed to open input file '%s'\n", filename); |