PR #21212 opened by wangwenchao
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21212
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21212.patch

Signed-off-by: wangwenchao10 <[email protected]>


>From e25c605713855b0694126d90b7ba7fa71eedbc56 Mon Sep 17 00:00:00 2001
From: wangwenchao10 <[email protected]>
Date: Tue, 16 Dec 2025 10:40:28 +0800
Subject: [PATCH] libavformat/pcmdec.c:avformat_find_stream_info does not check
 timestamp information when probing raw PCM streams

Signed-off-by: wangwenchao10 <[email protected]>
---
 libavformat/pcmdec.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/libavformat/pcmdec.c b/libavformat/pcmdec.c
index 2f6508b75a..71c32babe9 100644
--- a/libavformat/pcmdec.c
+++ b/libavformat/pcmdec.c
@@ -117,19 +117,19 @@ static const AVClass pcm_demuxer_class = {
 };
 
 #define PCMDEF_0(name_, long_name_, ext, codec, ...)
-#define PCMDEF_1(name_, long_name_, ext, codec, ...)        \
-const FFInputFormat ff_pcm_ ## name_ ## _demuxer = {        \
-    .p.name         = #name_,                               \
-    .p.long_name    = NULL_IF_CONFIG_SMALL(long_name_),     \
-    .p.flags        = AVFMT_GENERIC_INDEX,                  \
-    .p.extensions   = ext,                                  \
-    .p.priv_class   = &pcm_demuxer_class,                   \
-    .priv_data_size = sizeof(PCMAudioDemuxerContext),       \
-    .read_header    = pcm_read_header,                      \
-    .read_packet    = ff_pcm_read_packet,                   \
-    .read_seek      = ff_pcm_read_seek,                     \
-    .raw_codec_id   = codec,                                \
-    __VA_ARGS__                                             \
+#define PCMDEF_1(name_, long_name_, ext, codec, ...)                \
+const FFInputFormat ff_pcm_ ## name_ ## _demuxer = {                \
+    .p.name         = #name_,                                       \
+    .p.long_name    = NULL_IF_CONFIG_SMALL(long_name_),             \
+    .p.flags        = AVFMT_GENERIC_INDEX | AVFMT_NOTIMESTAMPS,     \
+    .p.extensions   = ext,                                          \
+    .p.priv_class   = &pcm_demuxer_class,                           \
+    .priv_data_size = sizeof(PCMAudioDemuxerContext),               \
+    .read_header    = pcm_read_header,                              \
+    .read_packet    = ff_pcm_read_packet,                           \
+    .read_seek      = ff_pcm_read_seek,                             \
+    .raw_codec_id   = codec,                                        \
+    __VA_ARGS__                                                     \
 };
 #define PCMDEF_2(name, long_name, ext, codec, enabled, ...) \
     PCMDEF_ ## enabled(name, long_name, ext, codec, __VA_ARGS__)
-- 
2.49.1

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to