[FFmpeg-devel] [PATCH 1/1] libavformat/mov.c: Fix "statement will never be executed" warning

2025-07-30 Thread zhaozhenghang
Fix "statement will never be executed" warning that occurs when CONFIG_H261_DECODER, CONFIG_H263_DECODER, and CONFIG_MPEG4_DECODER are set to 0 by default. Signed-off-by: zhaozhenghang <15083277...@163.com> --- libavformat/mov.c | 8 ++-- 1 file changed, 2 insertions(+), 6 de

[FFmpeg-devel] [PATCH 1/1] libavformat/mov.c : rm 'statement will never be executed' warning

2025-07-30 Thread zhaozhenghang
When CONFIG_H261_DECODER, CONFIG_H263_DECODER, and CONFIG_MPEG4_DECODER are set to 0 by default, resulting in a "statement will never be executed" warning during compilation. To enhance code robustness, this patch fixes the warning. Signed-off-by: zhaozhenghang <150832

[FFmpeg-devel] [PATCH 1/1] libavformat/mov.c : rm 'statement will never be executed' warning

2025-07-23 Thread zhaozhenghang
When CONFIG_H261_DECODER, CONFIG_H263_DECODER, and CONFIG_MPEG4_DECODER are set to 0 by default, resulting in a "statement will never be executed" warning during compilation. To enhance code robustness, this patch fixes the warning. Signed-off-by: zhaozhenghang <150832

[FFmpeg-devel] [PATCH v2] libavformat/mov.c : rm 'statement will never be executed' warning

2025-07-22 Thread zhaozhenghang
remove the conditional compilation inside the switch to avoid warnings. Signed-off-by: zhaozhenghang <15083277...@163.com> --- libavformat/mov.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 4a4641d51b..5307

[FFmpeg-devel] [PATCH 1/1] libavformat/mov.c : rm 'statement will never be executed' warning

2025-07-22 Thread zhaozhenghang
In my development scenario, CONFIG_H261_DECODER, CONFIG_H263_DECODER, and CONFIG_MPEG4_DECODER are set to 0 by default, resulting in a "statement will never be executed" warning during compilation. To enhance code robustness, this patch fixes the warning. Signed-off-by: zhaozhenghang