diff --git a/pl_mpeg.h b/pl_mpeg.h index b42f53f..50d84dc 100755 --- a/pl_mpeg.h +++ b/pl_mpeg.h @@ -1201,7 +1201,7 @@ plm_frame_t *plm_decode_video(plm_t *self) { if (frame) { self->time = frame->time; } - else if (plm_demux_has_ended(self->demux)) { + if (plm_demux_has_ended(self->demux)) { plm_handle_end(self); } return frame; @@ -1220,7 +1220,7 @@ plm_samples_t *plm_decode_audio(plm_t *self) { if (samples) { self->time = samples->time; } - else if (plm_demux_has_ended(self->demux)) { + if (plm_demux_has_ended(self->demux)) { plm_handle_end(self); } return samples;