From 8132d6218d5945dc2267627b36deb3a191552ed9 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 27 Apr 2025 20:20:02 +0200 Subject: [PATCH 4/7] avformat/apvdec: Remove inappropriate flags The init-cleanup flag makes no sense for a demuxer without a read_close() function; and the generic index is wrong, as the packet positions are off by four (they point to the actual packet data, not to the access unit size field). Signed-off-by: Andreas Rheinhardt --- libavformat/apvdec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/apvdec.c b/libavformat/apvdec.c index 9f94a901ec..85e875a0d4 100644 --- a/libavformat/apvdec.c +++ b/libavformat/apvdec.c @@ -240,8 +240,7 @@ const FFInputFormat ff_apv_demuxer = { .p.name = "apv", .p.long_name = NULL_IF_CONFIG_SMALL("APV raw bitstream"), .p.extensions = "apv", - .p.flags = AVFMT_GENERIC_INDEX | AVFMT_NOTIMESTAMPS, - .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP, + .p.flags = AVFMT_NOTIMESTAMPS, .read_probe = apv_probe, .read_header = apv_read_header, .read_packet = apv_read_packet, -- 2.45.2