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
Diego Biurrun
33ad8c3cab
cosmetics: Remove some unnecessary block braces.
13 years ago
Diego Biurrun
abe655a472
Drop unnecessary prefix from *sink* variable and struct names.
13 years ago
Martin Storsjö
33ec9ef96d
Add a tool for creating smooth streaming manifests
...
It can also optionally split the file into individual fragments,
which allows it to be served from any web server without any
server side support.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
bc7d05177f
movdec: Calculate an average bit rate for fragmented streams, too
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
3b5d4428ac
movenc: Write the sample rate instead of time scale in the stsd atom
...
For ismv/isma, the time scale might not be the same as the sample
rate.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
4ddd54dab4
movenc: Add a separate ismv/isma (smooth streaming) muxer
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
b613ff5e93
movenc: Allow the caller to decide on fragmentation
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
f1caf01d5e
libavformat: Add a flag for muxers that support write_packet(NULL) for flushing
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
83988d58ed
movenc: Add support for writing fragmented mov files
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
6ca3856894
movenc: Add a separate start_pts
...
This fixes calculation of trackDuration if the MOVIentry array
is cleared. This is required by the fragmentation support in the
next patch.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Ronald S. Bultje
c3af52fa8b
dsputil: use vertical component for drawing bottom edge.
...
Current code only writes 8 pixels of vertical edge for YUV422, which
causes MC artifacts when subsequent frames use data from that edge.
13 years ago
Alex Converse
efe68076da
aacenc: Fix identification padding when the bitstream is already aligned.
13 years ago
Michael Niedermayer
cdfe94c5ab
aacenc: Write correct length for long identification strings.
...
When the length is the escape value (15), the new length is calculated by
15 + get_bits(8) - 1.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Justin Ruggles
b8dd555c63
aud: remove unneeded field, audio_stream_index from context
...
There is only one stream, so it will always be index 0.
This also allows for removal of the private context.
13 years ago
Justin Ruggles
be14a37066
aud: fix time stamp calculation for ADPCM IMA WS
...
also allows for removing some unused context fields
13 years ago
Justin Ruggles
10fef6bd6b
aud: simplify header parsing
...
also allows for removing some unused context fields
13 years ago
Justin Ruggles
0e6a8b5cf7
aud: set pts_wrap_bits to 64.
...
Time stamps are not read from the bitstream, so no wrapping is needed.
13 years ago
Justin Ruggles
98c290cc08
cosmetics: indentation
13 years ago
Justin Ruggles
d481227c54
aud: support Westwood SND1 audio in AUD files.
...
Fixes decoding of the handful of "death scream" samples from
"Command and Conquer" that use SND1. e.g.
http://samples.libav.org/game-formats/westwood-aud/nuyell1.aud
http://samples.libav.org/game-formats/westwood-aud/nuyell7.aud
13 years ago
Justin Ruggles
02e7dbf5ad
adpcm_ima_ws: fix stereo decoding
...
Stereo ADPCM IMA WS is planar for VQA version 3 and 2-sample interleaved for
VQA version 2.
13 years ago
Justin Ruggles
220506d23f
avcodec: add a new codec_id for CRYO APC IMA ADPCM.
...
The stereo layout and extradata is significantly different from that in
Westwood IMA ADPCM, so a separate codec_id is warranted.
13 years ago
Justin Ruggles
4340a6363e
vqa: remove unused context fields, audio_samplerate and audio_bits
13 years ago
Justin Ruggles
7e813d5933
vqa: clean up audio header parsing
...
Fix setting of bit_rate and bits_per_coded_sample.
Ask for sample for unsupported VQA versions.
13 years ago
Justin Ruggles
5b4c562897
vqa: set time base to frame rate as coded in the header.
...
According to Multimedia Wiki documentation, the frame rate is not always 15,
and the actual value can be found in the header.
13 years ago
Justin Ruggles
9ae846971f
vqa: set packet duration.
...
Also remove unused context field, audio_frame_counter.
13 years ago
Justin Ruggles
53ed79a260
vqa: use 1/sample_rate as the audio stream time base
13 years ago
Justin Ruggles
e1ac69fa27
vqa: set stream start_time to 0.
...
The format has no coded timestamps and must use packet durations to generate
them.
13 years ago
Anton Khirnov
1381e9bc92
lavc: postpone the removal of AVCodecContext.request_channels.
...
Although it has been deprecated for a long time, its intended
replacement (request_channel_layout) is not actually used anywhere, so
request_channels is currently the only way to access that functionality.
13 years ago
Anton Khirnov
dc7ad30fa5
lavf: postpone removing av_close_input_file().
...
It has been deprecated only recently.
13 years ago
Anton Khirnov
af0292f33a
lavc: postpone removing old audio encoding and decoding API
...
It has been deprecated only recently.
13 years ago
Anton Khirnov
75e2025f57
avplay: remove the -er option.
...
Error recognition flags can and should be set directly with AVOptions.
13 years ago
Anton Khirnov
941e9f2238
lavd: remove deprecated v4l grab device.
13 years ago
Paul B Mahol
d1ad6bdb6b
Changelog: restore version <next> header
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Janne Grunau
1d3a9e63e0
rv10: verify slice offsets against buffer size
...
Found by John Villamil <johnv@matasano.com> in fuzzed rv20 in mkv files.
13 years ago
Anton Khirnov
0fec2cb15c
Remove ffmpeg.
13 years ago
Nathan Caldwell
9292fe4a1d
aacenc: Simplify windowing
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Nathan Caldwell
7946a5acfb
aacenc: Move saved overlap samples to the beginning of the same buffer as incoming samples.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Nathan Caldwell
9b8e2a8709
aacenc: Deinterleave input samples before processing.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Nathan Caldwell
04af2efaae
aacenc: Store channel count in AACEncContext.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Nathan Caldwell
80d44277e6
aacenc: Move Q^3/4 calculation to it's own table
...
This should be moved to tablegen at some point.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Nathan Caldwell
025ccf1f8b
aacenc: Request normalized float samples instead of converting s16 samples to float.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Nathan Caldwell
6381f913d1
aacpsy: Replace an if with FFMAX in LAME windowing.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Nathan Caldwell
207bf44d16
aacenc: cosmetics, replace 'rd' with 'bits' in codebook_trellis_rate to make it more clear what is being calculated.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Nathan Caldwell
843cd4a3ed
aacpsy: cosmetics, change a FIXME to a NOTE about subshort comparisons
...
Also fix a typo.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Nathan Caldwell
5310704190
aacenc: cosmetics: move init() and end() to the bottom of the file.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Nathan Caldwell
17ae608127
aacenc: aac_encode_init() cleanup
...
Macroify sanity checks and check return values of allocs and other functions.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Paul B Mahol
27ed027bcd
XWD encoder and decoder
...
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Hendrik Leppkes
7662a532fb
vc1: don't read the interpfrm and bfraction elements for interlaced frames
...
This matches the spec as well as the reference decoder, and fixes a bug
with interlaced frame decoding.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Janne Grunau
50a3f9a4bd
mxfdec: fix memleak on mxf_read_close()
13 years ago