Michael Niedermayer
cc4deafed1
oggdec: print error when headers couldnt be parses successfully
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
46a35959d8
Merge commit '7751e4693dd10ec98c20fbd9887233b575034272'
...
* commit '7751e4693dd10ec98c20fbd9887233b575034272':
ogg: check that the expected number of headers had been parsed
libx264: change default to closed gop to match x264cli
Use avcodec_free_frame() to free AVFrames.
lavf: use a malloced AVFrame in try_decode_frame().
lavc: add avcodec_free_frame().
lavc: ensure extended_data is set properly on decoding
lavc: initialize AVFrame.extended_data in avcodec_get_frame_defaults()
lavc: use av_mallocz to allocate AVFrames.
lavc: rename the argument of avcodec_alloc_frame/get_frame_defaults
Conflicts:
doc/APIchanges
doc/examples/decoding_encoding.c
libavcodec/utils.c
libavcodec/version.h
libavfilter/src_movie.c
libavformat/oggdec.c
libavformat/oggdec.h
libavformat/oggparsetheora.c
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
7a1a9dd56c
pthread: make sure AVFrame.extended_data is set properly.
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Stefano Sabatini
2089f93300
ffprobe: drop pointless opaque parameter in writer init callback
...
The parameter was never used.
12 years ago
Stefano Sabatini
58e9025993
ffprobe: reindent after previous commit
12 years ago
Stefano Sabatini
4b370d6126
ffprobe: rework checking logic in writer_print_time() and writer_print_rational()
...
Make writer_print_time() and writer_print_rational() always call
writer_print_int() or writer_print_string(). This way the checks for
determining if the value should be printed or not are consistently
performed in the low level functions.
writer_print_rational() is moved downward in order to avoid a forward
reference.
Simplify/amend the overall logic.
12 years ago
Clément Bœsch
4390f8c28d
Fix two "skiping" typo.
12 years ago
Nathan Caldwell
c8ba8be27e
libfdk-aac: reindent after last commit
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Nathan Caldwell
94a69dee64
libfdk-aac: Limit to supported sample rates.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Derek Buitenhuis
2768b71798
cbrt_tablegen: Include libm.h
...
Needed for cbrtf fallback on systems which lack it.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
12 years ago
Michael Niedermayer
aea15df3b4
ffv1dec: change bitstream end check to a exact check instead of a +-1 check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
d8676140de
ffv1: inject sentinels for RC->VLC transitions begining with 1.3
...
This breaks bitstream compatibility of 1.3 VLC streams
This fixes very rare errors in the RC stream at the transition point
to VLC.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
ad9371ef24
ffv1enc: fix RC slice sentinel
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 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>
12 years ago
Alexander Strasser
dde8068856
ffprobe: Consider the chosen separator when doing CSV escaping
...
Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
12 years ago
Alexander Strasser
dd83028374
ffprobe: Rename variable in csv_escape_str()
...
Sync to 3245be9
.
Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
12 years ago
Alexander Strasser
f70122dd57
ffprobe: Simplify CSV field quoting code
...
Sync with bac1b31
.
Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
12 years ago
Mans Rullgard
7e3208a087
ARM: libswresample: NEON optimised generic fltp to s16 conversion
...
Adapted to swr by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
97599f8c6d
swr: make sure the last data element is NULL so we can use it to detect the number of channels
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Mans Rullgard
5dc7363446
ARM: libswresample: NEON optimised stereo fltp to s16 conversion
...
Adaption to swr by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Mans Rullgard
0eebde07a9
ARM: libswresample: NEON optimised flat float to s16 conversion
...
Adapted to swr by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 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.
12 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.
12 years ago
Luca Barbato
0336dea2ef
oggparsetheora: make it more robust
12 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>
12 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.
12 years ago
John Van Sickle
a716006a7d
libx264: change default to closed gop to match x264cli
...
open-gop can be enabled with "-flags -cgop"
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago
Michael Niedermayer
fd63c2ff0c
fate: fix --disable-ffprobe
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
f3bd6fa7a8
lavc/mmvideo: forward reget_buffer return value in mm_decode_frame()
12 years ago
Michael Niedermayer
ff584803b7
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
rtp: Packetization of JPEG (RFC 2435)
smoothstreamingenc: Copy the SAR on the AVStreams as well
Conflicts:
Changelog
libavformat/rtpenc.c
libavformat/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
874b9dcc4b
ppc/cpu: make linux 32bit specific altivec detection depend on __linux__
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
c75b611a38
configure: enable runtime cpu detect by default.
...
with the exception of libpostproc runtime_cpudetect = no is not
supported thus having no as default really is quite odd, it results in
a libpostproc where HAVE_MMX* have very different meaning from the
rest of ffmpeg and it breaks any x86 cpu that doesnt support mmx2
because mmx2 is hardcoded as a result
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
11d1ca4b2c
Use avcodec_free_frame() to free AVFrames.
12 years ago
Anton Khirnov
9eb296572e
lavf: use a malloced AVFrame in try_decode_frame().
...
This allows using avcodec_free_frame() to free it properly.
12 years ago
Anton Khirnov
a42aadabc6
lavc: add avcodec_free_frame().
...
Since an AVFrame now has malloced members (extended_data), it must have
a destructor.
12 years ago
Anton Khirnov
b437cec143
lavc: ensure extended_data is set properly on decoding
12 years ago
Anton Khirnov
2bc0de3858
lavc: initialize AVFrame.extended_data in avcodec_get_frame_defaults()
12 years ago
Anton Khirnov
c084a975aa
lavc: use av_mallocz to allocate AVFrames.
...
Otherwise the frame is uninitialized, so avcodec_get_frame_defaults()
cannot determine whether to free extended_data.
12 years ago
Anton Khirnov
a83499b13b
lavc: rename the argument of avcodec_alloc_frame/get_frame_defaults
...
AVFrame is used for both audio and video, so calling the argument 'pic'
is misleading.
12 years ago
Stefano Sabatini
efa3d5af1e
lavc/roqvideodec: fix error message
...
Remove redundant reference to codec name, it is already mentioned in the
log header.
12 years ago
Stefano Sabatini
b1fee1be61
lavc/roqvideodec: propagate reget_buffer() error code
12 years ago
Stefano Sabatini
d2c70ec07f
lavc/roqvideodec: remove useless headers
12 years ago
Stefano Sabatini
d40b197ca8
tests/fate-ffprobe: fix typo in metadata comment
12 years ago
Stefano Sabatini
10c00f7a04
tests/fate-ffprobe: use an ffmetadata file for the injected metadata
...
Workaround commandline msys issues, also allow more flexibility.
Should fix ffprobe tests on mingw+MSVC.
12 years ago
Stefano Sabatini
64d340c62a
lavf/utils: add error check in av_read_frame()
...
In particular, fix crash when the input file contains no packets (e.g. an
ffmeta input).
12 years ago
Michael Niedermayer
127b70e423
ra144: factor division out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
7200fecd9b
cmdutils: sort codec lists.
...
The lists are sorted first by type (video first)
and then alphabetically by name.
Fix ticket #1669 .
12 years ago
Samuel Pitoiset
cee1950bbb
rtp: Packetization of JPEG (RFC 2435)
12 years ago
Martin Storsjö
71908f0838
smoothstreamingenc: Copy the SAR on the AVStreams as well
...
This is required in chained muxers, if the SAR happens to be set.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Sebastien Zwickert
f25d53d95f
configure: disable VDA on ppc, fix build
...
Fixes Ticket1760
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago