demux: allow passing NULL as packet to demuxer_add_packet()

demux_subreader relied on this.
This commit is contained in:
wm4 2013-07-11 20:05:43 +02:00
parent ac080c77fb
commit 3a7fa5b186
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ int demuxer_add_packet(demuxer_t *demuxer, struct sh_stream *stream,
demux_packet_t *dp)
{
struct demux_stream *ds = stream ? stream->ds : NULL;
if (!ds || !ds->selected) {
if (!dp || !ds || !ds->selected) {
talloc_free(dp);
return 0;
}