diff options
Diffstat (limited to 'libavformat/lxfdec.c')
-rw-r--r-- | libavformat/lxfdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/lxfdec.c b/libavformat/lxfdec.c index bf17d87a33..dbb5f53385 100644 --- a/libavformat/lxfdec.c +++ b/libavformat/lxfdec.c @@ -165,7 +165,7 @@ static int get_packet_header(AVFormatContext *s) break; case 1: //audio - if (!(st = s->streams[1])) { + if (!s->streams || !(st = s->streams[1])) { av_log(s, AV_LOG_INFO, "got audio packet, but no audio stream present\n"); break; } |