summaryrefslogtreecommitdiff
path: root/libavcodec/h264dec.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2020-05-27 23:04:29 +0800
committerLimin Wang <lance.lmwang@gmail.com>2020-06-13 06:59:18 +0800
commit96cc392a175d82c7457ae82db0bf2d6101fd20e7 (patch)
tree763ecf22023f2a310dd624aa22a595499099cf39 /libavcodec/h264dec.c
parent314d10f7a60f1786c85da30a569be61e2b906fef (diff)
avcodec/h264dec: cosmetics
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavcodec/h264dec.c')
-rw-r--r--libavcodec/h264dec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index 6270ea80df..4d8c0b12fb 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -253,8 +253,7 @@ int ff_h264_slice_context_init(H264Context *h, H264SliceContext *sl)
if (sl != h->slice_ctx) {
memset(er, 0, sizeof(*er));
- } else
- if (CONFIG_ERROR_RESILIENCE) {
+ } else if (CONFIG_ERROR_RESILIENCE) {
/* init ER */
er->avctx = h->avctx;