On 9/1/2024 10:18 AM, Anton Khirnov wrote:
Quoting James Almer (2024-08-31 18:31:14)
Add the LCEVC data stream payloads as packet side data to the main video
stream, ensuring the former is always output by the demuxer even if not
used by the process.

Signed-off-by: James Almer <jamr...@gmail.com>
---
  configure              |   2 +-
  fftools/ffmpeg.h       |  17 +++
  fftools/ffmpeg_demux.c | 307 ++++++++++++++++++++++++++++++++++++-----
  3 files changed, 292 insertions(+), 34 deletions(-)

diff --git a/configure b/configure
index 3b7cf05bb5..3af3654483 100755
--- a/configure
+++ b/configure
@@ -4044,7 +4044,7 @@ ffmpeg_deps="avcodec avfilter avformat threads"
  ffmpeg_select="aformat_filter anull_filter atrim_filter format_filter
                 hflip_filter null_filter
                 transpose_filter trim_filter vflip_filter"
-ffmpeg_suggest="ole32 psapi shell32"
+ffmpeg_suggest="ole32 psapi shell32 lcevc_merge_bsf"
  ffplay_deps="avcodec avformat avfilter swscale swresample sdl2"
  ffplay_select="crop_filter transpose_filter hflip_filter vflip_filter 
rotate_filter"
  ffplay_suggest="shell32 libplacebo vulkan"
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h
index 3c5d933e17..a9fb55fb6e 100644
--- a/fftools/ffmpeg.h
+++ b/fftools/ffmpeg.h
@@ -440,6 +440,17 @@ typedef struct InputStream {
      int                nb_outputs;
  } InputStream;
+typedef struct InputStreamGroup {
+    const AVClass        *class;
+
+    /* parent source */
+    struct InputFile     *file;
+
+    int                   index;
+
+    AVStreamGroup        *stg;
+} InputStreamGroup;

Any reason this is public? The patch doesn't touch anything outside of
ffmpeg_demux, so presumably no other code uses it.

Ok, locally moved to ffmpeg_demux.c

Eventually we'll need to do merges post decoding (xstack for heif images, amerge for iamf), and I assume that said struct will need to be public, but that can come later.

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to