[FFmpeg-cvslog] avfilter/lavfutils: use image2pipe demuxer on ff_load_image

Muhammad Faiz git at videolan.org
Fri Apr 28 21:36:14 EEST 2017


ffmpeg | branch: master | Muhammad Faiz <mfcc64 at gmail.com> | Tue Apr 25 14:33:24 2017 +0700| [e061826eb2a5706dd75cf42f2fb7603c34c3ea0f] | committer: Muhammad Faiz

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 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e061826eb2a5706dd75cf42f2fb7603c34c3ea0f
---

 libavfilter/lavfutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the ffmpeg-cvslog mailing list