From 06b5a6d917161205aa919abb6fefec32047de589 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 3 May 2021 00:46:15 -0400 Subject: [PATCH] further allow jpeg_pipe demuxer --- src/util.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/util.c b/src/util.c index 5df407c..8c68645 100644 --- a/src/util.c +++ b/src/util.c @@ -2,19 +2,21 @@ static int valid_demuxer(AVInputFormat *fmt) { - // apng: animated PNG - // png_pipe: static PNG - // image2: JPEG - // gif: GIF - // svg_pipe: SVG (recommended not to use this currently) - // matroska: MKV/WebM + // apng: animated PNG + // png_pipe: static PNG + // image2: JPEG + // jpeg_pipe: JPEG + // gif: GIF + // svg_pipe: SVG (recommended not to use this currently) + // matroska: MKV/WebM return - fmt == av_find_input_format("apng") || - fmt == av_find_input_format("png_pipe") || - fmt == av_find_input_format("image2") || - fmt == av_find_input_format("gif") || - fmt == av_find_input_format("svg_pipe") || + fmt == av_find_input_format("apng") || + fmt == av_find_input_format("png_pipe") || + fmt == av_find_input_format("image2") || + fmt == av_find_input_format("jpeg_pipe") || + fmt == av_find_input_format("gif") || + fmt == av_find_input_format("svg_pipe") || fmt == av_find_input_format("matroska"); }