Revert "Ignore extra padding data in the current_packet (#1304)" (#1325)

This reverts commit 7f4acae74b.
This commit is contained in:
PunitLodha
2021-04-12 23:15:14 +05:30
committed by GitHub
parent 1af107aef8
commit 91ef488dff

View File

@@ -1736,10 +1736,10 @@ void ccx_dtvcc_process_current_packet(ccx_dtvcc_ctx *dtvcc, int len)
"Sequence: %d, packet length: %d\n",
seq, len);
#endif
if (dtvcc->current_packet_length != len)
if (dtvcc->current_packet_length != len) // Is this possible?
{
// Most likely things are going to be bad for us
len = dtvcc->current_packet_length; // At least don't read beyond the buffer
_dtvcc_decoders_reset(dtvcc);
return;
}
if (dtvcc->last_sequence != CCX_DTVCC_NO_LAST_SEQUENCE &&
(dtvcc->last_sequence + 1) % 4 != seq)