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/libs/libavformat/utils.c
+++ b/libs/libavformat/utils.c
@@ -881,7 +881,7 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
             s->cur_st = st;
             s->cur_ptr = s->cur_pkt.data;
             s->cur_len = s->cur_pkt.size;
-            if (st && st->need_parsing && !st->parser) {
+            if (st && st->codec && st->need_parsing && !st->parser) {
                 st->parser = av_parser_init(st->codec->codec_id);
                 if (!st->parser) {
                     /* no parser available : just output the raw packets */
