1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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>
This commit is contained in:
Muhammad Faiz 2017-04-25 14:33:24 +07:00
parent cbfd44a922
commit e061826eb2

View File

@ -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);