diff mbox

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

Message ID 20170425074301.21142-1-mfcc64@gmail.com
State Accepted
Commit e061826eb2a5706dd75cf42f2fb7603c34c3ea0f
Headers show

Commit Message

Muhammad Faiz April 25, 2017, 7:43 a.m. UTC
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>
---
 libavfilter/lavfutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Muhammad Faiz April 28, 2017, 6:37 p.m. UTC | #1
On Tue, Apr 25, 2017 at 2:43 PM, Muhammad Faiz <mfcc64@gmail.com> wrote:
> 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>
> ---
>  libavfilter/lavfutils.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavfilter/lavfutils.c b/libavfilter/lavfutils.c
> index 706badf..35878b3 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);
> --
> 2.9.3
>

Applied

Thank's
diff mbox

Patch

diff --git a/libavfilter/lavfutils.c b/libavfilter/lavfutils.c
index 706badf..35878b3 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);