[vlc-commits] va: remove unneeded error check
Rémi Denis-Courmont
git at videolan.org
Sat Sep 26 21:23:33 CEST 2020
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Sep 26 20:23:35 2020 +0300| [fa6d8d9f89978537453b14395367d72d102c248d] | committer: Rémi Denis-Courmont
va: remove unneeded error check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fa6d8d9f89978537453b14395367d72d102c248d
---
modules/codec/avcodec/va.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/modules/codec/avcodec/va.c b/modules/codec/avcodec/va.c
index b9bfe7b101..f9497759e9 100644
--- a/modules/codec/avcodec/va.c
+++ b/modules/codec/avcodec/va.c
@@ -121,9 +121,7 @@ vlc_va_t *vlc_va_New(vlc_object_t *obj, AVCodecContext *avctx,
}
}
- if (likely(total >= 0))
- free(mods);
-
+ free(mods);
vlc_object_delete(va);
return NULL;
}
More information about the vlc-commits
mailing list