Nicolas George
ccc7bcc4fc
lavc: check return values consistency when decoding subtitles.
12 years ago
Nicolas George
e568d432b1
lavfi/formats: reindent after last commit.
12 years ago
Nicolas George
2d98dd3d14
lavfi: fix merging of formats and clarify exception.
...
The following commit:
b97d61f
avfilter/ff_merge_formats: only merge if doing so does not loose chroma or alpha
introduced an exception to avoid lossy conversions.
Add a comment to explain the logic.
Fix the call to avoid applying it on audio formats.
12 years ago
Nicolas George
3d7f4f8726
lavf/avio: check that the protocol supports the open mode.
...
Fix trac ticket #2139 .
12 years ago
Nicolas George
bf0712c2f8
libavfilter/af_amerge: fix segfault if init fails.
12 years ago
Mans Rullgard
04cccb5fc1
configure: List external libs used using print_enabled()
...
This cuts some lines from the script as well as the output and
simplifies maintenance.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Mans Rullgard
3fc09b0081
configure: Move list of external libs to a separate variable
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Diego Biurrun
45235ac488
configure: Move x11grab option to a more suitable place in the help output
12 years ago
Michael Niedermayer
066739f6bc
pmpdec: check packet sizes
...
Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
7276e9ea95
pmpdec: fix signedness
...
Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
b0bc0eb978
pmpdec: read index before creating audio streams
...
This allows more complete checks
Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Reimar Döffinger
50a37f9202
pmpdec: check for EOF while reading index.
...
Otherwise even a tiny file can trigger a huge memory allocation.
Related to ticket #2298 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years ago
Michael Niedermayer
82d79289db
avformat: Allocate duration_error separately
...
This significantly reduces the memory needed per AVStream when the
array is not needed.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Justin Ruggles
5c7db097eb
avconv: pass libavresample options to AVFilterGraph
12 years ago
Justin Ruggles
9f1223562e
lavfi: connect libavresample options to af_resample via AVFilterGraph
12 years ago
Justin Ruggles
b2eea615c0
lavr: allow setting internal_sample_fmt option by string
12 years ago
Justin Ruggles
50f4337a2f
lavr: Add "resample_cutoff" option as a duplicate of "cutoff"
...
Avoids an option name conflict with libavcodec, which is needed in order
to work properly with avconv.
12 years ago
Michael Niedermayer
285485ac5f
matroskaenc: fix cue tracknum off by 1 error
...
Fixes out of array accesses
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Justin Ruggles
d7c450436f
ac3dec: validate channel output mode against channel count
...
Damaged frames can lead to a mismatch, which can cause a segfault
due to using an incorrect channel mapping.
CC:libav-stable@libav.org
12 years ago
Diego Biurrun
82ca17ac7a
configure: Fix vaapi/vda/vdpau dependency declarations
12 years ago
Diego Biurrun
215cdd35ef
configure: Refactor dxva2api.h dependency declarations
12 years ago
Diego Biurrun
4cc4b33f71
build: Add proper infrastructure for adding and checking host CPPFLAGS
12 years ago
Diego Biurrun
2aac411fd4
configure: Simplify VDPAU header check
12 years ago
Diego Biurrun
9840130edf
configure: Simplify VDA header and extralibs check
12 years ago
Mans Rullgard
0a8da1a3e5
configure: Do not redundantly list enabled hwaccel libs
...
The enabled hwaccels are listed later anyway.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Diego Biurrun
7432e87206
configure: Add print_3_columns helper function and use where appropriate
12 years ago
Diego Biurrun
040c565e51
doc: developer: Allow tabs in the vim configuration for Automake files
...
While we do not use Automake in libav, this allows our config to be
used more globally without introducing unwanted breakage.
12 years ago
Diego Biurrun
94ee7da08d
Remove pointless av_cold attributes in header files
...
The init functions marked as av_cold have to be executed in any case,
so there is no gain from trying to mark paths leading to such functions
as unlikely.
12 years ago
Michael Niedermayer
73fce258b7
vf_mp: Set pseudo pal
...
Fixes ticket2140
Fixes null pointer dereference
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
da8ef5ac2f
rtmpproto: increase APP_MAX_LENGTH
...
Fixes second part of Ticket2292
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
02ac3398eb
rtmpproto: Check APP_MAX_LENGTH
...
Fixes Ticket2292
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Kostya Shishkov
b5f536d24b
pnm: add high-bitdepth PGMYUV support for both encoder and decoder
12 years ago
Paul B Mahol
df63e0c8bb
doc/filters: add forgotten sentence for blend filter examples
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Michael Niedermayer
c10c2aed47
h264: Silence warning: comparison of distinct pointer types lacks a cast
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
5270cb39ba
bmp: Fix warning X may be used uninitialized in this function
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
John Van Sickle
2f325a6fd4
libx264: change i_qfactor to use x264cli's default
...
This also allows libx264 to modify its i_qfactor value
when using the "-tune" setting. Previously it had a static
value of 1.25
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago
Anton Khirnov
d8a74d1d95
qtrle: use AV_LOG_ERROR in an error message.
12 years ago
Anton Khirnov
7b4f91155b
qtrle: cosmetics, reformat CHECK_PIXEL_PTR() macro
12 years ago
Anton Khirnov
e106592447
qtrle: add more checks against pixel_ptr being negative.
...
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
4f3b058c84
cavs: initialize various context tables to 0
...
Avoids crashes with corrupted files.
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
0dff40bfb9
mlpdec: do not try to allocate a zero-sized output buffer.
...
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
56daf10e03
mov: use the format context for logging.
...
CC:libav-stable@libav.org
12 years ago
Michael Niedermayer
23c9180c00
aacdec: Fix warning: initialization from incompatible pointer type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
cfcab4c507
vf_overlay: silence warning: X may be used uninitialized in this function
...
Also ensure that format is valid in query_formats
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
3c14c82b7e
avfilter: Silence warning: passing argument 3 of av_image_copy from incompatible pointer type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
ddfe1246d9
flicvideo: avoid an infinite loop in byte run compression
...
When byte_run is 0, pixel_countdown is not touched and the loop will run
forever.
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
067432c1c9
loco: check that there is data left after decoding a plane.
...
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
de6dfa2bb8
lagarith: avoid infinite loop in lag_rac_refill()
...
range == 0 happens with corrupted files
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
f935aca44c
av_memcpy_backptr: avoid an infinite loop for back = 0
...
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
8097fc9a2d
4xm: check the return value of read_huffman_tables().
...
CC:libav-stable@libav.org
12 years ago