A small change was made in the last version that added some checks for
the internal dvd player. Those checks were good. But one more check
for st->codec before dereferencing is still needed.
From: Erik Hovland <erik@hovland.org>
---
libs/libavformat/utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libs/libavformat/utils.c b/libs/libavformat/utils.c
index 1048f19..94eb28e 100644
a
|
b
|
static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
|
881 | 881 | s->cur_st = st; |
882 | 882 | s->cur_ptr = s->cur_pkt.data; |
883 | 883 | s->cur_len = s->cur_pkt.size; |
884 | | if (st && st->need_parsing && !st->parser) { |
| 884 | if (st && st->codec && st->need_parsing && !st->parser) { |
885 | 885 | st->parser = av_parser_init(st->codec->codec_id); |
886 | 886 | if (!st->parser) { |
887 | 887 | /* no parser available : just output the raw packets */ |