Skip to content

Commit

Permalink
Skip invalid ps packets
Browse files Browse the repository at this point in the history
  • Loading branch information
phoboslab committed Aug 21, 2019
1 parent f7566ee commit 5fe30d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pl_mpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,10 @@ plm_packet_t *plm_demux_decode(plm_demux_t *self) {
code == PLM_DEMUX_PACKET_PRIVATE ||
(code >= PLM_DEMUX_PACKET_AUDIO_1 && code <= PLM_DEMUX_PACKET_AUDIO_4)
) {
return plm_demux_decode_packet(self, code);
plm_packet_t *packet = plm_demux_decode_packet(self, code);
if (packet) {
return packet;
}
}
} while (code != -1);

Expand Down

0 comments on commit 5fe30d9

Please sign in to comment.