Gerald Combs
cc739fecb0
P64 fixes.
...
svn path=/trunk/; revision=27683
2009-03-09 21:18:55 +00:00
Jeff Morriss
74c02268d8
Add MP3 to the list of magic types
...
svn path=/trunk/; revision=25690
2008-07-09 19:15:50 +00:00
Stig Bjørlykke
cb91244d0b
Fixed some "shadowed variables", as pointed out by John Smith.
...
svn path=/trunk/; revision=25539
2008-06-23 20:06:20 +00:00
Jeff Morriss
58459d3fba
Create a new "Wireshark utility" library and move the mpeg-audio stuff from
...
wiretap to this new libwsutil. This solves
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1677 by making libwireshark
no longer depend on libwiretap.
svn path=/trunk/; revision=25330
2008-05-20 21:51:01 +00:00
Guy Harris
2c041a8fa4
Cast away shortening conversions that are presumed not to lose any data.
...
Use G_GINT64_CONSTANT() to make a 64-bit integral constant; not all
compilers we use support LL as a suffix for that (MSVC++ 6, for one).
svn path=/trunk/; revision=22580
2007-08-22 02:45:42 +00:00
Richard van der Hoff
e6002deb3e
From Shaun Jackman <sjackman@gmail.com> / bug 1753:
...
* asn1/mpeg/packet-mpeg-pes-template.c: Improved decoding of PES
extension header and Pack header. Decode SCR, PTS, and DTS.
* asn1/mpeg/mpeg-pes.asn (Pack): Remove.
* epan/dissectors/packet-mpeg-pes.c: Regenerate.
* wiretap/mpeg.c (mpeg_read): Decode the SCR using integer
arithmetic instead of double float arithmetic to prevent rounding
error.
* wiretap/wtap-int.h (mpeg_t) <t0>: Use time_t instead of double.
svn path=/trunk/; revision=22577
2007-08-21 22:00:06 +00:00
Luis Ontanon
96f81d7eba
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
2007-08-06 22:34:26 +00:00
Jaap Keuter
668689a69d
Now it really can read MP3 files, without SIGABRT.
...
svn path=/trunk/; revision=22261
2007-07-06 22:27:03 +00:00
Guy Harris
48f03c7800
Get rid of a warning with at least some compilers.
...
svn path=/trunk/; revision=21489
2007-04-21 22:58:03 +00:00
Guy Harris
07d6794bea
All private data for a capture in a Wiretap module must be per-file, not
...
static to the module.
Add the older(?) ID tag for MPEG audio.
Just use the ID at the beginning to identify MPEG audio files; don't
check the file any further.
If the read of the magic number doesn't work, get the error, and, if
there is no error (i.e., it's a short read), just return 0 (meaning "no
error, but this isn't that type of file).
Similarly, if the magic number doesn't match, just return 0, so other
types of file are tried.
svn path=/trunk/; revision=21192
2007-03-25 22:07:40 +00:00
Luis Ontanon
4e7a4e0b06
make the mpeg_open() more conservative checking whether there's ssome magic bytes at the beginning of the file.
...
I added just one type of mpeg magic ("ID3") there's probably more, please add.
svn path=/trunk/; revision=21185
2007-03-25 19:00:59 +00:00
Ulf Lamping
636924e7c8
fix a new warning
...
svn path=/trunk/; revision=21128
2007-03-22 23:14:37 +00:00
Ronnie Sahlberg
eac30afbec
From Graham Bloice
...
Remove compiler warnings
svn path=/trunk/; revision=21115
2007-03-22 11:59:39 +00:00
Ronnie Sahlberg
80525da7db
Add some missing includes and hope that msvc will find the definition for off_t
...
svn path=/trunk/; revision=21113
2007-03-22 11:33:18 +00:00
Ronnie Sahlberg
430eef27fe
From Shaun Jackman
...
Wiretap support to read MPEG files
svn path=/trunk/; revision=21112
2007-03-22 10:44:33 +00:00