diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2007-08-06 22:34:26 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2007-08-06 22:34:26 +0000 |
commit | 96f81d7eba4c81caf31b89aed34cd2c882aecf8f (patch) | |
tree | 800285def6c52251befcb90b4e340f02a87257be /wiretap/mpeg.c | |
parent | 9eb4bf072c44ae2c5cbe90a587d10d6120813b57 (diff) |
From: Shaun Jackman
This patch adds MPEG PES (packetized elementary stream) to the list of
magic types in wiretap/mpeg.c.
svn path=/trunk/; revision=22460
Diffstat (limited to 'wiretap/mpeg.c')
-rw-r--r-- | wiretap/mpeg.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/wiretap/mpeg.c b/wiretap/mpeg.c index 5155433a0f..2e462a5753 100644 --- a/wiretap/mpeg.c +++ b/wiretap/mpeg.c @@ -247,14 +247,15 @@ mpeg_close(wtap *wth) g_free(wth->capture.mpeg); } -/* XXX We probably need more magic to open more types */ struct _mpeg_magic { size_t len; const gchar* match; } magic[] = { - {3,"TAG"}, - {3,"ID3"}, - {0,NULL} + { 3, "TAG" }, /* ID3v1 */ + { 3, "ID3" }, /* ID3v2 */ + { 3, "\0\0\1" }, /* MPEG PES */ + /* XXX MPEG audio is missing. */ + { 0, NULL } }; int |