further allow jpeg_pipe demuxer

This commit is contained in:
byte[] 2021-05-03 00:46:15 -04:00
parent 884115e0f7
commit 06b5a6d917

View file

@ -2,19 +2,21 @@
static int valid_demuxer(AVInputFormat *fmt) static int valid_demuxer(AVInputFormat *fmt)
{ {
// apng: animated PNG // apng: animated PNG
// png_pipe: static PNG // png_pipe: static PNG
// image2: JPEG // image2: JPEG
// gif: GIF // jpeg_pipe: JPEG
// svg_pipe: SVG (recommended not to use this currently) // gif: GIF
// matroska: MKV/WebM // svg_pipe: SVG (recommended not to use this currently)
// matroska: MKV/WebM
return return
fmt == av_find_input_format("apng") || fmt == av_find_input_format("apng") ||
fmt == av_find_input_format("png_pipe") || fmt == av_find_input_format("png_pipe") ||
fmt == av_find_input_format("image2") || fmt == av_find_input_format("image2") ||
fmt == av_find_input_format("gif") || fmt == av_find_input_format("jpeg_pipe") ||
fmt == av_find_input_format("svg_pipe") || fmt == av_find_input_format("gif") ||
fmt == av_find_input_format("svg_pipe") ||
fmt == av_find_input_format("matroska"); fmt == av_find_input_format("matroska");
} }