summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorleozhang <leozhang@qiyi.com>2020-02-01 17:12:13 +0800
committerMichael Niedermayer <michael@niedermayer.cc>2020-02-01 19:04:50 +0100
commit81d25e5bfc4be0c82cf2f9aec28d4ef6e3a5d270 (patch)
treeb3172cdfef636e38f68dfcdbec5a79eb1abc0104 /libavcodec/utils.c
parent843c24a400fa933cdb436eee113a6f501a0c3dd3 (diff)
avcodec/utils: remove extra brackets
Signed-off-by: leozhang <leozhang@qiyi.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index ab48754a64..c685b9c9d7 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -556,11 +556,11 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
if (avcodec_is_open(avctx))
return 0;
- if ((!codec && !avctx->codec)) {
+ if (!codec && !avctx->codec) {
av_log(avctx, AV_LOG_ERROR, "No codec provided to avcodec_open2()\n");
return AVERROR(EINVAL);
}
- if ((codec && avctx->codec && codec != avctx->codec)) {
+ if (codec && avctx->codec && codec != avctx->codec) {
av_log(avctx, AV_LOG_ERROR, "This AVCodecContext was allocated for %s, "
"but %s passed to avcodec_open2()\n", avctx->codec->name, codec->name);
return AVERROR(EINVAL);