Michael Niedermayer
71d6eb2208
dnxhdenc: remove redundant call to ff_dsputil_init()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8deddc6961
avcodec_alloc_frame: dont zero the whole struct twice
...
cleaning it up is already done in avcodec_get_frame_defaults()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
7a1a9dd56c
pthread: make sure AVFrame.extended_data is set properly.
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Nathan Caldwell
c8ba8be27e
libfdk-aac: reindent after last commit
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Nathan Caldwell
94a69dee64
libfdk-aac: Limit to supported sample rates.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 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>
13 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>
13 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>
13 years ago
Michael Niedermayer
ad9371ef24
ffv1enc: fix RC slice sentinel
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 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>
13 years ago
Stefano Sabatini
f3bd6fa7a8
lavc/mmvideo: forward reget_buffer return value in mm_decode_frame()
13 years ago
Anton Khirnov
11d1ca4b2c
Use avcodec_free_frame() to free AVFrames.
13 years ago
Anton Khirnov
a42aadabc6
lavc: add avcodec_free_frame().
...
Since an AVFrame now has malloced members (extended_data), it must have
a destructor.
13 years ago
Anton Khirnov
b437cec143
lavc: ensure extended_data is set properly on decoding
13 years ago
Anton Khirnov
2bc0de3858
lavc: initialize AVFrame.extended_data in avcodec_get_frame_defaults()
13 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.
13 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.
13 years ago
Stefano Sabatini
efa3d5af1e
lavc/roqvideodec: fix error message
...
Remove redundant reference to codec name, it is already mentioned in the
log header.
13 years ago
Stefano Sabatini
b1fee1be61
lavc/roqvideodec: propagate reget_buffer() error code
13 years ago
Stefano Sabatini
d2c70ec07f
lavc/roqvideodec: remove useless headers
13 years ago
Michael Niedermayer
127b70e423
ra144: factor division out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
3905caf251
Document that the MPEG12 "fast" functions can read out of bounds.
...
This is intentional (and a reason why fast usually should not be used),
but a few people sent patches to "fix" this recently so it would be
better to document this.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Clément Bœsch
2599541b3d
WebVTT demuxer and decoder.
13 years ago
Justin Ruggles
0ccf051a9d
avcodec: fix memleak in avcodec_encode_audio2()
...
Ensure that padded_frame is freed before returning when needed.
13 years ago
Michael Niedermayer
79bf1f0ad0
rawdec: fix "warning: assignment from incompatible pointer type"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
07cdd39478
pnmdec: use explicit casts to remove const to avoid warning with clang
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8d45c001a8
flac_parser: fix fifo ptr wrap check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
c54e00610f
sipr: fall back to setting mode based on bit_rate.
...
Not all applications (e.g. MPlayer) set block_align, and
when using a different demuxer it might not even be
easily available.
So fall back to selecting mode based on bit rate as before
if block_align has not useful value.
It can't be worse than failing to decode completely.
(cherry picked from commit 1d0d63052b
)
CC: libav-stable@libav.org
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
13 years ago
Anton Khirnov
e52e4fe10d
libx264: add forgotten ;
13 years ago
Andrey Utkin
cc07a7925e
Add av_copy_packet()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Andrey Utkin
d33908a5fc
Move av_dup_packet() copy logic to separate procedure
...
Done to simplify next commit introducing av_copy_packet()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mans Rullgard
a27a690fac
ARM: swap source operands in some add instructions
...
This allows using a 16-bit opcode when generating Thumb2 code.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
a34a609fc1
motion_est: fix use of inline on extern functions
...
Inline functions declared without extern do not provide an external
definition in standard C99. This code only works because most
compilers do not implement the inline semantics correctly. With a
stricter compiler, linking fails with unresolved references to these
functions.
Declaring the functions extern inline works correctly with some
compilers while some others still fail to create external definitions.
For maximum portability, create a static inline version with an
externally visible wrapper for ff_get_mb_score. ff_epzs_motion_search
is so large that no sane compiler inlines it anyway, so there the
inline keyword can simply be dropped with no effect.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Michael Niedermayer
16e52c86ba
error_resilience: guess_dc: check malloc failure
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d2981b8ef1
h263dec: disable coded dimensions = 0 handling
...
This code causes infinite loops
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d1974e05d1
j2k: fix "static is not at beginning of declaration" warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
36c2694d83
dcadec: fix "set but not used" variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
John Van Sickle
9bf41210a9
libx264: add support for nal-hrd, required for Blu-ray streams.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Alex Converse
df6c3f9fb3
tiffdec: Add support for GRAY16LE.
...
Tested with the GraphicsMagick TIFF archive and Libav generated files.
13 years ago
Alex Converse
298ed797e1
tiffenc: Add support for little endian RGB48 and GRAY16
13 years ago
Janne Grunau
8701f4f8e8
mpeg4: support frame parameter changes with frame-mt
...
Adds a flag context_reinit to MpegEncContext to relieable keep track
of frame parameter changes which require a context reinitialization.
This is required for broken inputs which change the frame size but
error out before the context can be reinitialized.
13 years ago
Janne Grunau
01fc5d6609
mpegvideo: check ff_find_unused_picture() return value for errors
13 years ago
Janne Grunau
32c7589bb7
mpegvideo: release frame buffers before freeing them
...
Fixes triggering an assert in avcodec_default_release_buffer()
introduced in 1b3439b30
.
13 years ago
Michael Niedermayer
d5fd610dab
wmavoice: initialize best_hist_ptr to NULL to prevent (incorrect) warning.
...
As a sideeffect this makes the code more robust if a future change leaves
a path where it may be uninitialized otherwise.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Janne Grunau
b16d001b62
rv34: use ff_MPV_common_frame_size_change()
...
Specialised functionality for size changes with the advantage of
supporting frame size changes during frame-based multithreading.
13 years ago
Janne Grunau
435c0b87d2
mpegvideo: add reinit function for frame parameter changes
...
This is mainly required for frame parameter changes during frame based
multithreading but single threaded usage profits too from avoiding
ff_MPV_common_end()/ff_MPV_common_init() cycles.
13 years ago
Janne Grunau
1b3439b305
mpegvideo: move frame size dependent memory management to separate functions
...
This is a preparation for supporting frame size changes during
frame-based multithreading.
13 years ago
Michael Niedermayer
0b2ac679e2
sonic: factorize tail_size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
512beea529
sonicenc: limit quant so that golomb codes are less than 32 bits long
...
before they could become 33 bits
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
efac6f7472
x86/mpegaudiodec: drop likely now unneeded #if HAVE_AVX_EXTERNAL
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago