ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] [PATCH 2/2] plugins: New MPEG dissector

From: Mike Duigou <wireshark@xxxxxxxxxx>
Date: Fri, 25 Aug 2006 15:50:10 -0700
Cool dissector!

You may want to register your dissector as part of the growing mime media type dissector type table. This would allow any dissector which generically handles mime content to dissect mpeg data. It's pretty easy to add media type support :

dissector_add_string("media_type", "text/plain", text_lines_handle);

"media_type" is the constant dissector table name. Don't change this (it probably should be in a header)

"text/plain" is a mime type normalized to all lower case and without parameters. Do change this to your mime types.

text_lines_handle is your dissector handle.

Repeat as necessary for all of the mime types appropriate for your dissector.

HTH,

Mike

Shaun Jackman wrote:
I've created an MPEG stream decoder for Wireshark. It's useful for
decoding streaming audio. It currently supports MPEG-1, MPEG-2,
MPEG-2.5 audio, layers 1, 2, 3.