summaryrefslogtreecommitdiffstats
path: root/encoder
diff options
context:
space:
mode:
Diffstat (limited to 'encoder')
-rw-r--r--encoder/ih264e_encode_header.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/encoder/ih264e_encode_header.c b/encoder/ih264e_encode_header.c
index 6c96e63..cc81e1b 100644
--- a/encoder/ih264e_encode_header.c
+++ b/encoder/ih264e_encode_header.c
@@ -560,7 +560,7 @@ WORD32 ih264e_generate_slice_header(bitstrm_t *ps_bitstrm,
if ((ps_pps->i1_weighted_pred_flag &&
(ps_slice_hdr->u1_slice_type == PSLICE || ps_slice_hdr->u1_slice_type == SPSLICE)) ||
- (ps_pps->i1_weighted_bipred_idc == 1 && ps_slice_hdr->u1_slice_type == BSLICE))
+ (ps_slice_hdr->u1_slice_type == BSLICE && ps_pps->i1_weighted_bipred_idc == 1))
{
/* TODO_LATER: Currently there is no support for weighted prediction.
This needs to be updated when the support is added */
@@ -1065,7 +1065,7 @@ WORD32 ih264e_populate_slice_header(process_ctxt_t *ps_proc,
if ((ps_pps->i1_weighted_pred_flag &&
(ps_proc->i4_slice_type == PSLICE || ps_proc->i4_slice_type == SPSLICE)) ||
- (ps_pps->i1_weighted_bipred_idc == 1 && ps_proc->i4_slice_type == BSLICE))
+ (ps_proc->i4_slice_type == BSLICE && ps_pps->i1_weighted_bipred_idc == 1))
{
/* TODO_LATER: Currently there is no support for weighted prediction.
This needs to be updated when the support is added */