mirror of
https://github.com/mpv-player/mpv
synced 2025-02-28 03:10:55 +00:00
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)
|
demux_packet_t *dp)
|
||||||
{
|
{
|
||||||
struct demux_stream *ds = stream ? stream->ds : NULL;
|
struct demux_stream *ds = stream ? stream->ds : NULL;
|
||||||
if (!ds || !ds->selected) {
|
if (!dp || !ds || !ds->selected) {
|
||||||
talloc_free(dp);
|
talloc_free(dp);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user