summaryrefslogtreecommitdiff
path: root/libavformat/jpegxl_parse.c
diff options
context:
space:
mode:
authorLeo Izen <leo.izen@gmail.com>2023-07-10 18:07:09 -0400
committerLeo Izen <leo.izen@gmail.com>2023-08-27 01:36:18 -0400
commite8a63b4763bf8f10b00a83fe993b2bfdfe4f0545 (patch)
tree0f317ed7c0e865c445f7b7cee67bdd6af8db8ee1 /libavformat/jpegxl_parse.c
parent0c0dd23fe1102313742092c4760596971755814e (diff)
avformat/jpegxl: remove jpegxl_probe, instead call avcodec/jpegxl_parse
This prevents code duplication in the source form by calling the parse code that was moved to avcodec last commit. The code will be duplicated in binary form for shared builds (it's not that large), but for source code it will only exist in one location now. Signed-off-by: Leo Izen <leo.izen@gmail.com>
Diffstat (limited to 'libavformat/jpegxl_parse.c')
-rw-r--r--libavformat/jpegxl_parse.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/libavformat/jpegxl_parse.c b/libavformat/jpegxl_parse.c
new file mode 100644
index 0000000000..e0d4f96204
--- /dev/null
+++ b/libavformat/jpegxl_parse.c
@@ -0,0 +1,22 @@
+/*
+ * JPEG XL Header Parser Stub
+ * Copyright (c) 2023 Leo Izen <leo.izen@gmail.com>
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "libavcodec/jpegxl_parse.c"