[FFmpeg-cvslog] avcodec/options: Remove always-true check
Andreas Rheinhardt
git at videolan.org
Mon Apr 5 19:39:13 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Apr 1 23:16:37 2021 +0200| [9b6ffcf0fd61b61e53591c0ce215de2ce35a6982] | committer: Andreas Rheinhardt
avcodec/options: Remove always-true check
Every codec has a name.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9b6ffcf0fd61b61e53591c0ce215de2ce35a6982
---
libavcodec/options.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/options.c b/libavcodec/options.c
index 58c7ce8d62..b8d4a9faf6 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -39,7 +39,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
static const char* context_to_name(void* ptr) {
AVCodecContext *avc= ptr;
- if(avc && avc->codec && avc->codec->name)
+ if (avc && avc->codec)
return avc->codec->name;
else
return "NULL";
More information about the ffmpeg-cvslog
mailing list