mpegts: factorize pes packet state reset function

Signed-off-by: Marton Balint <cus@passwd.hu>
mpegts: unref buffer in reset_pes_packet_state

Signed-off-by: Marton Balint <cus@passwd.hu>
mpegts: always reset pes packet state on new packet

Fixes ticket #3584.

Signed-off-by: Marton Balint <cus@passwd.hu>