diff options
Diffstat (limited to 'demux/demux.c')
-rw-r--r-- | demux/demux.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/demux/demux.c b/demux/demux.c index 467b016699..bfa999ab15 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -318,6 +318,14 @@ int demuxer_add_packet(demuxer_t *demuxer, struct sh_stream *stream, return 0; } + if (stream->type == STREAM_VIDEO && !dp->len) { + /* Video packets with size 0 are assumed to not correspond to frames, + * but to indicate the absence of a frame in formats like AVI + * that must have packets at fixed timestamp intervals. */ + talloc_free(dp); + return 1; + } + dp->stream = stream->index; dp->next = NULL; |