Luca Barbato
1e46c63eb7
avformat: refactor avformat_write_header
...
Split away option settings, sanity checks and general setup.
13 years ago
Luca Barbato
86bbdf865e
avformat: refactor avformat_write_header
...
Mostly cosmetic changes adding some intermediate to shorten the lines.
13 years ago
Luca Barbato
55f9037f38
avformat: split muxing functions from util.c
13 years ago
Diego Biurrun
15d35bee83
mpegts: Drop pointless casting of hex_dump_debug arguments
13 years ago
Diego Biurrun
d3c40a7d1d
avformat: const correctness for av_hex_dump / av_hex_dump_log
13 years ago
Diego Biurrun
72eaba5e4f
avformat: Convert some commented-out printf/av_log instances to av_dlog
13 years ago
Diego Biurrun
11d4e92ed9
avformat: Remove non-compiling and/or silly commented-out printf/av_log statements
13 years ago
Michael Niedermayer
14fd34d73b
movenc: fix edit list for the case of negative pts.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
594b1fcb28
mov: add av_dlog() to dump edit lists.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
3ceeb01c06
mov: only print multiple edit lists warning for actually unsupported cases
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
44a7a6300d
lavf: free probe data in case we close before probing finished
...
Fixes Ticket1634
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
0af49a63c7
avidec: use actually read size instead of requested size
...
Fixes CVE-2012-2788
13 years ago
Anton Khirnov
eeade678f0
avidec: return 0, not packet size from read_packet().
13 years ago
Michael Niedermayer
c0209facd2
mov: remove default of 1024 sample skip for aac.
...
It is not correct in all cases and it is less predictable than a skip of 0
for user applications.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c402d36afa
nutdec: fix get_vb_trace() / -DTRACE compile
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b4c753487c
asfenc: avoid negative timestamps
...
Fixes Ticket1606
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Duncan Salerno
8bd324e9e4
http: Increase buffer sizes to cope with longer URIs
...
Use the MAX_URL_SIZE define where applicable. Increase buffer
sizes for all buffers that need to fit a long pathname - buffers
that need to fit only the hostname (and other short strings, but
not the pathname - such as "headers" in http_connect) are kept
at 1024 bytes for now.
Also increase the max line length in http_read_header, since it
might need to contain a full url for Location: redirects.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Marton Balint
13f0cd681e
mxfdec: allow container_ul to override codec_ul if codec is A-law
...
Fixes some DNXHD files generated by AVID TM, where codec UL was set to A-law
meanwhile the real audio codec was PCM S16. According to SMPTE RP 224, A-law is
the default value for sound essence parameters therefore we should handle it
specially.
Signed-off-by: Marton Balint <cus@passwd.hu>
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
bc66827fb1
nutenc: const correctness for ff_put_v_trace/put_s_trace function arguments
13 years ago
Michael Niedermayer
279ae1cd72
lavf: move fields that appear to be intended as public API to the correct section
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
83655442fa
nutdec: Remove unused and broken debug function stub
13 years ago
Nathan Caldwell
bcc1f7caeb
Add Opus support to the Ogg muxer.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Dale Curtis
0575772fa0
avformat: Identify anonymous AVIO typedef structs.
...
Anonymous typedef structs prevent forward declaration, this
change gives the AVIOContext and AVIOInterruptCB structures
a name. These structures are now in line with other common
structures such as AVFormatContext and AVCodecContext.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Clément Bœsch
a714150827
lavf/movenc: add faststart option.
13 years ago
Clément Bœsch
f379a108a4
lavf/movenc: make mov_write_stco_tag() not use the offset pos for mode64 heuristic.
...
At the moment, the moov header is written at the end of the file, so we
can use the current offset (which focus on the end of the mdat already
written) to guess if 64-bits offset will be required or not.
Though, the next commits will make possible the writing of this table at
the beginning, so this heuristic can't work. As a consequence, we check
all the values within the potential offset table for any value >
32-bits.
13 years ago
Clément Bœsch
e17a2aba25
lavf/movenc: add get_moov_size and use it in fragment code.
...
This function will be re-used in the following commits.
13 years ago
Jean First
d37044647f
file: set the return value type for lseek to off_t
...
fixes a bug introduced with 4ed5ac50d3
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
2e4ec8947d
lavf: fill in past dts based on reordered pts once the delay becomes known.
...
Previously we had ignored the past dts and just filled in from the
point where we have had sufficient information.
This should fix Ticket1734
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a8e3815db5
lavf: factorize timestamp shift in update_initial_timestamps()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
93e81ee81c
nutdec: const correctness for get_v_trace/get_s_trace function arguments
13 years ago
Martin Storsjö
69673138c5
rtpdec: Remove a useless ff_ prefix from a static symbol
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Dmitry Samonenko
b6bf1490da
rtpdec: Support depacketizing speex
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Dmitry Samonenko
490ae95aa8
rtpenc: Add support for packetizing speex
...
This packetization scheme simply places the full packets into the
RTP packet without any extra header bytes.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
5c4e2e8755
nutenc: avoid negative timestamps
...
Fixes Ticket1468
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
3ba0dab76a
lavf: Add support offset timestamps on muxing.
...
This allows avoiding negative timestamps.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e9350c44ad
nutenc: remove outdated fixme
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
299c0b30a6
lavf: fix bug that caused has_decode_delay_been_guessed() to never return !=0
...
Possibly fixes Ticket1724
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Duncan Salerno
4b80a619b7
Handle the following type of relative URL correctly:
...
http://a/b + //c/d = http://c/d
http://a/b?c + ?d = http://a/b?d
http://a/b?c/d + /e = http://a/e
Updated with feedback from Clément Bœsch
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d9d56712e9
oggparsetheora: print error when failing on unknown header
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d3ef2da59d
oggdec: add missing () for OGG_NOGRANULE_VALUE
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4c273eb64c
oggdec: print a warning if the number of headers mismatch expectations.
...
This is based on:
commit 7751e4693d
Author: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
cc4deafed1
oggdec: print error when headers couldnt be parses successfully
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
4390f8c28d
Fix two "skiping" typo.
13 years ago
Michael Niedermayer
6bcbe768bb
lavf: dont add apic streams for demuxers that dont support it.
...
Fixes crash
Fixes ticket1730
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
d1f05dd183
ogg: calculate the start position once all the headers are parsed
...
The fisbone packets can be muxed in any order as long the last one
comes before the first data packet.
13 years ago
Luca Barbato
7751e4693d
ogg: check that the expected number of headers had been parsed
...
Not having the header for a codec is a tell-tale of a broken file.
13 years ago
Luca Barbato
0336dea2ef
oggparsetheora: make it more robust
13 years ago
Michael Niedermayer
bb146bb57b
ogg: prevent NULL pointer deference in theora gptopts
...
Additional safety in case a special ogg stream is crafted
with the proper number of
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
bbe9fe469a
lavf/utils: remove loop on AVERROR(EAGAIN) in av_read_frame()
...
The loop was introduced in 64d340c62a
, and
was likely breaking non blocking reads as it busy loops.
13 years ago
Anton Khirnov
11d1ca4b2c
Use avcodec_free_frame() to free AVFrames.
13 years ago