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
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
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
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
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