[Coverity 1666198] Explicit null dereferenced in DecoderPlayCcLocked()
A null pointer dereference will occur.
In DecoderPlayCcLocked: Dereference of an explicit null value (CWE-476)
1247 vlc_list_foreach(it, &p_owner->subdecs.list, node)
1248 {
9. Condition !SubDecoderIsCc(it), taking true branch.
13. Condition !SubDecoderIsCc(it), taking false branch.
20. Condition !SubDecoderIsCc(it), taking false branch.
1249 if (!SubDecoderIsCc(it))
10. Continuing loop.
1250 continue;
1251
14. Condition ++cc_idx == p_owner->cc.count, taking true branch.
21. Condition ++cc_idx == p_owner->cc.count, taking false branch.
1252 if (++cc_idx == p_owner->cc.count)
1253 {
1254 block_FifoPut(it->p_fifo, p_cc);
15. assign_zero: Assigning: p_cc = NULL.
1255 p_cc = NULL;
16. Falling through to end of if statement.
1256 }
1257 else
1258 {
CID 1666198: (#1 of 1): Explicit null dereferenced (FORWARD_NULL)
22. var_deref_model: Passing null pointer p_cc to vlc_frame_Duplicate, which dereferences it.[show details]
1259 block_t *dup = block_Duplicate(p_cc);
1260 if (dup == NULL)
1261 break;
1262 block_FifoPut(it->p_fifo, dup);
1263 }
17. Jumping back to the beginning of the loop.
1264 }