Wireshark-dev: Re: [Wireshark-dev] [PATCH 2/2] plugins: New MPEG dissector
From: Mike Duigou <[email protected]>
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.


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.