James Almer
32582a4e2a
tools/pktdumper: use av_packet_alloc() to allocate packets
...
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Josh de Kock
89029bd2c7
lav*,tests: remove several register_all calls
...
avdevice_register_all() is still required to register devices into
lavf (this is required due to lavd being somewhat of a hack).
Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years ago
Luca Barbato
ce70f28a17
avpacket: Replace av_free_packet with av_packet_unref
...
`av_packet_unref` matches the AVFrame ref-counted API and can be used as
a drop in replacement.
Deprecate `av_free_packet`.
9 years ago
Diego Biurrun
cd7b6deeaa
tools: Wording and formatting cosmetics
12 years ago
Diego Biurrun
11d4e92ed9
avformat: Remove non-compiling and/or silly commented-out printf/av_log statements
12 years ago
Martin Storsjö
21411a4102
pktdumper: Use a custom define instead of PATH_MAX for buffers
...
PATH_MAX is not necessarily available on all systems, e.g. it's
normally not available on MSVC, and is not guaranteed to defined
on a POSIX system either.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
bcc44873d9
pktdumper: Use av_strlcpy instead of strncpy
...
This takes care of null-terminating the buffer if it is too small,
which wasn't handled properly before.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
372de27df7
pktdumper: Use sizeof(variable) instead of the direct buffer length
...
Also change the snprintf size to use the full buffer, since
snprintf always null-terminates the buffer.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
212ec5faf9
tools: Include io.h for open/read/write/close if unistd.h doesn't exist
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Mans Rullgard
896bb0d742
Replace usleep() calls with av_usleep()
...
This reduces the dependency on unistd.h which is not available
on all systems.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
d55fa1cb25
tools: Remove some unnecessary #undefs.
13 years ago
Diego Biurrun
4e81b5f517
tools: K&R reformatting cosmetics
13 years ago
Martin Storsjö
7072a6a4bb
pktdumper: Use usleep instead of sleep
...
MinGW doesn't have sleep, only _sleep (which is deprecated),
Sleep (which is defined in winbase.h and not in the standard
C headers) and usleep.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
cd3716b9aa
Replace all uses of av_close_input_file() with avformat_close_input().
13 years ago
Janne Grunau
d830264abd
tools/pktdumper: update to recent avformat api
13 years ago
Diego Biurrun
c960e67ad0
Replace deprecated av_find_stream_info() by avformat_find_stream_info().
13 years ago
Diego Biurrun
d39facc783
tools: Check the return value of write().
...
This fixes several warnings of the type:
warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Jean-Daniel Dupas
cc947f04cc
Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.
...
Patch by Jean-Daniel Dupas, devlists shadowlab org
Originally committed as revision 22744 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Zdenek Kabelac
92147b6bec
Use new packet reading API, fixes a memory leak.
...
patch by Zdenek Kabelac, zdenek.kabelac gmail com
Originally committed as revision 18728 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
3ef6182556
Fix #include path, headers from other directories need to have
...
the directory name prefixed now.
Originally committed as revision 14868 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
6878026ada
Add '#undef strcat' to fix compilation.
...
Originally committed as revision 11529 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Måns Rullgård
c07ed8c8a2
create and populate "tools" directory
...
Originally committed as revision 9634 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
755bfeabcc
misc spelling fixes
...
Originally committed as revision 9289 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
15ea54d581
Add standard license header.
...
Originally committed as revision 8115 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Steve L'Homme
949b1a13bf
Replace most of the %lld and %llx by their (cleaner) PRI*64 counterparts.
...
patch by Steve Lhomme, slhomme divxcorp com
Originally committed as revision 6868 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
115329f160
COSMETICS: Remove all trailing whitespace.
...
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
François Revol
2d216336f8
"don't quit" option to attach a debugger /check mem leaks
...
"no write" option to only get next packets
Originally committed as revision 4110 to svn://svn.ffmpeg.org/ffmpeg/trunk
20 years ago
François Revol
15b34f6386
s/\t/ /g for indentation fairies
...
Originally committed as revision 4047 to svn://svn.ffmpeg.org/ffmpeg/trunk
20 years ago
François Revol
0fa04b7fde
pktdumper debugging utility for demuxers. This tool dumps each AVPacket demuxed to a stamped file.
...
make pktdumper LDFLAGS='-Llibavformat/ -lavformat'
Originally committed as revision 4044 to svn://svn.ffmpeg.org/ffmpeg/trunk
20 years ago