mirror of https://github.com/mpv-player/mpv
demux: allow passing NULL as packet to demuxer_add_packet()
demux_subreader relied on this.
This commit is contained in:
parent
ac080c77fb
commit
3a7fa5b186
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue