Michael Niedermayer
79013a59c0
update for 1.1
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 22:42:56 +01:00
Michael Niedermayer
58edabb198
MAINTAINERS: add 1.1, remove 0.10
...
If someone else wants to maintain a old release, please contact us
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 21:42:35 +01:00
Michael Niedermayer
d46fca4b75
RELEASE: 1.1.git for master
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 21:42:35 +01:00
Michael Niedermayer
6270564abc
Changelog, update for 1.1 release
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 21:28:15 +01:00
Michael Niedermayer
2713e43ac8
ff_get_audio_frame_size: try to fix wma in wav
...
Fixes Ticket1905, Ticket2114
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 19:46:04 +01:00
Stefano Sabatini
b3d814753c
tests/fate/avfilter.mak: merge pp tests into GPL test list
...
The mp=pp filter was removed and replaced with a native implementation,
so the dependency on CONFIG_MP_FILTER stands no more.
2013-01-06 19:04:24 +01:00
Clément Bœsch
caee85bbce
lavfi/kerndeint: remove unused pixel_step.
2013-01-06 18:59:15 +01:00
Clément Bœsch
f6659e5c5e
lavfi/kerndeint: fix temp buffer linesize.
...
Also re-enable the FATE test.
2013-01-06 18:59:15 +01:00
Carl Eugen Hoyos
1ae9d2820e
Support decoding AC-3 in wav.
...
All known samples are actually ac3-in-spdif-in-wav, so use
the spdif demuxer to get the ac3 frames.
2013-01-06 18:48:51 +01:00
Carl Eugen Hoyos
9ff92cf195
012v decoder.
...
The decoder also supports a12v, but removes the transparency layer
since no samples with actual transparency are available for testing.
2013-01-06 17:59:27 +01:00
rogerdpack
40648d8cc3
add note on windows pipe
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 17:47:49 +01:00
Michael Niedermayer
f6ef62eb7f
doc/ffmpeg-resampler: Try to document async
...
Improvements welcome!
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 17:47:49 +01:00
Carl Eugen Hoyos
9ffe790afc
Support stereo as experimental feature in mmf / Yamaha SMAF.
...
Fixes ticket #1085 .
2013-01-06 16:38:24 +01:00
Michael Niedermayer
631ec0642d
fate: disable kerndeint test
...
The filter has been added recently and does not yet pass tests on all platforms.
It should not be included in the tests in the release until it works.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 15:08:38 +01:00
Michael Niedermayer
8214c1d82c
mxfenc: avoid depending on private codec structures and functions
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 14:08:08 +01:00
Michael Niedermayer
3db02b83e7
dnxhd: Add avpriv_dnxhd_get_frame_size()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 13:58:46 +01:00
Michael Niedermayer
11e1466b43
cos_tablegen: fix the lack on M_PI
...
We dont include mathematics.h as the headers get configured by config.h
for the target not the host.
Reviewed-by: Clément Bœsch <ubitux@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 13:56:55 +01:00
Thilo Borgmann
bfde6e5c02
alsdec: Introduce failsafe switch to keep ALSSpecificConfig consistent to the input.
...
Reveiwed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 13:55:58 +01:00
Thilo Borgmann
95f81159de
alsdec: Consistently use a period at the end of error messages.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 13:52:53 +01:00
Michael Niedermayer
7456164b50
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
x86: lavr: use the x86inc.asm automatic stack alignment in mixing functions
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 13:20:23 +01:00
Peter Ross
c44b4ee6ea
frmdec: reduce probe score to reflect test accuracy (and pass probetest)
2013-01-06 16:51:57 +11:00
Michael Niedermayer
e797f22efa
vf_tinterlace: fix logical/bit op mixup
...
Fixes CID966642
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 04:38:53 +01:00
Clément Bœsch
521daf1409
lavfi/kerndeint: get pix format description only once.
...
This makes the code faster.
2013-01-06 04:37:33 +01:00
Peter Ross
c4bfb0f121
fate: kerndeint requires gpl
2013-01-06 14:36:51 +11:00
Clément Bœsch
aaf59766b9
lavfi/avfilter: remove now unused {src,cur,out}_buf.
...
This was supposed to be removed in 565e4993 , but it was delayed due to
the port of the remaining filters. These buffer ref pointers are not
used anymore, thus dropped.
2013-01-06 04:14:56 +01:00
Clément Bœsch
2e7744a6a2
lavc/subviewerdec: fix potential NULL deref.
...
Fixes CID966647
2013-01-06 04:04:22 +01:00
Peter Ross
3d0994be2f
Megalux Frame demuxer
2013-01-06 13:58:15 +11:00
Michael Niedermayer
e27c470f2b
fate: disable lavfi-histeq
...
The filter has been added recently and does not yet pass tests on all platforms.
It should not be included in the tests in the release until it works.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 02:40:44 +01:00
Michael Niedermayer
0ef615126f
vf_kerndeint: memset buffer to avoid use of uninitialized memory.
...
This might fix fate failures.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 02:40:44 +01:00
Piotr Bandurski
4784a135b2
tiffdec: Use the correct height field.
...
Fixes Ticket913
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-06 01:56:53 +01:00
Carl Eugen Hoyos
8bf70159dc
10l: Update fate seeking reference after last commit.
2013-01-05 23:42:00 +01:00
Carl Eugen Hoyos
1a34103f0f
mmf.c: Use LIBAVFORMAT_IDENT when writing Yamaha SMAF version information.
2013-01-05 23:39:46 +01:00
Michael Niedermayer
39d1875455
libavfilter/video.h: remove unused things related to the start/slice/end API
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-05 23:36:09 +01:00
Michael Niedermayer
2468827c06
internal.h: remove start/end_frame from AVFilterPad
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-05 23:36:09 +01:00
内田佳久
7e5d4fa97d
mmf.c: Do not write metadata into the SMAF Contents Info chunk.
2013-01-05 23:11:09 +01:00
Justin Ruggles
95d01c3f1c
x86: lavr: use the x86inc.asm automatic stack alignment in mixing functions
...
CC:libav-stable@libav.org
2013-01-05 16:14:35 -05:00
Michael Niedermayer
f3c9d66baf
libspeexdec: fix terminator check
...
Fixes Ticket2096
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-05 18:36:13 +01:00
James Almer
6717d1a96f
MAINTAINERS: add myself as maintainer of lavf/astenc.c
...
Signed-off-by: James Almer <jamrial@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-05 17:07:50 +01:00
James Almer
b7d77f8e64
astenc: Enable the loop flag only when needed
...
Signed-off-by: James Almer <jamrial@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-05 17:07:42 +01:00
Michael Niedermayer
9a697cfe71
lavu: test for broken binutils on ARM
...
Some old gnu assemblers fail to assemble qdadd correctly
Ideally we should check this at build time, but better to
check at run time than mysteriously failing.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-05 16:25:37 +01:00
Nicolas George
305180f525
lavu/base64: return meaningful error code.
2013-01-05 15:40:40 +01:00
Carl Eugen Hoyos
6a9af92565
Allow remaining 32bit RGB packed pix_fmts in kerndeint filter.
...
Reviewed-by: Stefano Sabatini
2013-01-05 14:40:06 +01:00
Stefano Sabatini
860b5c0a63
lavfi/kerndeint: fix mismatch between declared pixel format and test
...
+10l.
2013-01-05 14:04:33 +01:00
Michael Niedermayer
bb4fb7715c
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
swscale: fix NULL checking in sws_alloc_context()
mxfdec: fix NULL checking in mxf_get_sorted_table_segments()
finalize changelog for version 9
Conflicts:
Changelog
libavformat/mxfdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-05 13:37:30 +01:00
Michael Niedermayer
2163c8828d
Merge commit 'b14e89b3c5e6d7f6401a2ff1e3d198fa902e988a'
...
* commit 'b14e89b3c5e6d7f6401a2ff1e3d198fa902e988a':
Prepare for 9 Release.
Update release notes for the 9 release.
avprobe: also output dar/par if only defined in stream
Conflicts:
RELEASE
avprobe.c
doc/RELEASE_NOTES
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-05 13:27:59 +01:00
Matthieu Bouron
be0a67bd65
lavfi/drawutils: fix blending computation in blend_line function
...
If width is not alligned with hsub, background component should only be
multiplied once by sub alpha component.
2013-01-05 13:08:02 +01:00
Michael Niedermayer
f27eb1b702
lavu: check that assert level is defined
...
fix warning
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-05 12:21:39 +01:00
Paul B Mahol
14d50c19dc
w64dec: support metadata (summarylist guid)
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2013-01-05 11:03:52 +00:00
Paul B Mahol
d4211c4722
alsdec: change channel sorting so it match reference implementation
...
Read channel source instead of channel target for channel sorting.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2013-01-05 09:36:14 +00:00
Stefano Sabatini
0140566359
lavfi: add histeq filter
...
This is a port of virtual dub's histogram equalization filter by Donald
A. Graft. Based on the work by Jérémy Tran <tran.jeremy.av@gmail.com >,
done for SOCIS 2012.
2013-01-05 10:25:32 +01:00
Stefano Sabatini
172505b8bc
lavfi: add kerndeint filter
...
This is a port of the kerndeint filter (libmpcodecs/vf_kerndeint) by
Donal A. Graft (original avisynth plugin author), and is based on the
work by Jérémy Tran <tran.jeremy.av@gmail.com > done for SOCIS 2012.
2013-01-05 10:25:32 +01:00
Stefano Sabatini
92f1bed14c
tests/lavfi-regression: always require three parameters in do_lavfi_pixfmts()
...
Force commands to specify the name of the test to run. This simplifies
extending the function with a new parameter, which will be done in a
following patch.
2013-01-05 10:25:32 +01:00
Carl Eugen Hoyos
c52e07bb6e
Fix AVCI50 SPS to specify a SAR of 4:3 instead of 3:4.
2013-01-05 09:20:03 +01:00
Matthieu Bouron
bbab9cceb9
lavfi/drawutils: fix typo
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-05 05:21:44 +01:00
Xi Wang
f73f76fd20
swscale: fix NULL checking in sws_alloc_context()
...
sws_getCachedContext() and sws_getContext() expect sws_alloc_context()
to return NULL when out of memory, as follows.
if (!(context = sws_alloc_context()))
return NULL;
This patch fixes sws_alloc_context() to return NULL in that case.
Signed-off-by: Xi Wang <xi.wang@gmail.com >
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2013-01-04 20:44:00 -05:00
Xi Wang
3b81bba3bc
mxfdec: fix NULL checking in mxf_get_sorted_table_segments()
...
The following out-of-memory check is broken.
*sorted_segments = av_mallocz(...);
if (!sorted_segments) { ... }
The correct NULL check should use *sorted_segments.
Signed-off-by: Xi Wang <xi.wang@gmail.com >
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2013-01-04 20:43:42 -05:00
Reinhard Tartler
3f89b49b07
finalize changelog for version 9
2013-01-05 00:20:33 +01:00
Michael Niedermayer
498e1c6bb9
lavu: check av_clip*() limits
...
This code cannot use av_assert* due to circular header dependancies
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-04 22:19:31 +01:00
Paul B Mahol
ddeb299234
lavc: remove img_get_alpha_info as it not available any more
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2013-01-04 20:13:03 +00:00
Michael Niedermayer
fa11f36876
mpegpsenc: avoid shifting dts/pts
...
Only shift if needed to avoid negative scr when requested
or for dvd.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-04 20:58:59 +01:00
Michael Niedermayer
cf369d4449
mpegpsenc: show first SCR/DTS at debug level
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-04 20:58:59 +01:00
Michael Niedermayer
9fd0cf8a3b
mpegpsenc: move preload recalculation to where its needed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-04 20:58:59 +01:00
Michael Niedermayer
2a23f6035e
mpegpsenc: Fix SCR handling for DVD
...
This makes the initial SCR equal 0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-04 20:58:59 +01:00
Michael Niedermayer
84aba8eed9
mpegpsenc: restructure SCR handling
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-04 20:58:59 +01:00
Justin Ruggles
f2214c6224
au: use ff_raw_write_packet()
2013-01-04 19:52:57 +00:00
Paul B Mahol
d885cc41e5
Fix "knwon" typo and add a check in tools/patcheck
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2013-01-04 19:24:37 +00:00
Maximilian Seesslen
467c033858
fixed granularity of video quality when encoding with theora codec
...
The floating point version of av_clip has to be used when converting the quality level.
Signed-off-by: Maximilian Seesslen <mes@seesslen.net >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-04 18:46:24 +01:00
Anton Khirnov
b14e89b3c5
Prepare for 9 Release.
2013-01-04 17:53:47 +01:00
Anton Khirnov
a5d8c9243a
Update release notes for the 9 release.
...
Add a paragraph about MSVC and mention 24-bit FLAC encoding.
2013-01-04 17:50:34 +01:00
Michael Niedermayer
c98d3056cf
msrle: fix small palette handling
...
Fixes second file in Ticket1273
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-04 17:06:29 +01:00
Alexander Strasser
ac25b31ede
lswr: Improve default resampler's default parameters
...
After making some blind tests on a small collection of music
samples for home usage. It turned out that the default cutoff
was too low.
The impact of filter_size was not clearly distinguishable (the
results were on the edge) with the music samples but turned out
to be clearly audible in some synthetic samples.
Thanks to Daniel for helping out with the listening tests.
Signed-off-by: Alexander Strasser <eclipse7@gmx.net >
2013-01-04 16:47:57 +01:00
Michael Niedermayer
a08194b4c5
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavr: fix missing " in header documentation
aviobuf: Discard old buffered, previously read data in ffio_read_partial
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-04 13:29:15 +01:00
Michael Niedermayer
8d0b2aae71
Merge commit 'e96406eda4f143f101bd44372f7b2d542183000a'
...
* commit 'e96406eda4f143f101bd44372f7b2d542183000a':
rtsp: Add support for depacketizing RTP data via custom IO
Conflicts:
libavformat/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-04 13:23:19 +01:00
Michael Niedermayer
ea96feddb7
Merge commit '3f95f0dda55fca74b646937095a02a8fa9776622'
...
* commit '3f95f0dda55fca74b646937095a02a8fa9776622':
rtpdec: Move the URLContext used for RTCP RR out from the context, to a parameter
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-04 13:13:30 +01:00
Michael Niedermayer
e1cf1a9c89
Merge commit 'a0b7e289075dccf223b7f407790d8a86fc5d77e8'
...
* commit 'a0b7e289075dccf223b7f407790d8a86fc5d77e8':
aviobuf: Partial support for reading in read/write contexts
build: Avoid detecting bogus components named 'x'
Conflicts:
libavcodec/allcodecs.c
libavdevice/alldevices.c
libavformat/allformats.c
libavformat/aviobuf.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-04 13:01:54 +01:00
Michael Niedermayer
d0b450457b
matroskadec: fix ffio_init_context() usage
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-04 13:01:30 +01:00
Anton Khirnov
dda20a6e2c
avprobe: also output dar/par if only defined in stream
...
Based on a patch by Jan Gerber <j@v2v.cc >
2013-01-04 12:55:58 +01:00
Stefano Sabatini
cb8d3965fd
lavfi/yadif: add support to named constants
2013-01-04 11:48:54 +01:00
Stefano Sabatini
f7dc6aa6b1
lavfi/yadif: add support to named options and options introspection
...
Also rename the "enable_auto" field to "deint", to match the name of the
option.
2013-01-04 11:48:54 +01:00
Stefano Sabatini
8674597fe5
lavfi/yadif: remove redundant NULL checks in uninit
2013-01-04 11:48:53 +01:00
Stefano Sabatini
4ea7c17932
lavfi/yadif: fail during the configuration stage in case of invalid video size
...
This is better than repeatedly failing during the filtering stage.
2013-01-04 11:48:53 +01:00
Stefano Sabatini
b52c1d0c99
lavfi/yadif: remove unused poll_frame callback
2013-01-04 11:48:53 +01:00
Carl Eugen Hoyos
155cdc1d05
Add a comment about an intentional misspelling to the id3v1 tags.
2013-01-04 10:32:39 +01:00
Carl Eugen Hoyos
2284448775
Revert "Fix id3v1 tag spelling."
...
The misspelling is used in the specification.
This reverts commit 95016fd1c8 .
2013-01-04 10:29:31 +01:00
Benjamin Kerensa
95016fd1c8
Fix id3v1 tag spelling.
2013-01-04 10:11:29 +01:00
Peter Meerwald
be6cde3ce8
lavr: fix missing " in header documentation
...
Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com >
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-01-04 10:29:55 +02:00
Michael Niedermayer
b888cea9cb
ac3dec: split out pointer update loop for saftey
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-04 06:20:39 +01:00
Michael Niedermayer
4e0738cec9
mpegaudiodec/mp3on4: fix buffer size.
...
The larger (and really ugly) size is not needed anymore.
Found-by: Justin Ruggles
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-04 06:20:19 +01:00
Michael Niedermayer
7b5fdd04de
locodec: flip RGBA
...
Fixes Ticket1222
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-04 04:49:16 +01:00
Michael Niedermayer
9e36d9e4ed
pngdec: fix decoding of right column for 2/4bpp
...
Fixes Ticket1146
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-03 23:40:22 +01:00
Reimar Döffinger
c5142a95a5
Support more AVC-Intra files
...
Followup to http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/151321
patch by Reimar and Thomas Mundt fixes some AVC-Intra files from
different tickets.
It does not fix http://samples.ffmpeg.org/ffmpeg-
bugs/trac/ticket524/AVCI50.mov
Authors of this commit are: Reimar and Thomas Mundt
Patch and commit message mostly taken from ffmpeg-devel, mail by Carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-03 21:48:38 +01:00
Reimar Döffinger
def01739c1
mxfdec: Set AV_FIELD_PROGRESSIVE, needed for AVC-intra
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-03 21:44:33 +01:00
Paul B Mahol
28d75441ec
fate: update seek-lavf-aiff after previous commit
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2013-01-03 20:03:43 +00:00
Paul B Mahol
48340bbb36
aiffenc: metadata support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2013-01-03 19:35:02 +00:00
Paul B Mahol
0c8943939e
gifdec: use log level that have more common sense
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2013-01-03 19:33:57 +00:00
Michael Niedermayer
bbb11f383e
lavf: add return to silence compiler warning
...
The added statement is not reachable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-03 20:02:14 +01:00
Nicolas George
be01d1a24d
fate: disable globbing when calling shell functions.
...
Some of the filters tests use globbing characters, especially
brackets for filter pad labels. While most of these strings
are way too complicated to ever match an existing file name
and are therefore kept unchanged in the command line (an old
misfeature of the shell language that happens to be convenient
here), at least one use is simple enough to match random files
lying in the current directory. If that happens, the string,
that was meant to be kept verbatim, is replaced by the file
name, and that causes the test to fail (or worse).
2013-01-03 16:16:07 +01:00
Martin Storsjö
53c25ee073
aviobuf: Discard old buffered, previously read data in ffio_read_partial
...
This makes RTP custom IO work properly with pure read-only
AVIOContexts as well.
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-01-03 15:17:10 +02:00
Martin Storsjö
e96406eda4
rtsp: Add support for depacketizing RTP data via custom IO
...
To use this, set sdpflags=custom_io to the sdp demuxer. During
the avformat_open_input call, the SDP is read from the AVFormatContext
AVIOContext (ctx->pb) - after the avformat_open_input call,
during the av_read_frame() calls, the same ctx->pb is used for reading
packets (and sending back RTCP RR packets).
Normally, one would use this with a read-only AVIOContext for the
SDP during the avformat_open_input call, then close that one and
replace it with a read-write one for the packets after the
avformat_open_input call has returned.
This allows using the RTP depacketizers as "pure" demuxers, without
having them tied to the libavformat network IO.
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-01-03 15:15:27 +02:00
Martin Storsjö
3f95f0dda5
rtpdec: Move the URLContext used for RTCP RR out from the context, to a parameter
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-01-03 15:14:34 +02:00
Martin Storsjö
a0b7e28907
aviobuf: Partial support for reading in read/write contexts
...
So far, aviocontexts are used either in pure-read or pure-write
mode - full read/write mode doesn't work well (and implementing it
is a much larger, not totally trivial change).
This patch allows using avio_read and ffio_read_partial on
read/write aviocontexts, where the read operations are passed
through directly unbuffered, while writes are buffered as usual.
This is enough to support the operations needed by packet based
data transfer like in udp/rtp, where aviocontext is the only
public API for hooking up custom IO.
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-01-03 15:14:09 +02:00
Clément Bœsch
3048fae63c
build: Avoid detecting bogus components named 'x'
...
The function find_things() in configure is confused by component
registration calls as part of multiline macros defining combined
component registration. Coalesce those macros into one line to
work around the issue.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-01-03 15:11:25 +02:00
Michael Niedermayer
1894302a44
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
cmdutils: update copyright year to 2013
h264: check SPS entries directly to detect pixel format changes
forgotten changelogs for 9_beta2
Conflicts:
Changelog
cmdutils.c
libavcodec/h264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-03 13:22:45 +01:00
Johan Andersson
7768a635c4
cmdutils: update copyright year to 2013
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-01-03 13:35:12 +02:00
Janne Grunau
9ac44ad9d0
h264: check SPS entries directly to detect pixel format changes
...
Comparing AVCodecContext.pix_fmt against the get_pixel_format() return
value has the side effect of calling the get_format() callback on each
slice. Users of the callback will probably handle hardware accelerator
initialization in the callback.
2013-01-03 11:09:00 +01:00
Clément Bœsch
dc8b36746a
lavf/webvtt: use ff_subtitles_read_chunk().
...
The FATE test is updated because the line breaks in the dialogue
rectangles are now proper CRLF.
2013-01-03 07:46:30 +01:00
Clément Bœsch
3fa642d60f
subviewer: sanitize packets.
...
The data does not contain timing or trailing line breaks anymore. In
addition to being less idiotic, it is consistent with other codecs and
thus allows more switches between formats and codecs. It also fixes the
issue of the trailing line returns being simple \n instead of CRLF in
the ASS rectangle dialogue (this is the reason of the FATE update).
2013-01-03 07:25:47 +01:00
Reinhard Tartler
60e60d99ad
forgotten changelogs for 9_beta2
2013-01-03 07:09:41 +01:00
Michael Niedermayer
52334f5be2
tiff: print error for old style LZW
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-03 04:26:57 +01:00
Clément Bœsch
491ca0e89f
Replace references to "que" with the appropriate word.
...
"que" sounds like a slang word to me. This commit renames a few
variables, fix the comments and the logging messages (sometimes along
with small other typo fixes).
2013-01-03 00:21:47 +01:00
Clément Bœsch
43adc62e70
lavf/mpegtsenc: fix missing word in error message.
2013-01-03 00:04:41 +01:00
Clément Bœsch
f263426eed
lavu/math: fix than/then typo, and add a comma.
2013-01-03 00:02:51 +01:00
Michael Niedermayer
98db905896
avformat_seek_file: Dont attempt to rescale INT64_MIN/MAX
...
This fixes a integer overflow in fate
Reviewed-by: Clément Bœsch <ubitux@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-03 00:02:22 +01:00
Michael Niedermayer
740e740895
av_rescale: support passing MIN/MAX through
...
Reviewed-by: Clément Bœsch <ubitux@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-03 00:02:22 +01:00
Lou Logan
091ce6bcb2
doc/faq: add -start_number example
...
Also add example showing cat piping images to ffmpeg.
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2013-01-02 23:52:35 +01:00
Stefano Sabatini
69d75dc4dd
lavu/base64: extend/clarify doxy for the base64 API
...
Also improve overall consistency.
2013-01-02 23:52:35 +01:00
Clément Bœsch
49a78e6b8c
lavu/eval: handle div by zero in mod().
...
Similarly to 03f5043f5 , we use the FTRAPV config setting.
2013-01-02 23:15:45 +01:00
Michael Niedermayer
aa86d2d884
lavf: move stream==-1 handling from ff_subtitles_queue_seek() to avformat_seek_file()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-02 23:02:33 +01:00
Clément Bœsch
fc86f86353
fate/sub2video: move sws flags globally in the filtergraph.
...
The flags are necessary for the auto inserted scaler (because the
overlay filter needs an alpha channel for the overlay surface).
2013-01-02 21:48:56 +01:00
Michael Niedermayer
ccb7f20309
fate: add missing bitexact flag to scale filter
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-02 20:15:10 +01:00
Nicolas George
b252d9e777
fate: add sub2video test.
2013-01-02 17:53:12 +01:00
Nicolas George
e4f14c32b9
examples/muxing: improve error messages.
...
Illustrate the use of return values, av_err2str and
avcodec_get_name.
2013-01-02 17:42:00 +01:00
Nicolas George
b99bef17b4
lavfi/avfiltergraph: check pick_format return code.
2013-01-02 16:56:03 +01:00
Stefano Sabatini
82deb0c42e
doc/muxers: adopt new -codec:SPEC syntax in segment example
2013-01-02 16:30:11 +01:00
Stefano Sabatini
8bbe9d90fa
doc/muxers: add a dedicated section for segment examples
2013-01-02 16:29:58 +01:00
Stefano Sabatini
fd44dfb29d
doc/muxers: fix typos in the segment chapter
2013-01-02 16:29:42 +01:00
Clément Bœsch
8bc74221f8
lavf: remove generic index flag from text subtitles.
...
This flag is not necessary.
2013-01-02 10:32:21 +01:00
Clément Bœsch
5a2f3f0bca
lavf/vobsub: do not count trailing NUL char in extradata.
...
See 36e61e24 .
2013-01-02 09:31:07 +01:00
Michael Niedermayer
1e28fa21de
rawdec: fix NV12
...
Fixes Ticket646
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-02 03:56:57 +01:00
Janne Grunau
e9fd51b0d6
h264: check SPS entries directly to detect pixel format changes
...
Comparing AVCodecContext.pix_fmt against the get_pixel_format() return
value has the side effect of calling the get_format() callback on each
slice. Users of the callback will probably handle hardware accelerator
initialization in the callback.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-02 02:28:57 +01:00
Michael Niedermayer
341e40f1e1
lavf: Fix codec id forcing with probed codecs
...
Fixes Ticket2088
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-02 01:17:36 +01:00
Michael Niedermayer
3a6b6f425e
lavf: move force_codec_ids() up
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-02 01:17:36 +01:00
Nicolas George
98ce9b8468
fate: merge mapchan and options into ffmpeg.
...
They were two very short files that cover ffmpeg-specific features.
2013-01-01 23:48:41 +01:00
Nicolas George
102cf964dd
ffmpeg: sub2video: set resample size.
...
Necessary after 04a530f .
2013-01-01 23:06:34 +01:00
Nicolas George
5ed5e90f2a
lavc/dvdsubenc: improve color distance function.
...
Consider the color space as an hypercone with apex alpha=0
and base alpha=1 instead of an hypercube.
Make the encoder consider very transparent colors more similar
even if the hue is very different.
This corresponds roughly to using the alpha as a weight for the
color difference.
Only 4 bits of alpha are used, because this is what dvdsub uses,
and it avoids overflows.
Fix trac ticket #2005 .
2013-01-01 20:07:37 +01:00
Nicolas George
8dbbaf568e
lavf/matroskaenc: respect bitexact for attachments.
...
Use the first 64 bits of the SHA1 of the content as file UID
instead of a random number if the bitexact flag is set.
2013-01-01 19:43:21 +01:00
Nicolas George
5bab99baea
ffmpeg: apply flags to attachments too.
2013-01-01 19:43:21 +01:00
Nicolas George
951a03b3a8
ffmpeg: move stream_copy flags handling after attachments.
2013-01-01 19:43:20 +01:00
rogerdpack
10a9277562
better filter error message when accidentally reusing outputs
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-01 19:39:10 +01:00
Nicolas George
ecda1d3cbe
lavf: add data: URI scheme.
2013-01-01 19:29:04 +01:00
Paul B Mahol
ba1cbf40ce
lavfi/lut: use ff_fill_rgba_map()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2013-01-01 17:07:57 +00:00
Piotr Bandurski
fde13052fb
aiffdec: set block duration for QDM2
...
Fixes #1697 .
2013-01-01 17:03:22 +00:00
Clément Bœsch
7d66bc7920
lavc/movtextdec: keep the min size instead of max to fix overread.
...
Fixes Ticket #2087 .
2013-01-01 16:41:37 +01:00
Clément Bœsch
1dd4a21cb7
fate: re-enable fate-sub-mpsub.
...
This reverts commit 580ee973d1 .
2013-01-01 16:34:00 +01:00
Clément Bœsch
c14f8a52b0
lavf/mov: fix timecode track reference usage.
2013-01-01 16:20:10 +01:00
Clément Bœsch
8d398f40b4
lavf/mov: simplify timecode track ref.
...
There can be only one track reference. The multiple tref handling is
handled at a different level.
2013-01-01 16:20:10 +01:00
Nicolas George
69a1667b06
ffmpeg: mark attachment streams finished.
...
Fix trac ticket #2083 .
2013-01-01 16:05:35 +01:00
Michael Niedermayer
9b53306178
cmdutils: we have 2013
...
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-01 15:43:37 +01:00
Nicolas George
82541d8330
lavfi: merge all filtering code into ff_filter_frame.
2013-01-01 15:19:04 +01:00
Hendrik Leppkes
765158dd82
mov: fix parsing of the chap atom.
...
This was broken in 0d96ec19eb under the
assumption that there is only one tref leaf atom.
Fixes Ticket #2081 .
2013-01-01 15:16:37 +01:00
Paul B Mahol
8c33cb5c77
fate: add nistsphere demuxer test
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2013-01-01 14:02:54 +00:00
Michael Niedermayer
9336a980bb
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
rtmp: Add support for limelight authentication
rtmp: Add support for adobe authentication
Conflicts:
Changelog
libavformat/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-01 14:04:50 +01:00
Paul B Mahol
8e4e532bb2
lavfi/avcodec: fix typo
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2013-01-01 12:57:07 +00:00
Michael Niedermayer
c047a41bc5
Merge commit '33f28a3be3092f642778253d9529dd66fe2a014a'
...
* commit '33f28a3be3092f642778253d9529dd66fe2a014a':
rtmp: Add a function for writing AMF strings based on two substrings
rtmp: Return a proper error code in handle_invoke_error
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-01 13:54:22 +01:00
Clément Bœsch
d079d1d368
ffprobe: do not escape '"' between single quotes.
2013-01-01 13:32:51 +01:00
Clément Bœsch
c1abfcd7d6
doc/resampler: remove .html from link text.
2013-01-01 10:59:51 +01:00
Michael Niedermayer
13131685f1
ffmpeg: avoid negative timestamps for DVD
...
dvdauthor cannot handle files with ts wraps
Fixes ticket383
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-01 04:59:03 +01:00
Nicolas George
2eb2e1798e
lavfi: add avfilter_get_audio_buffer_ref_from_arrays_channels.
...
It is the same as avfilter_get_audio_buffer_ref_from_arrays
except it has a "channels" and the channel layout can be 0.
2013-01-01 02:01:28 +01:00
Michael Niedermayer
f105fe5c22
rawdec: fix decoding of odd dimensioned raw yv12
...
Fix Ticket339 part 2 of 2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-01 00:44:44 +01:00
Carl Eugen Hoyos
67abe21c0b
mov: fix handling of odd sized yv12
...
Part 1 of 2 to fix Ticket339
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-01-01 00:44:44 +01:00
Michael Niedermayer
6e8df250fd
mpeg12: fix frame_pred_frame_dct handling in field pictures
...
Fixes Ticket254
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-31 20:55:03 +01:00
Michael Niedermayer
49ec0d8ed2
mpeg12: print invalid cbp value
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-31 20:55:02 +01:00
Michael Niedermayer
343900a147
mpeg12: print error for invalid skip cases
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-31 20:55:02 +01:00
Nicolas George
9e28e0035a
lavc/flacenc: improve error return.
...
Use meaningful error codes and add log messages.
2012-12-31 19:11:12 +01:00
Nicolas George
11ab2c25b6
lavfi/avfiltergraph: print query_formats errors.
2012-12-31 18:43:04 +01:00
Nicolas George
5f12d5ad78
lswr: improve rematrixing error message.
...
Report channel layout/count for insufficiently determined
rematrixing.
2012-12-31 18:43:04 +01:00
Michael Niedermayer
08196c785a
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
configure: suppress -fPIC in msvc builds
Drop unnecessary 'l' length modifier when printfing double values.
truemotion2: Sanitize tm2_read_header()
Conflicts:
libavcodec/truemotion2.c
libavfilter/src_movie.c
libavutil/opt.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-31 14:20:01 +01:00
Michael Niedermayer
98275283d5
Merge commit '5e6ee38bd3cef0dd05f1dd7977c71f3479eb6d01'
...
* commit '5e6ee38bd3cef0dd05f1dd7977c71f3479eb6d01':
FATE: add cavs test
cavsdec: export picture type in the output frame
Conflicts:
tests/fate/video.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-31 13:53:21 +01:00
Michael Niedermayer
ca95d1b32d
Merge commit '7d8482640058d66867602a6f58446c9342d9d146'
...
* commit '7d8482640058d66867602a6f58446c9342d9d146':
cavs: deMpegEncContextize
Note, the bugfixes have all been in FFmpeg previously, this just switches away
from MpegEncContext
Conflicts:
libavcodec/cavs.c
libavcodec/cavsdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-31 13:38:01 +01:00
Michael Niedermayer
6ddda83c3f
Merge commit '64bb3fa6b7f5b2db22b7577585d5861be24eebd8'
...
* commit '64bb3fa6b7f5b2db22b7577585d5861be24eebd8':
cavs: cosmetics, reformat top part
cavsdec: cosmetics, reformat
libavcodec/utils: Add braces to shut up gcc warnings
Conflicts:
libavcodec/cavsdec.c
libavcodec/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-31 13:14:06 +01:00
Clément Bœsch
87350d6b44
lavc/textdec: fix subviewer1 preproc check.
2012-12-31 13:06:29 +01:00
Martin Storsjö
c1ea44c54d
rtmp: Add support for limelight authentication
...
Limelight is a not too uncommon CDN. The authentication scheme is
pretty similar to the adobe authentication, but is even closer to
normal http digest authentication (but not close enough to warrant
sharing code) than the adobe version.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-31 13:39:09 +02:00
Martin Storsjö
08225d0126
rtmp: Add support for adobe authentication
...
This is mostly used to authenticate the client when publishing.
Tested with wowza and akamai.
Some but not all servers support resending a new connect invoke
within the same connection, so always reconnect for sending a new
connection attempt. This matches what other applications do as well.
The authentication scheme is structurally pretty similar to http
digest authentication, but uses base64 instead of hex strings.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-31 13:39:08 +02:00
Martin Storsjö
33f28a3be3
rtmp: Add a function for writing AMF strings based on two substrings
...
This avoids having to concatenate them into one buffer before writing
them as AMF.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-31 13:39:07 +02:00
Martin Storsjö
c76daa89ab
rtmp: Return a proper error code in handle_invoke_error
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-31 13:39:06 +02:00
Hendrik Leppkes
506409776c
configure: suppress -fPIC in msvc builds
...
MSVC doesn't understand the option, and emits a warning on every
call to cl.exe.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-31 12:34:30 +02:00
Diego Biurrun
bcb8d9eb8f
Drop unnecessary 'l' length modifier when printfing double values.
...
%f denotes a double argument and 'l' does nothing in this case
according to the C spec.
2012-12-31 11:20:45 +01:00
Diego Biurrun
117f79de2d
truemotion2: Sanitize tm2_read_header()
...
Also give a variable a more sensible name.
2012-12-31 11:20:45 +01:00
Clément Bœsch
72ff8ee158
lavc: correctly set AVSubtitle format for text based subtitles.
2012-12-31 10:08:27 +01:00
Clément Bœsch
e3c25860dc
lavc/utils: reindent in avcodec_decode_subtitle2().
2012-12-31 10:06:32 +01:00
Paul B Mahol
9a74282644
Sony Wave64 muxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-31 07:10:57 +00:00
Clément Bœsch
fe5a2fc46c
Changelog: remove av_{base,dir}_name addition.
...
This belongs only to APIChanges, where it is already present.
Spotted-by: Stefano
2012-12-31 02:33:24 +01:00
Clément Bœsch
8d06e83d16
lavfi/Makefile: add missing dependencies to FFLIBS.
2012-12-31 01:40:34 +01:00
Clément Bœsch
21b6991cd5
lavfi/Makefile: make FFLIBS list consistent.
2012-12-31 01:38:31 +01:00
Clément Bœsch
1f265f5205
microdvd: sanitize AVPackets.
...
Current MicroDVD AVPackets contain timing information and trailing line
breaks. The data is now only composed of the markup data. Doing this
consistently between text subtitles decoders allows to use different
codec for various formats. For instance, MicroDVD markup is sometimes
found in some VPlayer files. Also, generally speaking, the subtitles
text decoders have no use of these timings (and they must not use them
since it would break any user timing adjustment).
Technically, this is a major ABI break. In practice, a mismatching
lavf/lavc will now error out for MicroDVD decoding. Supporting both
formats requires unnecessary complex and fragile code.
FATE needs update because line breaks in the ASS file were "\n" (because
that's what is used in the original file). ASS format expect "\r\n" line
breaks; this commit fixes this issue. Also note that this "\r\n"
trailing need to be moved at some point from the decoders to the ASS
muxer.
2012-12-31 00:41:35 +01:00
Clément Bœsch
faa94061dd
Add SubViewer v1 subtitles demuxer and decoder.
2012-12-31 00:01:58 +01:00
Clément Bœsch
7b43402724
Add PJS subtitles demuxer and decoder.
2012-12-30 23:55:28 +01:00
Clément Bœsch
580ee973d1
FATE: disable fate-sub-mpsub temporarly.
...
Sample has been forgotten, revert this commit in a day or two, when
sample is available everywhere.
2012-12-30 23:42:52 +01:00
Clément Bœsch
a1e4e352a6
Add AQTitle subtitles demuxer.
2012-12-30 23:37:14 +01:00
Clément Bœsch
949506191a
lavf/subtitles: fix CLRF/CRLF typo.
2012-12-30 23:14:34 +01:00
Clément Bœsch
725d6c615c
Add MPlayer subtitles demuxer.
2012-12-30 23:09:49 +01:00
Clément Bœsch
d9ac8d2967
lavf: move srtdec:read_chunk() to subtitles utils.
...
This function can be useful for various other subtitles formats.
2012-12-30 22:58:58 +01:00
Clément Bœsch
67286fa98b
10l: export ff_bprint_to_extradata between libs using avpriv_ prefix.
...
Both libavformat and libavcodec requires this function.
2012-12-30 22:54:56 +01:00
Clément Bœsch
5c68aae908
Add VPlayer subtitles demuxer and decoder.
...
Note that the linebreaks text codec option (but not the feature) has
been removed; its main goal was to allow demuxers to configure the text
decoder (and not meant to be used by users), but the AVOption are not a
viable solution. This is solved differently in this commit.
2012-12-30 22:46:42 +01:00
Clément Bœsch
5f02844c8d
Add MPL2 subtitles demuxer and decoder.
2012-12-30 22:37:25 +01:00
Clément Bœsch
2d3305e4f4
lavc/avcodec: fix FF_INPUT_/BUFFER_/PADDING_SIZE typo.
2012-12-30 22:22:18 +01:00
Clément Bœsch
9db5f82032
ffserver: add missing padding to extradata.
2012-12-30 22:22:18 +01:00
Clément Bœsch
36e61e24e7
lavc: add ff_bprint_to_extradata() helper and use it.
...
This commit also makes sure the extradata and subtitle_header are NUL
terminated, without taking into account the trailing '\0' in account in
the size.
At the same time, it should fix 'warning: dereferencing type-punned
pointer will break strict-aliasing rules' warning for compilers who
don't consider uint8_t** and char** compatibles.
2012-12-30 22:19:04 +01:00
Clément Bœsch
e911f4ae72
lavc/srtenc: just like the decoder, mark SRT encoder as deprecated.
2012-12-30 21:39:36 +01:00
Clément Bœsch
1b673cd9ff
lavc/srtenc: do not add trailing line breaks with SubRip.
...
The SRT muxer is reponsible for separating events with two line breaks,
there is no need to add more than necessary. Similarly, other muxers
(such as Matroska) are not supposed to add line breaks at the end of the
payload.
2012-12-30 21:39:36 +01:00
Clément Bœsch
3af3a3006f
lavf/srtdec: remove line break hack.
...
This is not necessary anymore since the last commit.
2012-12-30 21:39:35 +01:00
Clément Bœsch
d927d8395d
lavc/srtdec: make some sscanf to work at the end of a line.
...
Fix sscanf calls that can't work at the end of a line unless it ends
with \r\n or \n: the markup line may/should/must not end with these
characters.
2012-12-30 21:39:35 +01:00
Anton Khirnov
5e6ee38bd3
FATE: add cavs test
2012-12-30 18:52:51 +01:00
Anton Khirnov
fb0cb11f09
cavsdec: export picture type in the output frame
2012-12-30 18:52:26 +01:00
Anton Khirnov
7d84826400
cavs: deMpegEncContextize
...
It does not use any of the mpegvideo infrastructure, just a few fields
from the context.
Fixes a segfault with the emu edge flag, since emu edge buffer is now
allocated as a part of the frame buffer allocation and cavs calls
ff_get_buffer() directly, it does not use mpegvideo buffer management.
Fixes a memleak of the last frame.
2012-12-30 18:48:11 +01:00
Anton Khirnov
64bb3fa6b7
cavs: cosmetics, reformat top part
2012-12-30 18:47:54 +01:00
Anton Khirnov
185c2ef849
cavsdec: cosmetics, reformat
2012-12-30 18:47:30 +01:00
Nicolas George
c36302a7a4
lavfi/sink_buffer: switch to filter_frame.
2012-12-30 18:29:57 +01:00
Nicolas George
a978c04e22
lavfi/video: ensure that filter_frame is called.
...
This is a temporary workaround until all filters have been
upgraded to filter_frame and the framework can forget completely
about start_frame/draw_slice/end_frame.
2012-12-30 18:29:57 +01:00
Don Moir
522cb6abf2
gifdec: use transparent instead of background color index
...
Wrong code was commited in 64f4fb75c4 .
2012-12-30 17:21:25 +00:00
Michael Niedermayer
b84871b8eb
vf_tinterlace: dont mix declarations and expressions
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-30 16:59:52 +01:00
Michael Niedermayer
c0c0b19644
lavfi: remove some draw_slice related code that has become unneeded
...
Reviewed-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-30 16:58:50 +01:00
Mark Himsley
8997a0fa79
lavfi/tinterlace: add low-pass-filter for top/bottom interleave modes
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2012-12-30 15:19:23 +01:00
Stefano Sabatini
9e3b6285cb
doc/filters: drop duplicated description of resampler options in aresample docs
...
Avoid duplication, and point to the complete description of options.
Also provide a more complete specification of the supported syntax.
2012-12-30 15:04:58 +01:00
Michael Niedermayer
cbed2426a0
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
snow: use VideoDSPContext
Conflicts:
libavcodec/snow.c
Nothing merged here, this has already been fixed in ffmpeg long ago
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-30 14:51:06 +01:00
Michael Niedermayer
384dd9804d
Merge commit '30a76487304e7250294c9c0e9fa179bf07fd822a'
...
* commit '30a76487304e7250294c9c0e9fa179bf07fd822a':
hlsenc: make segment number unsigned
hlsenc: make EXT-X-MEDIA-SEQUENCE always increase
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-30 14:21:55 +01:00
Michael Niedermayer
56c71cd599
Merge commit '9b1370aced385698bc783747917544ab69ecb373'
...
* commit '9b1370aced385698bc783747917544ab69ecb373':
hlsenc: do not add timestamps in different timebases
hlsenc: use the correct AV_TIME_BASE macro
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-30 14:11:17 +01:00
Michael Niedermayer
19e1c8e4f2
Merge commit '0448f26c97c5ab4858d31e456a4f1738ae783242'
...
* commit '0448f26c97c5ab4858d31e456a4f1738ae783242':
hlsenc: keep the playlist to the correct number of items
hlsenc: use the segment filename in the playlist entry
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-30 14:02:19 +01:00
Michael Niedermayer
2ce43b37fc
Merge commit '6dd93ee6f1b050ad7c4b247899e83efa293ee405'
...
* commit '6dd93ee6f1b050ad7c4b247899e83efa293ee405':
hlsenc: check append_entry return value
hlsenc: use the basename to generate the list entries
avstring: add av_basename and av_dirname
Conflicts:
Changelog
doc/APIchanges
libavutil/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-30 13:54:50 +01:00
Clément Bœsch
613001d75f
Merge back some registering macros in all*.c.
...
This breaks the sed in configure:find_things(). Fixes regression from
c73c87b . Fixes Ticket2079.
Found-by: jamal
2012-12-30 07:18:21 +01:00
Clément Bœsch
c83002a4f8
lavc/ass_split: check for NULL pointer in ff_ass_split_override_codes().
...
This is consistent with the other ff_ass_split_* functions.
It also fixes a crash when trying to split a dialog with text=NULL
(which seems to happen when the text of the dialog is empty); basically,
this commit fixes crashes when trying to encode an empty text subtitle
dialog (see subrip and mov_text encoders).
Fixes Ticket2048.
2012-12-30 06:57:34 +01:00
Michael Niedermayer
b113d4a83c
aacdec: make dual mono mode selectable through AVOptions too.
...
Based on patch by Akihiro Tsukada
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-30 05:29:17 +01:00
Michael Niedermayer
644f021ccf
aacdec: simplify dmono
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-30 05:29:17 +01:00
Michael Niedermayer
6d38661920
aacdec: fix dual mono
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-30 05:29:17 +01:00
Clément Bœsch
518239cd61
build: postproc cleanup.
...
This reverts 79f80f5c , moves postproc along with the other libraries,
and fix the postproc dependency to libavutil.
2012-12-30 02:27:52 +01:00
Diego Biurrun
015da965a6
libavcodec/utils: Add braces to shut up gcc warnings
...
libavcodec/utils.c:1050:5: warning: missing braces around initializer [-Wmissing-braces]
libavcodec/utils.c:1314:5: warning: missing braces around initializer [-Wmissing-braces]
2012-12-30 01:52:04 +01:00
Michael Niedermayer
c77eb4ee90
sws: fix warning: cast from pointer to integer of different size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-29 20:50:43 +01:00
Michael Niedermayer
3cd137bfea
vf_deshake: fix strict aliassing errors
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-29 20:00:48 +01:00
Michael Niedermayer
aa9507cc3d
swscale: fix warning: assignment from incompatible pointer type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-29 19:39:42 +01:00
Michael Niedermayer
05d81a57f5
motion_est_template: fix warning: "ASSERT_LEVEL" is not defined
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-29 19:37:20 +01:00
Michael Niedermayer
4f1d7cc0ed
bktr: fix warning: missing braces around initializer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-29 19:27:07 +01:00
Dave Yeo
925c9f444f
Fix OS/2 threading
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-29 18:56:33 +01:00
Michael Niedermayer
53228f47d6
avf_concat: init pointers to NULL for saftey and to avoid warning of uninitialized use.
...
Reviewed-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-29 18:56:33 +01:00
James Almer
d59d39e164
wavdec: fix duration calculation for files with invalid data size
...
Some wav files report a data size that is bigger than the actual file size.
Fall back to estimation from bitrate in such cases.
Fixes ticket #2065 .
Signed-off-by: James Almer <jamrial@gmail.com >
2012-12-29 17:46:01 +00:00
Luca Barbato
d615da60c1
snow: use VideoDSPContext
...
It was left over from the initial conversion.
2012-12-29 18:05:49 +01:00
Luca Barbato
30a7648730
hlsenc: make segment number unsigned
...
It will overflow if somebody keeps streaming for a time long enough.
2012-12-29 17:26:30 +01:00
Luca Barbato
9b1370aced
hlsenc: do not add timestamps in different timebases
...
start_time is in stream timebase units while end_time is
in AV_TIME_BASE ones.
2012-12-29 17:26:30 +01:00
Luca Barbato
0448f26c97
hlsenc: keep the playlist to the correct number of items
...
Consider the corner case with a list size larger than the wrap
number.
2012-12-29 17:26:30 +01:00
Kanglin
27a15e0af6
hlsenc: make EXT-X-MEDIA-SEQUENCE always increase
2012-12-29 17:26:30 +01:00
Kanglin
0d8cc7a3b2
hlsenc: use the correct AV_TIME_BASE macro
...
recording_time is in AV_TIME_BASE units.
2012-12-29 17:26:30 +01:00
Luca Barbato
6dd93ee6f1
hlsenc: check append_entry return value
2012-12-29 17:26:29 +01:00
Luca Barbato
ae85d6c9c0
hlsenc: use the segment filename in the playlist entry
...
Avoid calling av_get_frame_filename twice, once to generate the
segment filename and once to generate the playlist.
2012-12-29 17:26:29 +01:00
Luca Barbato
66f7b4862f
hlsenc: use the basename to generate the list entries
...
The segment path is desumed from the playlist path, recording a
relative path in the playlist while serving the file could lead
to misleading results.
2012-12-29 17:26:29 +01:00
Luca Barbato
d8fd06c37d
avstring: add av_basename and av_dirname
...
Thread safe version of the common basename and dirname.
2012-12-29 17:26:22 +01:00
Michael Niedermayer
981baf742c
lavfi: replace REGISTER_BUILTIN_FILTER() by REGISTER_FILTER_UNCONDITIONAL()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-29 15:37:05 +01:00
Michael Niedermayer
83d4a8442c
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
cosmetics: Prettyprint codec/format/filter registration files
Conflicts:
libavcodec/allcodecs.c
libavdevice/alldevices.c
libavfilter/allfilters.c
libavformat/allformats.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-29 14:27:38 +01:00
Michael Niedermayer
2a9443a110
Merge commit '69583bd3b1eba471366141c945030c163e073e02'
...
* commit '69583bd3b1eba471366141c945030c163e073e02':
avfilter: Refactor unconditional filter registration
build: Add rtpenc_chain extra config option
configure: Add --disable-all command line option
Conflicts:
libavfilter/allfilters.c
libavformat/Makefile
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-29 13:05:37 +01:00
Michael Niedermayer
ba34e56c0d
Merge remote-tracking branch 'cus/stable'
...
* cus/stable:
ffplay: fix type of time_diff in waveform display
ffplay: always display audio visualization if mode is set
ffplay: hide cursor on no mouse movement
ffplay: reset external clock to unknown on start
ffplay: only drop frames if not in frame step mode
ffplay: move frame step pause from the video thread to video_refresh
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-29 04:34:27 +01:00
Michael Niedermayer
c5bea1b02b
xtea: fix unused variable warning for config_small
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-29 03:37:46 +01:00
Michael Niedermayer
e0a99d5411
msmpeg4enc: fix possible use of uninitialized warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-29 03:07:45 +01:00
Michael Niedermayer
2fbc8ea08e
hpel_motion_search: move code used for asserts under correct #if
...
This avoids compiler warnings about set but not used variables
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-29 03:07:45 +01:00
Michael Niedermayer
30872fa09b
ivi_common: Fix use of uninitialized warnings
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-29 03:07:45 +01:00
Michael Niedermayer
76e65a1b73
avs: silence "may be used uninitialized" warnings
...
We initialize the struct to 0 to also ensure any actual use of
the pointers in it will not lead to security issues.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-29 03:07:45 +01:00
Paul B Mahol
3f8ee30e63
mmfenc: use ff_raw_write_packet()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-28 22:21:56 +00:00
Paul B Mahol
f18d2137d6
aiffenc: use ff_raw_write_packet()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-28 22:06:39 +00:00
Paul B Mahol
8ad010a7e0
soxenc: use ff_raw_write_packet()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-28 21:58:03 +00:00
Paul B Mahol
a4b62f36c7
soxdec: use meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-28 21:50:42 +00:00
Paul B Mahol
09401694db
soxenc: use ffio_fill
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-28 21:48:07 +00:00
Paul B Mahol
a4912aa61e
soxenc: use FFALIGN
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-28 21:37:08 +00:00
Michael Niedermayer
07abf13da4
h264: avoid a grayscale related if() in hl_decode_mb()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-28 21:01:54 +01:00
Marton Balint
92b50b71a1
ffplay: fix type of time_diff in waveform display
...
Fixes time diff overflow visible as showing the same few waveforms in a loop at
the end of file.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-12-28 20:01:01 +01:00
Marton Balint
ec89ea3022
ffplay: always display audio visualization if mode is set
...
Fixes ticket #1903 .
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-12-28 20:01:01 +01:00
Marton Balint
ef7f3b0870
ffplay: hide cursor on no mouse movement
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-12-28 20:01:00 +01:00
Marton Balint
0ca4e9f014
ffplay: reset external clock to unknown on start
...
Fixes a delay and initial frame drops on starting realtime streams with
external clock.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-12-28 20:01:00 +01:00
Marton Balint
4e33d8ebb3
ffplay: only drop frames if not in frame step mode
...
Fixes ticket #2053 .
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-12-28 20:00:07 +01:00
Marton Balint
97660b8b13
ffplay: move frame step pause from the video thread to video_refresh
...
This way we pause the video right after we displayed a new frame. Partially
fixes ticket #2053 .
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-12-28 19:59:46 +01:00
Diego Biurrun
c73c87b412
cosmetics: Prettyprint codec/format/filter registration files
2012-12-28 19:18:13 +01:00
Diego Biurrun
69583bd3b1
avfilter: Refactor unconditional filter registration
2012-12-28 19:18:13 +01:00
Diego Biurrun
5ad2f0bfb2
build: Add rtpenc_chain extra config option
...
Also fixes linking in various configs with only individual parts enabled
because the RTP muxer chaining code depends on the general RTP code,
which is now accounted for.
2012-12-28 19:18:13 +01:00
Diego Biurrun
844c68520e
configure: Add --disable-all command line option
...
This option disables all programs, libraries and other parts of Libav
that get built as part of the compilation process.
2012-12-28 19:17:02 +01:00
Paul B Mahol
507956824c
auenc: do not write invalid file size
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-28 16:29:22 +00:00
Michael Niedermayer
8afe168c78
vf_divtc: dont mix av_strdup and free
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-28 17:05:19 +01:00
Michael Niedermayer
baa5d6df77
vf_detc: dont mix av_strdup & free
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-28 17:04:54 +01:00
Michael Niedermayer
458afd2a0e
vf_mp: fix 'discards const qualifier from pointer target type'
...
args are not supposed to be changed by filters even if the argument is
not marked as const.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-28 17:00:01 +01:00
Michael Niedermayer
33f15ab35d
libavutil/samplefmt: Fix project name
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-28 14:05:41 +01:00
Michael Niedermayer
0d4572a54b
MAINTAINERS: s/mjpeg.c/mjpeg*.c/
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-28 13:04:44 +01:00
Stefano Sabatini
0156dd6530
lavf/segment: add segment_frames option
...
This is meant to address trac ticket #1483 .
2012-12-28 11:17:22 +01:00
Stefano Sabatini
7a8face9fb
lavf/segment: add reference_stream option
2012-12-28 10:57:02 +01:00
Michael Niedermayer
9e04e11e83
libpostproc: alloc a few bytes more in the temporary buffer
...
This avoids dering reading 4 bytes prior the buffer (1 byte can
be used)
Fixes Ticket2057
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-28 02:47:25 +01:00
Michael Niedermayer
f1185fbbec
libpostproc: Fix off by 1 error in the C dering code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-28 01:48:40 +01:00
Michael Niedermayer
69db85c30c
mjpegdec: Support 16bit DQT
...
Fixes Ticket2072
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-27 23:18:40 +01:00
Paul B Mahol
10a3fa8f31
build: fix g723_1 decoder dependency
...
g723_1 decoder needs celp_math.o because it calls ff_dot_product().
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-27 18:23:11 +00:00
Don Moir
64f4fb75c4
gifdec: fix transparent background color
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-27 18:10:25 +00:00
Michael Niedermayer
b61097fe0d
mjpegdec: reset restart_count on progressive scans
...
Fixes Ticket2068
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-27 17:41:53 +01:00
Stefano Sabatini
ae2b51acd2
doc/encoders: clarify the direction of the quality setting parameters for libtheora
2012-12-27 15:47:15 +01:00
Stefano Sabatini
7e0676a715
doc/ffmpeg-formats: extend documentation for the probesize parameter
2012-12-27 15:47:15 +01:00
Stefano Sabatini
750382d5c8
ffmpeg: remove annoying logs and improve reporting in case of unavailable bitrate
2012-12-27 15:47:15 +01:00
Michael Niedermayer
b3f3fe3c28
MAINTAINERS: add libswresample
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-27 12:15:59 +01:00
Rob Sykes
8d9a503313
docs: add soxr documentation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-27 12:13:17 +01:00
Rob Sykes
03d38ee207
soxr_resample: soxr API parameter rename
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-27 11:59:55 +01:00
Rob Sykes
f2957adb23
soxr_resample: Correct email address
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-27 11:58:16 +01:00
Clément Bœsch
ceee4407e3
lavfi/tile: small align cosmetics.
2012-12-26 21:32:38 +01:00
Clément Bœsch
4cd724daee
lavfi/tile: remove usage of link->{cur,out}_buf.
2012-12-26 21:30:46 +01:00
Clément Bœsch
3b870f973e
lavfi/scale: remove usage of link->cur_buf.
2012-12-26 21:30:45 +01:00
Clément Bœsch
a612e86ea6
lavfi/deshake: remove usage of link->cur_buf.
2012-12-26 21:30:45 +01:00
Clément Bœsch
5673a0102a
lavfi/decimate: remove usage of link->cur_buf.
2012-12-26 21:30:45 +01:00
Clément Bœsch
33e0eb5109
lavfi/video: remove unused ff_inplace_start_frame().
2012-12-26 21:30:45 +01:00
Michael Niedermayer
011169cd41
mjpegdec: handle the occurance of rstn emulation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-26 20:43:56 +01:00
Michael Niedermayer
5ff8ca1f04
mjpegdec: Handle RSTn in progressive jpegs
...
Fixes Ticket2003
Reviewed-by: Alexander Strasser <eclipse7@gmx.net >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-26 20:43:20 +01:00
Michael Niedermayer
47e7f57a4b
mjpegdec: factor handle_rstn() out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-26 20:25:02 +01:00
Paul B Mahol
c46cfedf09
build: mp filter does not depend on postproc anymore
...
This fixes testprogs build target if libpostproc is disabled.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-26 19:14:07 +00:00
Michael Niedermayer
a2349dc3f0
vf_idet: fix type of stats
...
Reviewed-by: Stefano Sabatini <stefasab@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-26 17:27:28 +01:00
Clément Bœsch
d155abd1fc
lavfi/idet: remove unused assert include.
2012-12-26 17:17:36 +01:00
Clément Bœsch
a7f0af1b9a
lavfi/idet: remove unecessary context assignment.
2012-12-26 17:17:36 +01:00
Clément Bœsch
43cbd4406e
lavfi/idet: support named parameters.
...
The parameters are currently not documented in doc/filters.texi, but now
they at least appear in the automatic help.
2012-12-26 17:17:36 +01:00
Clément Bœsch
915d7487d7
lavfi/idet: remove unecessary poll_frame callback.
2012-12-26 17:17:36 +01:00
Michael Niedermayer
39d178806d
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
mpegvideo: initialize videodsp with correct pixel depth
Conflicts:
libavcodec/mpegvideo.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-26 15:19:35 +01:00
Michael Niedermayer
075eaf8d6a
vc1dsp: fix the warning fix, make it work with --disable-asm
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-26 14:24:31 +01:00
Stefano Sabatini
955c7c7bc6
doc/resampler: extend docs for min_comp and min_hard_comp options
...
Based on the text from the aresample filter docs.
2012-12-26 11:56:36 +01:00
Stefano Sabatini
e06c147581
lavfi/aresample: fix style
...
Improve overall consistency/improve readability.
2012-12-26 11:56:35 +01:00
Michael Niedermayer
b36745339d
libswscale/swscale-test: fix some const correctness
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-26 03:14:59 +01:00
Michael Niedermayer
fceeac9847
vc1dsp: fix pointer type warnings
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-26 03:00:35 +01:00
Michael Niedermayer
67c1acf234
lavc/utils: fix 'warning: missing braces around initializer'
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-26 01:53:45 +01:00
Michael Niedermayer
169dfe320d
lcldec: fix zlib const pointer warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-26 01:37:38 +01:00
Michael Niedermayer
2ad1eb1907
imgconvert: fix 2 "discards const qualifier from pointer target type"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-26 01:36:00 +01:00
Michael Niedermayer
2eab1a178c
imgconvert: dont depend on default return type for get_color_type()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-26 01:34:26 +01:00
Michael Niedermayer
4f927542fb
h264_direct: silence several warning: assignment from incompatible pointer type"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-26 01:23:19 +01:00
Janne Grunau
1f4ea4e068
mpegvideo: initialize videodsp with correct pixel depth
...
Fixes decoding of 9/10 bit per pixel h264 videos as reported in
https://bugzilla.libav.org/show_bug.cgi?id=404 .
2012-12-26 00:24:21 +01:00
Jean First
7fc73d9ab7
rmdec: fix compiler warning for uninitialized variables
...
Signed-off-by: Jean First <jeanfirst@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 23:54:34 +01:00
XBMC
4c41fc88df
mpegts: update AVProgram after pmt change
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 20:30:36 +01:00
Tomas Härdin
928727f951
mxfdec: Rescale audio stream duration from EditRate to SampleRate
...
Since 83cab07 audio stream time bases are based on SampleRate, not EditRate.
This fixes trac ticket #2029 and a few seeking issues.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 17:45:34 +01:00
Michael Niedermayer
a752b9b863
ffmpeg: use the new swr -async parameter instead of a set of parameters.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 17:22:14 +01:00
Michael Niedermayer
f9e55c0fed
swr: support -async X as a simple way to do what ffmpeg -async X did
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 17:21:09 +01:00
Michael Niedermayer
0b980e57ac
Merge remote-tracking branch 'cus/stable'
...
* cus/stable:
ffplay: fix greenish line on the right edge with some xv sizes
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 16:36:57 +01:00
Hendrik Leppkes
8b6b3632fe
vf_pp: add postproc to the library dependencys for avfilter when enabled.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 15:49:27 +01:00
Marton Balint
cf0c63d99a
ffplay: fix greenish line on the right edge with some xv sizes
...
If the XV image linesize was different from the width, SDL would create an
overlay wider than the actually requested one. This causes a greenish line on
the right, because the rightmost texel is blended with unset data. This patch
introduces a function which duplicates the rightmost texel to the unset space,
that way the blending will be done with duplicated border texels.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-12-25 13:54:07 +01:00
Michael Niedermayer
1be8d0fbda
srt_probe: make buffer pointer const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 02:57:48 +01:00
Michael Niedermayer
9cb887ed37
dsputil_mmx: fix pointer type for emulated_edge_mc_func()
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 02:04:31 +01:00
Michael Niedermayer
f89f3d4a98
str_probe: make buffer related pointers const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 01:55:22 +01:00
Michael Niedermayer
28b9099ac1
pva_probe: make buffer related pointers and function arguments const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 01:54:41 +01:00
Michael Niedermayer
59693ed96c
mxf_probe: make buffer related pointers const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 01:54:20 +01:00
Michael Niedermayer
c8e5efb496
mpc8_probe: make buffer related pointers and function arguments const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 01:51:59 +01:00
Michael Niedermayer
7a84664ffe
mp3_read_probe: make buffer related pointers const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 01:51:32 +01:00
Michael Niedermayer
9d95deef61
microdvd_probe: make buffer pointers const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 01:50:58 +01:00
Michael Niedermayer
c3cb338955
mpegps_probe: make buffer related pointers const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 01:50:14 +01:00
Michael Niedermayer
e1f9432644
loas_probe: make buffer pointers const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 01:45:56 +01:00
Michael Niedermayer
29397c99e0
lmlm4_probe: make buffer pointers const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 01:45:43 +01:00
Michael Niedermayer
23348647b2
ipmovie_probe: make buffer pointers const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 01:44:59 +01:00
Michael Niedermayer
4fcf6aa7a3
flac_probe: make buffer pointers const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 01:43:14 +01:00
Michael Niedermayer
658bd6db7b
ac3_eac3_probe: mark buffer pointers const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 01:42:23 +01:00
Michael Niedermayer
d7e050b11d
adts_aac_probe: mark buffer pointers as const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-25 01:41:00 +01:00
Michael Niedermayer
ec40d15d82
oggdec: fix warning: assignment discards qualifiers from pointer target type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-24 22:37:24 +01:00
Michael Niedermayer
bd16f0a331
avfiltergraph: put variables used in #if 0 code themselfs under #if 0
...
Fixes unused variable warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-24 22:35:27 +01:00
Michael Niedermayer
70d5cd103a
mcdec: suppress "warning: a/vst may be used uninitialized in this function"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-24 18:31:37 +01:00
Michael Niedermayer
e9c4f36c52
lavf/mpeg: suppress warning: lpcm_header_len may be used uninitialized in this function
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-24 18:18:03 +01:00
Michael Niedermayer
7681b8e9a9
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
wnv1: cosmetics, reformat
xan: remove a trivially true if().
ansi: do not depend on get_buffer() initializing the frame.
zerocodec: remove an unused variable.
zmbv: remove some pointless comments and empty lines
Conflicts:
libavcodec/xan.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-24 16:20:07 +01:00
Michael Niedermayer
9dbedf331e
Merge commit 'c6303f8d70c25dd6c6e6486c78bf99c9924e2b6b'
...
* commit 'c6303f8d70c25dd6c6e6486c78bf99c9924e2b6b':
yop: simplify/sanitize the decoding loop
c93: set palette_has_changed.
bmp: cosmetics, reformat
hlsenc: Don't duplicate a string constant
Conflicts:
libavcodec/bmp.c
tests/ref/fate/yop
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-24 15:48:02 +01:00
Michael Niedermayer
ba8e909c82
Merge commit '3193b13aa1e271f6d2dd68de67d448c08aef3c00'
...
* commit '3193b13aa1e271f6d2dd68de67d448c08aef3c00':
hlsenc: Allocate enough space for the pattern string
lavc: Correct the description of pkt_dts
avfilter: Compile FIFO filters unconditionally
Conflicts:
libavcodec/avcodec.h
libavfilter/Makefile
libavfilter/allfilters.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-24 15:29:15 +01:00
Michael Niedermayer
d69238e991
Merge commit 'f3298f12997eb4b7ad203766f768f92e3dd72a2a'
...
* commit 'f3298f12997eb4b7ad203766f768f92e3dd72a2a':
Return proper error code after av_log_ask_for_sample()
configure: cosmetics: Separate hwaccel dependencies from decoders/encoders
oggdec: check memory allocation
Conflicts:
configure
libavcodec/pictordec.c
libavformat/anm.c
libavformat/oggdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-24 15:09:58 +01:00
Michael Niedermayer
c6664242e0
Merge commit 'f5f1cf52240759208b42477e2157a7b4409ade10'
...
* commit 'f5f1cf52240759208b42477e2157a7b4409ade10':
oggdec: K&R cosmetic formatting
hlsenc: correctly report target duration
Conflicts:
libavformat/oggdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-24 14:43:03 +01:00
Anton Khirnov
0a9132b84c
wnv1: cosmetics, reformat
2012-12-24 09:18:19 +01:00
Anton Khirnov
51648da4dc
xan: remove a trivially true if().
...
This function used to be shared with the xxan decoder, but that is not
true anymore.
2012-12-24 09:17:57 +01:00
Anton Khirnov
99e36ddd3e
ansi: do not depend on get_buffer() initializing the frame.
...
The background changes from 128 (used by the default/cmdutils
get_buffer()) to 0. This looks more correct.
2012-12-24 09:17:45 +01:00
Anton Khirnov
261f0b14ed
zerocodec: remove an unused variable.
2012-12-24 09:17:40 +01:00
Anton Khirnov
8adfacff5c
zmbv: remove some pointless comments and empty lines
2012-12-24 09:17:34 +01:00
Anton Khirnov
c6303f8d70
yop: simplify/sanitize the decoding loop
...
Do not overwrite linesize set by get_buffer().
The last frame in the FATE test is not decoded anymore, since the file
is cut and a part of it is missing.
2012-12-24 09:16:51 +01:00
Anton Khirnov
f6e395e132
c93: set palette_has_changed.
2012-12-24 09:16:11 +01:00
Anton Khirnov
3eab600752
bmp: cosmetics, reformat
2012-12-24 09:15:30 +01:00
Michael Niedermayer
98b7a50a21
tiffdec: Fix runend handling
...
Fixes Ticket1999
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-24 04:35:12 +01:00
Michael Niedermayer
d4d8d4f786
rl2: return EOF on EOF
...
Fixes Ticket1947
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-24 02:51:51 +01:00
Michael Niedermayer
eeb111d364
Changelog: reword H264-MT entry
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-24 01:57:45 +01:00
Stefano Sabatini
86c6bf040b
doc/filters: remove outdated comments
...
Audio API should not be considered unstable any longer, and mentioning
VHOOK is confusing, as it was removed 4 years ago.
2012-12-24 01:36:21 +01:00
Clément Bœsch
98dc25672f
lavc/pthread: do not re-define _GNU_SOURCE if already defined.
...
This fixes the following warning with GCC:
libavcodec/pthread.c:35:0: warning: _GNU_SOURCE redefined [enabled by default]
<command-line>::0: note: this is the location of the previous definition
The reason of the presence of this flag is:
% pkg-config --cflags sdl
-D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL
2012-12-24 00:54:06 +01:00
Clément Bœsch
00ebac6dfd
doc: stop generating syntax.html.
...
Just like doc/eval.texi, this file is meant to be included from
ffmpeg-utils.texi, and not to be used as a standalone documentation.
2012-12-24 00:53:55 +01:00
Martin Storsjö
4a9f7d2bf9
hlsenc: Don't duplicate a string constant
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-24 00:02:48 +02:00
Stefano Sabatini
3193b13aa1
hlsenc: Allocate enough space for the pattern string
...
If s->filename doesn't contain any period/filename extension to strip
away, the buffer will be too small to fit both strings. This isn't
any buffer overflow since the concatenation uses av_strlcat with
the right buffer size.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-24 00:02:45 +02:00
Paul B Mahol
4f5440adc2
NIST SPHERE demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-23 21:22:43 +00:00
Paul B Mahol
98fed176cf
alsdec: improve warning message when invalid channel position is found
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-23 21:17:44 +00:00
Clément Bœsch
57e99ea44d
doc/ffserver: fix a few typo.
2012-12-23 20:25:28 +01:00
Martin Storsjö
0940580adb
lavc: Correct the description of pkt_dts
...
The description as updated in 6e5c44b0f made it sound like it is
handled exactly like the pts, which it is not. Clarify that it
is the packet that triggered returning the frame instead of just
the last avpacket (in case of frame threading, it won't be the
dts of the last packet).
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-23 20:52:21 +02:00
Michael Niedermayer
d33c939bac
docs: add aresample/async example
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-23 19:47:51 +01:00
Michael Niedermayer
3e15775333
x86/ac3dsp_init: try to workaround ICC failure.
...
The asm code is not valid for older compilers as it uses too many
operands, ICC on x86_32 seems affected by this.
This patch disables the affected code for ICC on x86_32 and should
make it compileable again.
A better fix would be to use fewer operands or to change this code
to yasm, later is being worked on AFAIK so this is a temporary
solution.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-23 19:27:19 +01:00
Clément Bœsch
768c47ec37
lavfi: remove mp=pp filter.
...
Native pp filter is available.
postproc dependency is also dropped from mp wrapper since it was the
only filter needing that dependency.
2012-12-23 19:03:36 +01:00
Clément Bœsch
9b8de93036
lavfi: add pp filter.
...
Ported from MPlayer. Original author is A'rpi, with various
contributions from Michael Niedermayer. The original documentation was
mostly written by Diego Biurrun. See the MPlayer history for full
credits.
The filter is under GPL like the original filter, even if it differs
quite a lot. There is not much point in making it LGPL since pp is under
GPL.
2012-12-23 19:03:36 +01:00
Clément Bœsch
72380d15ae
fate/mp=pp: remove dering subfilter test.
...
This subfilter gives a different output when linesize and width are
differents.
2012-12-23 19:03:36 +01:00
Clément Bœsch
e36ba9884f
fate/mp=pp: expand subfilters with dr (dering) in them.
...
Commands are equivalent at this point.
2012-12-23 19:03:36 +01:00
Diego Biurrun
5af53731d9
avfilter: Compile FIFO filters unconditionally
...
Building libavfilter without that functionality makes little sense.
2012-12-23 18:57:01 +01:00
Diego Biurrun
f3298f1299
Return proper error code after av_log_ask_for_sample()
2012-12-23 18:56:56 +01:00
Diego Biurrun
ed40b6bf07
configure: cosmetics: Separate hwaccel dependencies from decoders/encoders
...
Also move mpegvideo_select statement to the correct position.
2012-12-23 18:51:52 +01:00
Michael Niedermayer
85e83e7a58
doc/ffmpeg-resampler: mention that the options also work with the aresample filter
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-23 18:31:33 +01:00
Piotr Bandurski
9bbfcc2675
rmenc: write correct bytes per minute
...
improves playback of ac3 in RealPlayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-23 16:08:10 +01:00
Piotr Bandurski
76f126ba2e
rmdec: set bit rate for ra3
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-23 15:59:41 +01:00
Michael Niedermayer
8e09e183fc
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
8bps: cosmetics
aasc: cosmetics, reformat
ansi: remove an extra return
asvdec: cosmetics, reformat
aura: cosmetics, reformat
Conflicts:
libavcodec/aasc.c
libavcodec/asvdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-23 15:03:15 +01:00
Michael Niedermayer
def18e5470
Merge commit 'b047c68783aa4042b322af7af043b643d5daf09c'
...
* commit 'b047c68783aa4042b322af7af043b643d5daf09c':
4xm: don't rely on get_buffer() initializing the frame.
huffyuv: split encoder and decoder into separate files.
lavc: make pkt_{p,d}ts doxy less confusing
Conflicts:
libavcodec/Makefile
libavcodec/huffyuv.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-23 14:53:21 +01:00
Michael Niedermayer
2f9903f662
Merge commit '418693bdc5edad72b0d055f741931612d797eb05'
...
* commit '418693bdc5edad72b0d055f741931612d797eb05':
lavc: rewrite and extend AVFrame doxy
opt: avoid segfault in av_opt_next() if the class does not have an option list
ttadec: fix last frame handling when seeking
alacdec: do not be too strict about the extradata size
Conflicts:
libavcodec/alac.c
libavcodec/avcodec.h
libavcodec/tta.c
libavutil/opt.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-23 13:32:40 +01:00
Luca Barbato
ba064ebe48
oggdec: check memory allocation
2012-12-23 12:19:15 +01:00
Luca Barbato
f5f1cf5224
oggdec: K&R cosmetic formatting
2012-12-23 12:19:08 +01:00
Luca Barbato
7e98956e72
hlsenc: correctly report target duration
2012-12-23 12:13:41 +01:00
Anton Khirnov
b6d7d4efae
8bps: cosmetics
...
Remove some pointless comments and empty lines.
2012-12-23 11:17:53 +01:00
Anton Khirnov
b047c68783
4xm: don't rely on get_buffer() initializing the frame.
2012-12-23 11:17:53 +01:00
Anton Khirnov
c64cf2a37b
aasc: cosmetics, reformat
2012-12-23 11:17:53 +01:00
Anton Khirnov
808b2227d7
ansi: remove an extra return
2012-12-23 11:17:53 +01:00
Anton Khirnov
c3a76c3dec
asvdec: cosmetics, reformat
2012-12-23 11:17:53 +01:00
Anton Khirnov
bdfa24514e
aura: cosmetics, reformat
2012-12-23 11:17:53 +01:00
Anton Khirnov
2ca5ca2957
huffyuv: split encoder and decoder into separate files.
2012-12-23 11:17:49 +01:00
Anton Khirnov
6e5c44b043
lavc: make pkt_{p,d}ts doxy less confusing
2012-12-23 10:35:32 +01:00
Anton Khirnov
418693bdc5
lavc: rewrite and extend AVFrame doxy
2012-12-23 10:35:27 +01:00
Michael Niedermayer
f9d8658d67
libpostproc: fix leak of 2kb
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-23 04:55:14 +01:00
Michael Niedermayer
ca9eb9305a
mpegvideo_enc: fix edge emulation of dimension%16 != 0 for YUV != 420
...
Fixes Ticket2041
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-23 04:20:18 +01:00
James Darnley
707af43d19
lavf/y4m: spellcheck
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-23 01:01:17 +01:00
Piotr Bandurski
2e6bd22bbf
rmdec: set bit rate for ra4
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-23 00:10:49 +01:00
Michael Niedermayer
bc5d6e4b96
docs: point to aresample from asyncts docs
...
"Fixes" Ticket2036
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-22 22:33:57 +01:00
Stefano Sabatini
60c801c679
lavf/hlsenc: reuse pattern string, rather than redefining it
...
Improve robustness.
2012-12-22 22:02:06 +01:00
Stefano Sabatini
005b360b9c
lavf/hlsenc: fix basename size computation off-by-one bug
2012-12-22 22:02:06 +01:00
Justin Ruggles
d02202e08a
opt: avoid segfault in av_opt_next() if the class does not have an option list
...
CC: libav-stable@libav.org
2012-12-22 15:43:27 -05:00
Justin Ruggles
5778299c7e
ttadec: fix last frame handling when seeking
...
Using a frame count, as is done currently, does not work at all with
seeking. Instead, when the number of samples in the final frame has
been decoded, we check if only the 32-bit CRC is remaining. If so, we
assume that it is the final frame.
There is no longer a need to keep total_frames in TTAContext.
2012-12-22 14:45:35 -05:00
Johannes Nixdorf
e749b5dd98
configure: consider using /usr/include/openjpeg-1.5 when searching for openjpeg
...
Beginning with version 1.5.1 openjpeg defaults to install its headers to
/usr/include/openjpeg-${major}.${minor} instead of /usr/include without
providing a compatibility symlink making the old test fail.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-22 18:55:39 +01:00
Michael Niedermayer
985aa0be82
h264: Detect POC inconsistencies and try to handle them reasonably
...
Improves the file from Ticket2050
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-22 18:35:43 +01:00
Justin Ruggles
68a04b0cce
alacdec: do not be too strict about the extradata size
...
Sometimes the extradata has duplicate atoms, but that shouldn't prevent
decoding. Just ensure that it is at least 36 bytes as a sanity check.
CC: libav-stable@libav.org
2012-12-22 12:18:41 -05:00
Stefano Sabatini
5715d67bae
Changelog: add entry about the new documentation layout design
2012-12-22 17:58:56 +01:00
Clément Bœsch
1330d1d049
doc/filters: reword introduction sentence of aformat.
2012-12-22 16:25:15 +01:00
Clément Bœsch
ba5ea7db99
doc/filters: simplify escaping in aformat.
...
Escaping the '=' is not necessary, and quoting the arguments allow to
remove the comma escaping as well.
2012-12-22 16:25:15 +01:00
Stefano Sabatini
0824aa6743
doc/filters: add overlay daisy-chaining example
2012-12-22 16:15:53 +01:00
Stefano Sabatini
35b97ad7c0
doc/filters: rework and itemize examples for the overlay filter
2012-12-22 16:15:13 +01:00
Stefano Sabatini
bde1e8bf06
lavfi/overlay: make use of av_opt_set_from_string()
...
Simplify.
2012-12-22 16:14:23 +01:00
Stefano Sabatini
5e402a5319
lavfi/overlay: switch to filter_frame API
2012-12-22 16:12:26 +01:00
Michael Niedermayer
98256622a6
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
flac: only set channel layout if not previously set or on channel count change
prepare 9_beta3 release
Conflicts:
RELEASE
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-22 13:25:53 +01:00
Justin Ruggles
aef5150719
flac: only set channel layout if not previously set or on channel count change
...
Fixes Bug 402
2012-12-22 01:35:28 -05:00
Michael Niedermayer
3f72dbe462
ffplay: fix another use of context instead of frame parameters
...
Fixes Ticket2050
Reviewed-by: Marton Balint <cus@passwd.hu >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-22 03:41:55 +01:00
Michael Niedermayer
5ffb5e7a2d
4xm: check the correct stream, fix fate
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-22 03:41:55 +01:00
Paul B Mahol
44fe118e0a
lavc/4xm: use bytestream2_get_bytes_left
...
Also replace relevant bytestream2 functions with unchecked variants due
code that already checks for overreads.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-22 00:27:29 +00:00
Stefano Sabatini
6b50df6b3a
doc/filters: rename reference to movie filter from "src_movie" to "movie"
...
Should be less confusing.
2012-12-22 01:03:46 +01:00
Michael Niedermayer
e16bac7b33
videodsp: Fix project name
...
These are all part of splited out dsp utils from FFmpeg
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-22 00:58:08 +01:00
Michael Niedermayer
90eaa989f1
x86/videodsp_init: Add back lost author attribution
...
Code originates from:
910b9f30 libavcodec/dsputil.c (David Conrad 2010-05-27 04:39:27 +0000 334) void ff_emulated_edge_mc(uint8_t *buf, const uint8_t *src, int linesize, int block_w, int block_h,
93a21abd libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-14 18:37:35 +0000 335) int src_x, int src_y, int w, int h){
93a21abd libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-14 18:37:35 +0000 336) int x, y;
93a21abd libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-14 18:37:35 +0000 337) int start_y, start_x, end_y, end_x;
b5a093b3 libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-25 20:22:36 +0000 338)
93a21abd libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-14 18:37:35 +0000 339) if(src_y>= h){
93a21abd libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-14 18:37:35 +0000 340) src+= (h-1-src_y)*linesize;
93a21abd libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-14 18:37:35 +0000 341) src_y=h-1;
225f9c44 libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-15 00:25:53 +0000 342) }else if(src_y<=-block_h){
225f9c44 libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-15 00:25:53 +0000 343) src+= (1-block_h-src_y)*linesize;
225f9c44 libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-15 00:25:53 +0000 344) src_y=1-block_h;
93a21abd libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-14 18:37:35 +0000 345) }
93a21abd libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-14 18:37:35 +0000 346) if(src_x>= w){
93a21abd libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-14 18:37:35 +0000 347) src+= (w-1-src_x);
93a21abd libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-14 18:37:35 +0000 348) src_x=w-1;
225f9c44 libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-15 00:25:53 +0000 349) }else if(src_x<=-block_w){
225f9c44 libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-15 00:25:53 +0000 350) src+= (1-block_w-src_x);
225f9c44 libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-15 00:25:53 +0000 351) src_x=1-block_w;
93a21abd libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-14 18:37:35 +0000 352) }
93a21abd libavcodec/mpegvideo.c (Michael Niedermayer 2002-07-14 18:37:35 +0000 353)
b8a78f41 libavcodec/mpegvideo.c (Michael Niedermayer 2002-11-10 11:46:59 +0000 354) start_y= FFMAX(0, -src_y);
b8a78f41 libavcodec/mpegvideo.c (Michael Niedermayer 2002-11-10 11:46:59 +0000 355) start_x= FFMAX(0, -src_x);
b8a78f41 libavcodec/mpegvideo.c (Michael Niedermayer 2002-11-10 11:46:59 +0000 356) end_y= FFMIN(block_h, h-src_y);
b8a78f41 libavcodec/mpegvideo.c (Michael Niedermayer 2002-11-10 11:46:59 +0000 357) end_x= FFMIN(block_w, w-src_x);
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-22 00:58:08 +01:00
Michael Niedermayer
28286a63d0
videodsp_template.c: fix year
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-22 00:58:08 +01:00
Stefano Sabatini
e64a7f2c78
doc/default.css: use ffmpeg.org website CSS
...
The attribute container of the top-level div is changed from "class" to
"id" to match the website CSS.
Improve consistency between website docs and local documentation style.
2012-12-22 00:38:48 +01:00
Stefano Sabatini
042c2a1af8
doc: move HTML CSS to a dedicated file default.css
2012-12-22 00:38:41 +01:00
Paul B Mahol
185d1f3bfc
lavfi: declare arrays that never change as static const
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-21 22:38:59 +00:00
Michael Niedermayer
165be91c2b
img2enc: fix typo
...
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-21 22:56:13 +01:00
Michael Niedermayer
2f436b1fce
lavc: Warn in case the set bitrate is very low
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-21 22:50:57 +01:00
rogerdpack
d828bae9d2
better failure message for img2enc
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-21 21:18:12 +01:00
Piotr Bandurski
0e3a4da106
yop: set video bit rate
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-21 21:18:12 +01:00
Paul B Mahol
a8ebb77493
lavfi/swapuv: use FFSWAP
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-21 19:04:11 +00:00
Carl Eugen Hoyos
a3a22c2178
Revert "Always write all colours for animated gif files, including transparent ones."
...
It breaks some opaque samples.
This reverts commit d4fdaafdb7 .
2012-12-21 18:18:39 +01:00
Carl Eugen Hoyos
0fb79f30db
Support H264 over video4linux2.
...
Tested-by: Val Malykh
2012-12-21 18:12:29 +01:00
Michael Niedermayer
1b598e6776
Merge commit 'c7d4de3d730473167e31cf765e0333c965f934d3'
...
* commit 'c7d4de3d730473167e31cf765e0333c965f934d3':
rtpdec_vp8: Don't return known-broken packets
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-21 17:51:31 +01:00
Michael Niedermayer
bb3420d88e
Merge commit '90c784cc13f6bf21a8eb69f3b88b50c7a70f6c59'
...
* commit '90c784cc13f6bf21a8eb69f3b88b50c7a70f6c59':
rtpdec: Pass the sequence number to depacketizers
configure: Make avconv depend on null, anull and resample filters
Conflicts:
configure
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-21 17:46:43 +01:00
Michael Niedermayer
be2c0adc96
Merge commit '69f086e0f90f23d89e5739b099a4f984fa6a7885'
...
* commit '69f086e0f90f23d89e5739b099a4f984fa6a7885':
build: avfilter: Remove duplicate compilation entry for vf_scale
Conflicts:
libavfilter/Makefile
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-21 17:39:03 +01:00
Michael Niedermayer
d27edc038a
Merge commit '511cf612ac979f536fd65e14603a87ca5ad435f3'
...
* commit '511cf612ac979f536fd65e14603a87ca5ad435f3':
miscellaneous typo fixes
Conflicts:
libavcodec/4xm.c
libavcodec/lagarith.c
libavcodec/parser.c
libavcodec/ratecontrol.c
libavcodec/shorten.c
libavcodec/vda_h264.c
libavformat/dvenc.c
libavformat/wtv.c
tools/patcheck
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-21 17:32:52 +01:00
Michael Niedermayer
a41bf09d9c
Merge commit '6906b19346ae8a330bfaa1c16ce535be10789723'
...
* commit '6906b19346ae8a330bfaa1c16ce535be10789723':
lavc: add missing files for arm
lavc: introduce VideoDSPContext
Conflicts:
configure
libavcodec/arm/dsputil_init_armv5te.c
libavcodec/dsputil.c
libavcodec/dsputil.h
libavcodec/dsputil_template.c
libavcodec/h264.c
libavcodec/mpegvideo.h
libavcodec/mpegvideo_enc.c
libavcodec/x86/dsputil_mmx.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-21 17:18:43 +01:00
Reinhard Tartler
9378be9f32
prepare 9_beta3 release
2012-12-21 15:16:33 +01:00
Paul B Mahol
fb3f28ee28
alsdec: cosmetics after previous commit
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-21 14:14:57 +00:00
Paul B Mahol
ae27b70b9d
alsdec: channel sorting
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-21 14:11:12 +00:00
Michael Niedermayer
29707f5ba6
Merge commit 'a925f723a915bc0255e2673f8817af5212131763'
...
* commit 'a925f723a915bc0255e2673f8817af5212131763':
rtp: Don't read priv_data unless it is allocated
flvenc: Check whether seeking back to the header succeeded
sapenc: Pass the title on to the chained muxers
Conflicts:
libavformat/flvenc.c
libavformat/sapenc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-21 14:06:42 +01:00
Martin Storsjö
c7d4de3d73
rtpdec_vp8: Don't return known-broken packets
...
This is built on the assumption that the first partition of each
VP8 packet is essential for decoding any later packet - if this
partition is broken/missed, the arithmetic coder gets out of sync
and decoding the bitstream in further packet ends up with total
garbage. If packets of a frame are lost, make sure the first
partition is intact (return only this part of the packet, nothing
else), otherwise stop returning data until the next keyframe is
received.
Alternatively, one would simply not return any packets at all
until the next keyframe, if packet loss is detected.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-21 14:14:47 +02:00
Martin Storsjö
90c784cc13
rtpdec: Pass the sequence number to depacketizers
...
This allows depacketizers to figure out if packets have been lost.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-21 14:14:40 +02:00
Michael Niedermayer
63753186cc
lavf: Remove "Adjusting PTS forward" code
...
it causes problems (incorrectly detect TS discontinuities)
with a brokan TS file (test-audio-broken.ts)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-21 05:12:05 +01:00
Paul B Mahol
cfa530034f
gifdec: remove dead store
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-21 00:33:14 +00:00
Michael Niedermayer
230bef0a89
ffplay: fix handling of resolution changes with h264-mt
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Reviewed-by: Marton Balint <cus@passwd.hu >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-21 00:50:47 +01:00
Carl Eugen Hoyos
9eca649a92
Fix compilation with --disable-everything --enable-muxer=mov.
2012-12-21 00:27:34 +01:00
Diego Biurrun
0a0e340f5b
configure: Make avconv depend on null, anull and resample filters
...
Building avconv without that functionality makes little sense.
2012-12-21 00:21:53 +01:00
Diego Biurrun
69f086e0f9
build: avfilter: Remove duplicate compilation entry for vf_scale
...
vf_scale should not be unconditionally compiled even if disabled.
2012-12-21 00:18:34 +01:00
Diego Biurrun
511cf612ac
miscellaneous typo fixes
2012-12-21 00:18:34 +01:00
Stefano Sabatini
340b7caf54
lavf/hlsenc: provide some feedback in case of invalid basename
2012-12-21 00:07:21 +01:00
Stefano Sabatini
28b96efab5
lavf/hlsenc: fix minor grammar inconsistencies in the option help messages
2012-12-21 00:07:13 +01:00
Stefano Sabatini
b448677e6e
doc: remove inclusion of libav* documentation in tools
...
This shrinks the tool manuals to a manageable size. Relevant manuals are
referenced in the "See Also" chapter.
Overall documentation inclusion should still be possible through the use
of a conditional variable set during configuration time, if someone feels
the need for a huge-wall-of-text-fashioned manual.
2012-12-20 23:48:23 +01:00
Stefano Sabatini
ca3327d56f
doc/ffmpeg-formats: include metadata chapter
...
The metadata muxer/demuxer belongs to the formats documentation.
2012-12-20 23:46:56 +01:00
Carl Eugen Hoyos
d4fdaafdb7
Always write all colours for animated gif files, including transparent ones.
...
This fixes the colour of the transparent background (as seen with ffplay),
and makes the background of some non-keyframes transparent that was
incorrectly shown as opaque for some samples.
2012-12-20 23:05:42 +01:00
Paul B Mahol
9321e93502
gifdec: fix invalid write in gif_copy_img_rect
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-20 17:56:52 +00:00
Paul B Mahol
c004de0b1c
gifdec: fix invalid write in giff_fill_rect
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-20 17:46:05 +00:00
Michael Niedermayer
103410d67e
ffmpeg_opt: fix recording time in->out carryover.
...
This should fix valgrind complaints.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-20 17:45:43 +01:00
Nicolas George
c7a1239bf9
lavfi/af_aconvert: update audio->channels.
2012-12-20 17:01:35 +01:00
Piotr Bandurski
17714adbf8
tiffdec: support LZW compression with inverted FillOrder
2012-12-20 15:38:52 +00:00
Clément Bœsch
217bdd08e3
lavf/srtdec: reindent after previous commits.
2012-12-20 16:13:53 +01:00
Clément Bœsch
6c26fc7704
lavf/srtenc: honor subtitle position side data.
2012-12-20 16:13:52 +01:00
Clément Bœsch
1dab8d9157
lavf/srtdec: switch to FFDemuxSubtitlesQueue API.
2012-12-20 16:13:52 +01:00
Clément Bœsch
0072116ccb
lavf: split packets before muxing.
...
After demuxing, data and side are merged. Before decoding, they are
split. Encoder will perform with data and side split. This means that a
muxer can receive split data (after encoding) but also merged data (if
called directly after demuxing). This commit makes sure data and side
are split for the muxer.
2012-12-20 16:13:52 +01:00
Piotr Bandurski
52f2176366
aiffenc: set correct number of bits foru8 in aiff
...
with this change QuickTime is able to play u8 aiff file generated by FFmpeg
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-20 16:05:30 +01:00
Luca Barbato
6906b19346
lavc: add missing files for arm
...
Across the many retouches those did not make the main commit.
2012-12-20 14:07:23 +01:00
Ronald S. Bultje
8c53d39e7f
lavc: introduce VideoDSPContext
...
Move some functions from dsputil. The idea is that videodsp contains
functions that are useful for a large and varied set of video decoders.
Currently, it contains emulated_edge_mc() and prefetch().
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2012-12-20 13:40:45 +01:00
Martin Storsjö
a925f723a9
rtp: Don't read priv_data unless it is allocated
...
This makes all users of rtpenc_chain (rtsp muxer, sapenc, mov
rtp hinting) work again, broken since 8034130e0 .
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-20 14:25:49 +02:00
Nicolas George
0146c1f0f1
lavfi: remove init and check of rate and layout.
...
The sample rate and channel layout are negotiated and set
by the filter graph system.
2012-12-20 13:03:42 +01:00
Nicolas George
5033a1af17
lavfi/buffersrc: remove init of rate and layout.
...
The sample rate and channel layout are negotiated and set
by the filter graph system, the filters must not set them.
2012-12-20 13:03:42 +01:00
Nicolas George
34de47aa35
lavfi: add an accessor for ref->audio->channels.
2012-12-20 13:03:41 +01:00
Nicolas George
238edd2fe3
lavfi: add a channels field to AVFilterLink.
...
Also: fix af_pan and af_aresample, that forgot to update
audio->channels.
2012-12-20 13:03:41 +01:00
Michael Niedermayer
a9275b4f69
h264: Fix code to also handle pix format changes.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-20 12:56:47 +01:00
Michael Niedermayer
41135b7f64
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavr: add option for dithering during sample format conversion to s16
mpeg12: do not decode extradata more than once.
Conflicts:
libavcodec/mpeg12.c
libavcodec/mpeg12.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-20 12:18:28 +01:00
Michael Niedermayer
40ea343866
Merge commit 'c661cb6672af5ebcb900ec8766b24761bd2ab011'
...
* commit 'c661cb6672af5ebcb900ec8766b24761bd2ab011':
cmdutils: pass number of groups to split_commandline().
mov: handle h263 and flv1 for codec_tag 'H','2','6','3'
h264: fix sps parsing for SVC and CAVLC 4:4:4 Intra profiles
Conflicts:
libavcodec/h264_ps.c
libavformat/isom.c
libavformat/mov.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-20 12:06:15 +01:00
Björn Axelsson
1eaff98c83
flvenc: Check whether seeking back to the header succeeded
...
The FLV muxer tries to update the header in write_trailer, which is
impossible if writing to a pipe or network stream. Don't write header
data if seeking to the header fails.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-20 12:37:42 +02:00
Jernej Virag
e30e8e311e
sapenc: Pass the title on to the chained muxers
...
This makes sure it ends up in the SDP, providing a proper session name
in the SAP announcements.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-20 12:37:34 +02:00
Clément Bœsch
174c483e2e
lavfi/select: fix compilation with avcodec disabled.
2012-12-20 05:17:36 +01:00
James Almer
974ac57e83
astenc: Remove two AVRationals with denominator 1
...
They are completely superfluous when using av_rescale_q_rnd().
Call av_rescale_rnd() using what used to be the numerators instead.
Signed-off-by: James Almer <jamrial@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-20 05:05:55 +01:00
Michael Niedermayer
8525fa7c2c
h264: remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-20 04:22:21 +01:00
Michael Niedermayer
a46c565796
ffmpeg_opt: fix pointer types
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-20 04:21:29 +01:00
Michael Niedermayer
73db0bf1b0
mpegvideo: increase scratchpad sizes
...
These where reduced in f1d8763a02
and this change can cause out of array accesses.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-20 03:58:13 +01:00
Clément Bœsch
53fa6f5863
doc/general: sort subtitles formats.
2012-12-20 03:55:16 +01:00
Clément Bœsch
e5e5664ca0
fate: add and fix subtitles dependencies.
2012-12-20 03:50:34 +01:00
Michael Niedermayer
7e90053822
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
mpegvideo: increase edge_emu_buffer size for VC1
lavc: merge latest x86inc.asm fixes with x264
Conflicts:
libavcodec/mpegvideo.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-20 02:51:35 +01:00
Michael Niedermayer
1667152a9c
Merge commit 'acb571c89a065d943163c11efb46de35774f1909'
...
* commit 'acb571c89a065d943163c11efb46de35774f1909':
avcodec: bump minor for adaptive h264 frame-mt
avconv: pass the actually selected decoder to filter_codec_opts().
Conflicts:
Changelog
ffmpeg_opt.c
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-20 02:44:22 +01:00
Michael Niedermayer
ba4bcb191a
cmdutils: implement debug/fdebug log level update differently.
...
The old implementation is no longer possibly due to limitations
of the new command line parser.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-20 02:38:18 +01:00
Michael Niedermayer
af4b1c02ac
Merge commit '77bd1bc73a1946b0f0ce09a7cbb242a65e138d06'
...
* commit '77bd1bc73a1946b0f0ce09a7cbb242a65e138d06':
avconv: use new options parser.
Conflicts:
ffmpeg.c
ffmpeg.h
ffmpeg_opt.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-20 02:38:02 +01:00
Justin Ruggles
b2fe6756e3
lavr: add option for dithering during sample format conversion to s16
2012-12-19 18:52:54 -05:00
Clément Bœsch
52b866471e
doc/faq: move filter links to the ffmpeg-filters.html page.
2012-12-20 00:36:08 +01:00
Clément Bœsch
521a963a7d
doc/faq: improve concatenation entry.
2012-12-20 00:36:08 +01:00
Clément Bœsch
cb0881c794
ffmpeg: use GROW_ARRAY in opt_map_channel.
2012-12-19 22:57:35 +01:00
Michael Niedermayer
61bc3d80e9
Merge commit '0ec1642b60a5b1a4d913e2b9e3899173dff77e7a'
...
* commit '0ec1642b60a5b1a4d913e2b9e3899173dff77e7a':
cmdutils: don't log an error in opt_default().
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 22:47:40 +01:00
Michael Niedermayer
33f9b2436a
Merge commit '8c9af5b2051b9927f845c7afdfeb30b82670ee77'
...
* commit '8c9af5b2051b9927f845c7afdfeb30b82670ee77':
cmdutils: add a commandline pre-parser.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 22:38:04 +01:00
Anton Khirnov
5823686261
mpeg12: do not decode extradata more than once.
...
Fixes CVE-2012-2803.
CC: libav-stable@libav.org
2012-12-19 22:32:54 +01:00
Michael Niedermayer
465c7de792
Merge commit 'a01c02bcff755a7891f777706b27452203aac71e'
...
* commit 'a01c02bcff755a7891f777706b27452203aac71e':
cmdutils: split parse_option().
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 22:24:54 +01:00
Anton Khirnov
c661cb6672
cmdutils: pass number of groups to split_commandline().
...
This makes the code simpler and avoids mixing designated and
non-designated initializers in a potentially unsafe way in avconv.
2012-12-19 22:13:41 +01:00
Michael Niedermayer
330983b728
Merge commit '10bca66101b79954512cd9d8ee20c3bc4513adf3'
...
* commit '10bca66101b79954512cd9d8ee20c3bc4513adf3':
cmdutils: add a macro to simplify grow_array() calls.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 22:04:03 +01:00
Michael Niedermayer
f61498e1df
Merge commit '9e696d2e5ffaa763c564682ec18c3b51b3e5fccc'
...
Merge only for metadata, functionality had been previously integrated.
* commit '9e696d2e5ffaa763c564682ec18c3b51b3e5fccc':
h264: support frame parameter changes during frame-mt
Conflicts:
libavcodec/h264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 21:59:33 +01:00
Michael Niedermayer
ca4dd3810e
h264: use must_reinit to simplify code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 21:46:11 +01:00
Michael Niedermayer
af0fafcb6f
h264: decode_update_thread_context() copy parameter sets before using them
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 21:46:11 +01:00
Michael Niedermayer
e33811bd26
h264: remove reschange blocking
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 21:46:11 +01:00
Michael Niedermayer
c2dfb1e37c
h264: support frame size changes with multi threading
...
Based on code by Janne Grunau
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 21:46:11 +01:00
Michael Niedermayer
7e6c68394f
ffmpeg_filter: use frame instead of decoder context pixel format
...
prevents regressions from h264-mt frame size changing code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 21:46:11 +01:00
Michael Niedermayer
04a530f7d3
ffmpeg_filter: use frame dimensions instead of decoder context dimensions.
...
avoids regression from the h264-mt frame size change code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 21:46:11 +01:00
Michael Niedermayer
8ea4a5533f
h264: move h264_set_parameter_from_sps() call up
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 21:46:11 +01:00
Michael Niedermayer
afc03268b4
h264: move list_count and current_slice reset to flush_change()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 21:46:11 +01:00
Michael Niedermayer
971c469a0d
h264: split flush_change() out of flush_dpb()
...
Based on a patch by Janne Grunau
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 21:46:11 +01:00
Michael Niedermayer
25a0af51da
h264: factor get_pixel_format() out
...
Based on patch by Janne Grunau
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 21:46:11 +01:00
Paul B Mahol
76877beada
au: return meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-19 20:16:35 +00:00
Clément Bœsch
a1d14336d3
pp: fix a few typo in the template.
2012-12-19 17:59:25 +01:00
Paul B Mahol
d85854b269
pvfdec: drop pointless casting of buffer in ff_get_line()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-19 15:55:39 +00:00
Michael Niedermayer
642a655f7d
Merge commit 'f1d8763a02b5fce9a7d9789e049d74a45b15e1e8'
...
* commit 'f1d8763a02b5fce9a7d9789e049d74a45b15e1e8':
mpegvideo: allocate scratch buffers after linesize is known
Conflicts:
libavcodec/mpegvideo.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 15:44:59 +01:00
Janne Grunau
bb2bab92e7
mov: handle h263 and flv1 for codec_tag 'H','2','6','3'
...
The sample in https://bugzilla.libav.org/show_bug.cgi?id=393 and
samples/F4V/H263_NM_f.mp4 both have codec_tag H263 for different
codecs. H263 is apparently used by Flash Media Server for Sorensen
Spark videos.
Patch based on commit 5442083b1c by
Carl Eugen Hoyos. Fixes bug 393.
2012-12-19 14:50:14 +01:00
Michael Niedermayer
e84194f060
Merge commit 'ed2d7d5868a4a5d914f1e5488d63ea696a3b2937'
...
* commit 'ed2d7d5868a4a5d914f1e5488d63ea696a3b2937':
ff_h264_direct_ref_list_init: fix B slice check.
h264: increase dist_scale_factor for up to 32 references
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 14:39:30 +01:00
Michael Niedermayer
af804dbe9e
Merge commit '523c7bd23c781aa0f3a85044896f5e18e8b52534'
...
* commit '523c7bd23c781aa0f3a85044896f5e18e8b52534':
misc typo, style and wording fixes
Conflicts:
libavcodec/options_table.h
libavutil/pixfmt.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 14:28:58 +01:00
Victor Lopez
1c8bf3bfed
h264: fix sps parsing for SVC and CAVLC 4:4:4 Intra profiles
...
Fixes bug 396.
CC: libav-stable@libav.org
2012-12-19 13:40:48 +01:00
Clément Bœsch
80a9297b71
doc: remove mention of fifo filter in the introduction.
...
It's confusing and not necessary, especially in the introduction.
2012-12-19 12:58:52 +01:00
Stefano Sabatini
022e118e3f
lavfi/setpts: enable debug logs, and improve/extend debug messages
2012-12-19 11:49:54 +01:00
Carl Eugen Hoyos
ec4a084581
Show underscores in av_get_codec_tag_string().
2012-12-19 10:01:07 +01:00
Stefano Sabatini
c5d7c7d33b
doc: extend "See Also" chapters in library manuals
...
In particular, make "See Also" chapter rendered in HTML output.
2012-12-19 09:33:44 +01:00
Stefano Sabatini
9b323a9b95
doc: extend "See Also" chapters in component manuals
...
In particular, make "See Also" chapter rendered in HTML output.
2012-12-19 09:33:44 +01:00
Stefano Sabatini
9d6517aa67
doc: extend "See Also" chapter rendering for ff* tools
...
Add more references, and generate alternative variants for HTML and POD
output. In particular, this allows to render a "See Also" chapter in the
HTML output.
2012-12-19 09:33:44 +01:00
Stefano Sabatini
c2ac647710
doc: rework synopsis section for ff* tools
...
Fix syntax, remove pointless introductory sentence, improve overall
consistency.
2012-12-19 09:33:44 +01:00
Stefano Sabatini
461716d3bf
doc: use a common authors.texi file blurb
...
Factorize.
2012-12-19 09:33:43 +01:00
Stefano Sabatini
ca3d786227
doc/texi2pod: rework man inclusion logic
...
Ignore @c man begin ... @c man end comments, rely on @chapter for marking
the beginning of the various manual top level sections.
This allows us to write markup which is not dependent on the specific
texi2pod.pl implementation.
This change causes a few rendering issues, which will be fixed in further
patches.
2012-12-19 09:33:04 +01:00
Janne Grunau
45635885e4
mpegvideo: increase edge_emu_buffer size for VC1
...
The VC1 decoder uses edge_emu_buffer simultaneously for luma and chroma
and needs more space. That was not a problem before f1d8763a02
since the size for edge_emu_buffer was always calculated with 2 byte per
pixel since the linesize was not known.
Fixes occasionally fate errors in vc1_sa10143.
2012-12-19 07:57:22 +01:00
Ronald S. Bultje
a34d9ad969
lavc: merge latest x86inc.asm fixes with x264
...
Unbreak NASM support.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2012-12-19 07:27:33 +01:00
Michael Niedermayer
1166fc07a2
utils: fix duration calculation for strange_duration_example.ts
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 04:16:15 +01:00
Clément Bœsch
de2022c5dd
lavfi/gradfun: small align cosmetics.
2012-12-19 03:22:58 +01:00
Clément Bœsch
fea6f5e14d
doc/filters: reformat and rework gradfun.
...
Note that examples are changed.
2012-12-19 03:16:43 +01:00
Clément Bœsch
526e2415bd
lavfi/gradfun: support named options.
...
This breaks usage for out-of-range values.
2012-12-19 03:13:26 +01:00
Clément Bœsch
ca83e6ce26
fate: re-enable lavfi gradfun filter test.
2012-12-19 03:13:26 +01:00
Clément Bœsch
3bdd70fc66
lavfi/gradfun: reduce up limit for threshold.
...
This will prevent an overflow in the SSSE3 and MMX filter_line code:
delta is expressed as an u16 being shifted by 2 to the left. If it
overflows, having a strength not above 64 will make sure that m is set
to 0 (making the m*m*delta >> 14 expression void).
A value above 64 should not make any sense unless gradfun is used as a
blur filter.
2012-12-19 03:13:26 +01:00
Clément Bœsch
63e1fc2588
lavfi/gradfun: remove rounding to match C and SSE code.
...
There is no noticable benefit for such precision.
2012-12-19 03:13:25 +01:00
Clément Bœsch
60ba9a9a88
lavfi/gradfun: fix dithering in MMX code.
...
Current dithering only use the first 4w instead of the whole 8 random values.
2012-12-19 03:13:25 +01:00
Clément Bœsch
49de902a1e
lavfi/gradfun: fix rounding in MMX code.
...
Current code divide before increasing precision.
2012-12-19 03:13:25 +01:00
Clément Bœsch
dd8a76ab08
lavfi/gradfun: do not increment DC pointer for odd values.
...
First DC is only used once otherwise. This also makes the code
consistent with ASM versions.
2012-12-19 03:13:25 +01:00
Paul B Mahol
dea9da5f16
qcelpdata: correct start bit for cbgain[0] in qcelp_rate_octave_bitmap[]
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-19 01:24:56 +00:00
Michael Niedermayer
c4a32d92fe
ffmpeg: Fix shortest with libx264
...
Encoders that buffer a significant number of frames where a "few"
frames off with -shortest
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-19 00:08:37 +01:00
Stefano Sabatini
1b9ced685a
MAINTAINERS: update my GPG key fingerprint
2012-12-18 23:08:02 +01:00
Carl Eugen Hoyos
d687b8c875
Cosmetics: Reindent after last commit.
2012-12-18 23:06:00 +01:00
Carl Eugen Hoyos
00a62e6776
Do not skip three bytes and don't search for extradata in old realaudio files.
...
Fixes ticket #1557 .
2012-12-18 23:04:19 +01:00
Janne Grunau
acb571c89a
avcodec: bump minor for adaptive h264 frame-mt
...
Also adds forgotten Changelog entry.
2012-12-18 20:26:53 +01:00
Anton Khirnov
e82cb79adf
avconv: pass the actually selected decoder to filter_codec_opts().
2012-12-18 20:15:06 +01:00
Anton Khirnov
77bd1bc73a
avconv: use new options parser.
2012-12-18 20:14:54 +01:00
Anton Khirnov
0ec1642b60
cmdutils: don't log an error in opt_default().
...
It results in spurious errors when using the new preparser.
2012-12-18 20:14:46 +01:00
Anton Khirnov
8c9af5b205
cmdutils: add a commandline pre-parser.
...
It splits the commandline into a more convenient internal representation
for further parsing.
This will allow e.g.
- processing global options first independently of their location on the
commandline, eliminating ugly hacks for processing e.g. cpuflags
first
- better options validation and error reporting. It is now possible for
the parser to know that it's applying an input option to an output
file or vice versa and act accordingly.
2012-12-18 20:13:55 +01:00
Anton Khirnov
a01c02bcff
cmdutils: split parse_option().
...
Separate the code that searches for the option to use and the code that
actually writes it. The writing code will be reused by the new options
parser.
2012-12-18 20:12:40 +01:00
Anton Khirnov
10bca66101
cmdutils: add a macro to simplify grow_array() calls.
2012-12-18 20:11:06 +01:00
Janne Grunau
9e696d2e5f
h264: support frame parameter changes during frame-mt
...
Fixes CVE-2012-2782.
2012-12-18 19:55:10 +01:00
Janne Grunau
f1d8763a02
mpegvideo: allocate scratch buffers after linesize is known
...
Since we can't know which stride a custom get_buffer() implementation is
going to use we have to allocate this scratch buffers after the linesize
is known. It was pretty safe for 8 bit per pixel pixel formats since we
always allocated memory for up to 16 bits per pixel. It broke hoever
with cmdutis.c's alloc_buffer() and high pixel bit depth since it
allocated larger edges than mpegvideo expected.
Fixes fuzzed sample nasa-8s2.ts_s244342.
2012-12-18 19:48:30 +01:00
Michael Niedermayer
ed2d7d5868
ff_h264_direct_ref_list_init: fix B slice check.
...
Fixes null pointer dereference.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
2012-12-18 19:44:22 +01:00
Janne Grunau
73ad2c2fa7
h264: increase dist_scale_factor for up to 32 references
...
Compute dist_scale_factor_field only for MBAFF since that is the only
case in which it is used.
2012-12-18 19:36:58 +01:00
Michael Niedermayer
9700a7a1dd
af_apad: remove unneeded av_opt_free
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-18 17:31:01 +01:00
Michael Niedermayer
c311431e29
apad: add whole_len and pad_len options.
...
These options allow padding to a specific length or adding a specific amount if silence.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-18 17:30:31 +01:00
Michael Niedermayer
c2640146e0
apad: fix apad_options formating
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-18 17:16:03 +01:00
Michael Niedermayer
b7e085a288
af_apad: add user setable packet_size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-18 17:01:33 +01:00
Michael Niedermayer
5eae7f8f35
avfilter: add apad filter
...
This filter pads an audio stream with silence
It can together with -shortest be used to extend audio streams to
the same length as video.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-18 16:30:08 +01:00
Michael Niedermayer
5c2fc3bdd7
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
configure: formatting cosmetics
h264: use mbaff ref indices in fill_colmap() only for mbaff references
Conflicts:
libavcodec/h264_direct.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-18 15:00:05 +01:00
Michael Niedermayer
14f79ba18f
h264: remove redundant parts of old slice in extradata code.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-18 14:52:44 +01:00
Michael Niedermayer
99321d1b03
h264: merge old and new "slice in extradata" checks
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-18 14:50:12 +01:00
Michael Niedermayer
09b4ae8331
Merge commit '61c6eef5456f2bc8b1dc49a0a759c975551cea29'
...
* commit '61c6eef5456f2bc8b1dc49a0a759c975551cea29':
h264: prevent decoding of slice NALs in extradata
doxy: Clarify what avpriv_set_pts_info does
Conflicts:
libavcodec/h264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-18 14:38:10 +01:00
Michael Niedermayer
94ecbe23c5
Merge commit 'c35f0e8495e34c2082dcde805e9323c9f6a4cb0a'
...
* commit 'c35f0e8495e34c2082dcde805e9323c9f6a4cb0a':
au: Reorder code so that both muxer and demuxer are under #ifdefs
fate: Move RALF test into lossless audio group
cosmetics: Use consistent names for multiple inclusion guards.
Conflicts:
libavformat/au.c
tests/fate/lossless-audio.mak
tests/fate/real.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-18 14:27:59 +01:00
Peter Ross
95015634f5
wtv: permit root table and first sectors to be located beyond 2GB boundary
...
Fixes ticket #2025 .
Signed-off-by: Peter Ross <pross@xvid.org >
2012-12-19 00:18:17 +11:00
Michael Niedermayer
ebfb738fa4
nutdec: sanity check r_frame_rate
...
This fixes files that store a somewhat incorrect value.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-18 14:03:04 +01:00
Diego Biurrun
523c7bd23c
misc typo, style and wording fixes
2012-12-18 13:36:51 +01:00
Diego Biurrun
ea061af15a
configure: formatting cosmetics
2012-12-18 13:36:50 +01:00
Michael Niedermayer
c9aab8a123
h264: use mbaff ref indices in fill_colmap() only for mbaff references
...
Prevents writing beyond array bounds.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2012-12-18 11:02:23 +01:00
Janne Grunau
61c6eef545
h264: prevent decoding of slice NALs in extradata
...
It is not posible to call get_buffer during frame-mt codec
initialization. Libavformat might pass huge amounts of data as
extradata after parsing broken files. The 'extradata' for the fuzzed
sample sample_varPAR_s5374_r001-02.avi is 2.8M large and contains
multiple slices.
2012-12-18 11:01:14 +01:00
Clément Bœsch
8b63744f48
Fix "bistream" typo and add a check in tools/patcheck.
2012-12-18 02:47:34 +01:00
Stefano Sabatini
1dd33d472a
doc/ffmpeg-bitstream-filters: fix typo in title
2012-12-18 02:00:28 +01:00
Carl Eugen Hoyos
a71de9a2a2
Fix typo in mvc decoder.
2012-12-18 01:58:17 +01:00
Michael Niedermayer
41bebda485
mjpegenc: fix restart interval parameters for yuv444
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-18 01:21:48 +01:00
Michael Niedermayer
28b85b1fff
mjpegenc: fix YUV444 with w%16!=0
...
Fixes Ticket2040
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-18 01:21:48 +01:00
Stefano Sabatini
85e6f6d9c1
doc/indevs: update syntax for the color filter in the lavfi device examples
2012-12-18 00:06:35 +01:00
Stefano Sabatini
1f9855dbc1
doc/texi2pod: correctly handle @url commands in the form @url{URL,...}
...
Ignore the other arguments, which have not to be processed by the POD
renderer.
2012-12-18 00:06:35 +01:00
Stefano Sabatini
9bba683578
doc/Makefile: add docclean rule
...
This allows to clean the doc directory from the parent project dir.
The command:
make -C doc clean
does not work as long as the paths specified in doc/Makefile are relative
to the parent dir.
Also it is consitent with "testclean" and "distclean" targets.
2012-12-18 00:06:17 +01:00
Stefano Sabatini
f14e248783
doc/texi2pod: add support to @ifhtml and @ifnothtml directives
...
With these commands it is possible to add HTML and non-HTML snippets,
which will be useful for the "See Also" manual chapters.
2012-12-17 23:54:07 +01:00
Stefano Sabatini
992772b947
doc: remove references to external documents
...
Fix a few warnings generated when creating the manuals.
Our current doc generation toolchain does not allow to reference external
documents.
2012-12-17 23:53:50 +01:00
Michael Niedermayer
1d29624c73
oggparsevorbis: check channels
...
Fixes out of array accesses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-17 20:51:50 +01:00
Jernej Virag
2f7465b5bf
SAP muxer set session name from metadata
...
Pass "title" metadata field to av_sdp_create (as in RTP muxer) in SAP
muxer for correct
session name in SAP SDP announcements.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-17 17:31:55 +01:00
Michael Niedermayer
8976ef7aec
concatdec: change data type to suppress warning about limited range of data type on some platforms.
...
Reviewed-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-17 17:31:34 +01:00
Derek Buitenhuis
26e4f0c70f
doxy: Clarify what avpriv_set_pts_info does
...
The "pts for a given stream" was nonsensical.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-12-17 11:20:00 -05:00
Derek Buitenhuis
df0d6735b3
doxy: Clarify what avpriv_set_pts_info does
...
The "pts for a given stream" was nonsensical.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-12-17 11:18:27 -05:00
Diego Biurrun
c35f0e8495
au: Reorder code so that both muxer and demuxer are under #ifdefs
...
This reduces code size when either piece has been disabled.
2012-12-17 17:02:22 +01:00
Diego Biurrun
4d6c96fd69
fate: Move RALF test into lossless audio group
2012-12-17 17:02:22 +01:00
Diego Biurrun
81c7c817a4
cosmetics: Use consistent names for multiple inclusion guards.
2012-12-17 17:02:22 +01:00
Michael Niedermayer
8505daacc5
Merge remote-tracking branch 'ramiro/dshow'
...
* ramiro/dshow:
dshow: call CoUninitialize() on dshow_read_close()
dshow: handle events in graph
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-17 14:38:26 +01:00
Michael Niedermayer
082dd17bd2
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avresample: use valid log context in mixing functions
lavr: remove automatic context close/open for resampling compensation
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-17 14:11:51 +01:00
Michael Niedermayer
8d07bbca63
Merge commit 'f322b2073581119de5da74f92a03309a36891cfa'
...
* commit 'f322b2073581119de5da74f92a03309a36891cfa':
lavr: only save/restore the mixing matrix if mixing is being done
rtpdec_vp8: Cosmetics: Fix bad alignment/indentation
rtpenc: Allow including a SDES/CNAME block in RTCP SR packets
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-17 14:06:11 +01:00
Michael Niedermayer
021b3497e1
Merge commit '65e053271a98f7acf3ef6b412998cfcb44a8eef8'
...
* commit '65e053271a98f7acf3ef6b412998cfcb44a8eef8':
rtpenc_vp8: Include the picture number in VP8 packets
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-17 13:46:54 +01:00
Piotr Bandurski
0f450ac575
siff: set duration
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-17 13:34:30 +01:00
Peter Ross
fb9d58509c
isom: support SGI RLE 8-bit in QuickTime file format
...
Signed-off-by: Peter Ross <pross@xvid.org >
2012-12-17 20:37:54 +11:00
Peter Ross
6fb40779cd
Silicon Graphics Movie (.mv) demuxer
...
Signed-off-by: Peter Ross <pross@xvid.org >
2012-12-17 20:37:54 +11:00
Peter Ross
746b1dcc98
Silicon Graphics Motion Video Compressor 1 & 2 decoder
...
Signed-off-by: Peter Ross <pross@xvid.org >
2012-12-17 20:37:54 +11:00
Peter Ross
afa1617b93
SGI RLE 8-bit decoder
...
Signed-off-by: Peter Ross <pross@xvid.org >
2012-12-17 20:37:54 +11:00
Ramiro Polla
83a9f29f60
dshow: call CoUninitialize() on dshow_read_close()
...
Every call to CoInitialize should have a matching CoUnititalize.
Based on patch by Don Moir <donmoir@comcast.net >.
2012-12-17 03:44:51 -02:00
Ramiro Polla
190f6135b4
dshow: handle events in graph
...
Handling DirectShow events prevents infinite loops when there is an error in
the graph, such as a device being disconnected. This makes it possible for
dshow to return an error to the caller and run the cleanup code.
Based on patch by Don Moir <donmoir@comcast.net >.
2012-12-17 03:44:12 -02:00
Hendrik Leppkes
0cf3505930
avresample: use valid log context in mixing functions
...
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2012-12-16 19:59:58 -05:00
Michael Niedermayer
2e59142fa9
sctp: dont abort on invalid input
...
Fixes Ticket1865
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-17 01:53:35 +01:00
Michael Niedermayer
d28dfa2d42
ac3dec: fix outptr increment.
...
Fixes decoding regression
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-17 01:35:14 +01:00
Justin Ruggles
f322b20735
lavr: only save/restore the mixing matrix if mixing is being done
2012-12-16 19:26:17 -05:00
Justin Ruggles
f1c2915ce1
lavr: remove automatic context close/open for resampling compensation
...
It adds unnecessary complication for insignificant usability improvement.
The user really should know if they'll need resampling compensation before
opening the context.
Note that only the documentation has changed. The current functionality will
still work until the next major bump.
2012-12-16 19:26:17 -05:00
Michael Niedermayer
7973a07590
h264: Improve first slice and slice type checks
...
This prevents a null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-17 01:08:19 +01:00
Michael Niedermayer
55b243cade
doc/examples/resampling_audio.c: fix path
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-16 21:37:23 +01:00
Clément Bœsch
0212c1c43d
swr/doxy: fix missing quote in code example.
2012-12-16 21:04:54 +01:00
Clément Bœsch
9ad6b13020
lavu/pixdesc: fix a const qualifier discarding warning.
2012-12-16 20:41:28 +01:00
Clément Bœsch
7fb49639e6
lavu: make sure av_pix_fmt_desc_next returns a valid pix fmt.
...
This is required because there are some "holes" in the list for
compatibility with the fork.
The commit also removes the now unecessary check from cmdutils.
Found-by: wm4
2012-12-16 20:39:39 +01:00
Martin Storsjö
e798085f96
rtpdec_vp8: Cosmetics: Fix bad alignment/indentation
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-16 21:33:20 +02:00
Martin Storsjö
3b2e8d1d21
rtpenc: Allow including a SDES/CNAME block in RTCP SR packets
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-16 21:32:58 +02:00
Martin Storsjö
65e053271a
rtpenc_vp8: Include the picture number in VP8 packets
...
This makes it easier for receivers to decide what to do if data
is lost.
Refactor calculating the max payload size, to avoid hardcoding the
header size in too many places, reducing the number of lines that
have to be touched if the header is adjusted further.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-16 21:32:13 +02:00
Piotr Bandurski
cb8163d0bd
bfi: set duration
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-16 16:53:01 +01:00
Michael Niedermayer
de89dff8da
brstm: ask for samples for version != 1.0
...
This also avoids 2 unused variable warnings.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-16 15:05:31 +01:00
Michael Niedermayer
633ae5a210
mjpegenc: fix 444 block count so it is below 10
...
Fixes Ticket1990
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-16 15:05:31 +01:00
Paul B Mahol
5be38f9421
brstm: add missing new line to request for sample messages
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-16 13:04:17 +00:00
Michael Niedermayer
5b09c3407e
doc/filters: fix "Dolby Pro Logic II" option name
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-16 13:24:59 +01:00
Michael Niedermayer
efb4f96a7a
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
h264: fix memleak on error during SPS parsing
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-16 13:21:42 +01:00
Stefano Sabatini
94877aad57
lavfi/crop: free x and y parsed expression objects
...
Fix leak introduced in 1e5492ffe6 .
2012-12-16 13:16:47 +01:00
Michael Niedermayer
dde4832b64
Merge commit '27c8337e595a058347150269d5c2c48281e4285b'
...
* commit '27c8337e595a058347150269d5c2c48281e4285b':
h264-mt: handle NAL_DPAs before calling ff_thread_finish_setup
lavr: move AudioMix struct definition to audio_mix.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-16 13:09:30 +01:00
Paul B Mahol
1081d78746
build: fix idf demuxer dependency
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-16 12:00:23 +00:00
Paul B Mahol
f4fe4fa89f
Remove 8SVX_RAW on next lavc mayor bump
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-16 11:40:26 +00:00
Piotr Bandurski
5648069270
aiff: support in24/in32 tags
...
Supported by QuickTime, libaudiofile and Csound.
2012-12-16 10:41:00 +00:00
James Almer
7959c26fb0
brstm: fix number of samples for the last block
...
Signed-off-by: James Almer <jamrial@gmail.com >
2012-12-16 10:34:33 +00:00
Piotr Bandurski
d0bdcbcb28
thp: set duration
2012-12-16 10:27:54 +00:00
Stefano Sabatini
013b700771
ffplay: provide some feedback in case the codec cannot be set
2012-12-16 10:58:02 +01:00
Stefano Sabatini
1cbb11cda7
ffplay: set codec_id in codec context
...
Set codec id in case another codec is forced on the context (e.g. when
the user specify the codec with -codec).
For example fix:
ffplay -vcodec pgmyuv -i "tests/vsynth1/%02d.pgm"
2012-12-16 10:58:02 +01:00
Stefano Sabatini
cb0f97b59d
ffplay: improve robustness of opt_codec(), and add options acodec,vcodec,scodec
...
Fail with a meaningfull error message in case of bogus input.
Also the new options are more consistent with the rest of the tool
options, since it does not support generic stream specifiers.
2012-12-16 10:57:50 +01:00
Michael Niedermayer
718eab527b
ffmpeg: Improve filter input fps selection heuristic.
...
This fixes a broken file that has a incorrect timebase at the codec level.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-16 05:21:29 +01:00
Michael Niedermayer
1e901ffc61
wrap_timestamp: remove unneeded check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-16 01:07:53 +01:00
Michael Niedermayer
1662bd350a
lavf: fix integer overflows
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-16 01:05:36 +01:00
Michael Niedermayer
d7599bd8e2
h264: dont mess with frame gaps on second fields.
...
Fixes assertion failure
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-16 00:28:36 +01:00
Peter Ross
c16f768d73
ffmpeg: replace magic number with VSYNC_CFR
2012-12-16 09:48:54 +11:00
Harald Axmann
2d74dea84f
lavf: Provide a monotonic timestamp to the outside world
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-15 21:28:45 +01:00
Piotr Bandurski
388241efa2
mpegvideo_enc/rv20: width and height must be multiple of 4
...
RealPlayer does not play rv20 files when sizes are not multiple of 4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-15 21:28:45 +01:00
Stefano Sabatini
0ebf85774b
doc/filters: remove @example use for showing syntax
...
I forgot to merge with the previous commit.
2012-12-15 21:02:30 +01:00
Stefano Sabatini
a871b5cc98
doc/filters: extend syntax description for transpose, and add examples
2012-12-15 20:56:14 +01:00
Stefano Sabatini
6722f35dd3
doc/filters: add basic crop examples
...
Use it to show difference between shorthand and named parameters.
2012-12-15 20:48:42 +01:00
Stefano Sabatini
55b81528a9
doc/filters: itemize crop examples
2012-12-15 20:48:36 +01:00
Stefano Sabatini
1e5492ffe6
lavfi/crop: add support to option parsing
...
Also fix documentation accordingly.
2012-12-15 20:48:20 +01:00
Janne Grunau
a421bbfe83
h264: fix memleak on error during SPS parsing
...
Introduced in d7d6efe42b .
2012-12-15 19:16:39 +01:00
Janne Grunau
27c8337e59
h264-mt: handle NAL_DPAs before calling ff_thread_finish_setup
...
Since a NAL_DPA can start a new frame it has to be handled before
ff_thread_finish_setup is called.
2012-12-15 19:06:37 +01:00
Justin Ruggles
230acdde26
lavr: move AudioMix struct definition to audio_mix.c
2012-12-15 12:26:15 -05:00
Michael Niedermayer
2b643855e0
dirac_parser: check prev_pu_offset before using it
...
Fixes out of array read
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-15 16:04:49 +01:00
Piotr Bandurski
fef75ef200
mpegvideo_enc/rv10: width and hieghtmust be multiple of 16
...
RealPlayer does not play correctly rv10 files when sizes are not multiple of 16
"RealVideo Encoder 1.0 supports any size image that is a multiple of sixteen pixels."
Reviewed-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-15 16:04:49 +01:00
rogerdpack
fe3e0e486e
lavd/dshow: rename dshow class name
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com >
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2012-12-15 15:46:20 +01:00
Michael Niedermayer
ac6cb666d9
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
vp56: release frames on error
Conflicts:
libavcodec/vp56.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-15 14:18:13 +01:00
Stefano Sabatini
54b0c04ae3
lavfi/overlay: clarify/fix comment, add a few empty lines to ease readability
2012-12-15 14:08:42 +01:00
Stefano Sabatini
3d1e2ada25
lavfi/overlay: remove duplicated definition of ff_null_get_video_buffer()
...
Simplify.
2012-12-15 13:51:24 +01:00
Stefano Sabatini
8f44170d30
lavfi/avfilter.h: clarify doxy for AVFilterLink.out_buf
2012-12-15 13:51:24 +01:00
Michael Niedermayer
f186ecc164
Merge commit 'bb675d3ac6d722d5e117ae9042a996b55ca05b1d'
...
* commit 'bb675d3ac6d722d5e117ae9042a996b55ca05b1d':
vp56: make parse_header return standard error codes
Conflicts:
libavcodec/vp56.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-15 13:41:06 +01:00
Michael Niedermayer
75b7e543df
fate: update fate for 1a490df12f
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-15 12:41:24 +01:00
Stefano Sabatini
33ab9ebd09
doc/APIchanges: fill empty git commit hashes and dates
2012-12-15 11:46:47 +01:00
Stefano Sabatini
1a490df12f
ffprobe: show pkt_size in frame
...
Fix trac ticket #2027 .
2012-12-15 11:46:47 +01:00
Stefano Sabatini
96d815fc0c
lavc: add pkt_size field to AVFrame
2012-12-15 11:46:30 +01:00
Jean First
a8b3f0c5cf
fate: check if rsync has the contimeout option
...
rsync on osx misses the --contimeout option
Signed-off-by: Jean First <jeanfirst@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-15 01:33:19 +01:00
Michael Niedermayer
b6671787db
flashsv2_prime: check block before using it.
...
Fixes null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-15 00:19:52 +01:00
Michael Niedermayer
02d6d05339
dcadec: check xch_base_channel against channel_order_tab.
...
Fix null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 23:37:44 +01:00
Michael Niedermayer
51fcf276f8
mp3on4: fix null pointer dereference
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 21:50:43 +01:00
Michael Niedermayer
a99c273a3f
dnxhddec: fix CID changed check.
...
Fixes Null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 20:58:01 +01:00
Michael Niedermayer
e095c4ea6d
fate: update asyncts reference
...
We cannot update the existing file because this would break
ffmpeg 1.0, which uses it
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 19:02:39 +01:00
Stefano Sabatini
ecebf6fc82
lavf/segment: provide more debug feedback when a new segment starts
2012-12-14 18:19:47 +01:00
Stefano Sabatini
df5f9496e6
lavf/segment: add missing flags to segmenter option constants
2012-12-14 18:19:47 +01:00
Michael Niedermayer
6ca2465556
ass_split_section: dont overread array
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 18:10:35 +01:00
Michael Niedermayer
b2c2589ecf
westwood_vqa: fix null pointer dereference
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 17:55:57 +01:00
Michael Niedermayer
3c5c6b9d61
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
ivi_common: check that scan pattern is set before using it.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 16:05:12 +01:00
Michael Niedermayer
be26232efa
Merge commit '07acdd651d1e2f4cfa5f610e616e70e323bb69cd'
...
* commit '07acdd651d1e2f4cfa5f610e616e70e323bb69cd':
ivi_common: use proper logging context in ivi_decode_blocks().
ivi_common: make some functions and tables static.
asyncts: ignore min_delta only if first_pts is set
Conflicts:
libavcodec/ivi_common.c
libavcodec/ivi_common.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 15:56:56 +01:00
Michael Niedermayer
a01fe55077
Merge commit 'c0dc57f1264dad1e121772d03abdb9e14ed8857f'
...
* commit 'c0dc57f1264dad1e121772d03abdb9e14ed8857f':
asyncts: merge two conditions
x86inc: fully concatenate tokens to fix macro expansion for nasm
h264: initialize frame-mt context copies properly
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 15:43:46 +01:00
Michael Niedermayer
2f265d9087
Merge commit '6a27ae28f9bde981e85c82cf5bf42c5f43fb6f13'
...
* commit '6a27ae28f9bde981e85c82cf5bf42c5f43fb6f13':
mpegvideo: treat delayed pictures as used
Conflicts:
libavcodec/h264.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 15:36:37 +01:00
Michael Niedermayer
86b4dc6277
Merge commit 'bd255f9feb4deea4c990e582f0ba3b90d7b64b4c'
...
* commit 'bd255f9feb4deea4c990e582f0ba3b90d7b64b4c':
lavc: set frame parameters after decoding only if necessary
Conflicts:
libavcodec/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 15:30:12 +01:00
Michael Niedermayer
3b5c0f5e36
h264: remove low_delay/has_b_frame setting code from nal loop
...
This code is now executed in h264_set_parameter_from_sps()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 15:22:19 +01:00
Michael Niedermayer
b9d887c225
Merge commit '072be3e8969f24113d599444be4d6a0ed04a6602'
...
* commit '072be3e8969f24113d599444be4d6a0ed04a6602':
h264: set parameters from SPS whenever it changes
asyncts: cosmetics: reindent
Conflicts:
libavcodec/h264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 15:17:51 +01:00
Michael Niedermayer
b6e7041f90
Merge commit 'b35e5d985dd12acf9a0aaa52334134edcf35d68e'
...
* commit 'b35e5d985dd12acf9a0aaa52334134edcf35d68e':
doc: improve documentation for the asyncts filter first_pts option
asyncts: fix the asyncts behavior when using the first_pts option
Conflicts:
libavfilter/af_asyncts.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 13:58:12 +01:00
Michael Niedermayer
593f5c0f3c
Merge commit '8083332c2de9ee189f96844ff4c2d9be1844116f'
...
* commit '8083332c2de9ee189f96844ff4c2d9be1844116f':
asyncts: use clipped delta value when setting resample compensation
asyncts: fix flushing of final samples at EOF
vp6: properly fail on unsupported feature
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 13:51:20 +01:00
Luca Barbato
f33b5ba63e
vp56: release frames on error
...
Fixes CVE-2012-2783
CC: libav-stable@libav.org
2012-12-14 13:21:59 +01:00
Luca Barbato
bb675d3ac6
vp56: make parse_header return standard error codes
...
Returning 0 for failure is misleading.
CC: libav-stable@libav.org
2012-12-14 13:21:59 +01:00
Anton Khirnov
deabb52ab4
ivi_common: check that scan pattern is set before using it.
...
Fixes CVE-2012-2791.
CC: libav-stable@libav.org
2012-12-14 07:10:53 +01:00
Anton Khirnov
07acdd651d
ivi_common: use proper logging context in ivi_decode_blocks().
2012-12-14 07:10:48 +01:00
Anton Khirnov
8ab42021f2
ivi_common: make some functions and tables static.
2012-12-14 07:08:38 +01:00
Peter Ross
5c78a8129c
sauce: test filetype correctly for datatype 5 (binary text)
2012-12-14 16:46:29 +11:00
Michael Niedermayer
58f30175e1
mem: minor simplification of the alignment hack code
...
Idea-by: wanzhang
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 05:36:22 +01:00
Michael Niedermayer
d18706244f
audioconvert/arm: require alignment of 16
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 04:49:09 +01:00
Michael Niedermayer
ceb9f8d927
audioconvert: support simd code with specific alignment requirements.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 04:47:17 +01:00
Michael Niedermayer
a286b04daf
configure/arm: print if thumb mode is enabled
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 02:37:32 +01:00
Michael Niedermayer
a974adc3c7
g729dec: check pitch_delay_int.
...
Fix out of array read
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 01:13:21 +01:00
Justin Ruggles
c0dc57f126
asyncts: merge two conditions
2012-12-13 18:51:56 -05:00
Justin Ruggles
4e5a8878d5
asyncts: ignore min_delta only if first_pts is set
2012-12-13 18:51:56 -05:00
Michael Niedermayer
56d09250ef
nuv: dont try to copy an empty frame
...
Fixes assertion failure
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-14 00:31:18 +01:00
Janne Grunau
0995ad8db4
x86inc: fully concatenate tokens to fix macro expansion for nasm
...
Fixes build errors with nasm introduced in 6f40e9f070 for stack
memory alignment. Noticed by BugMaster.
2012-12-13 23:57:09 +01:00
Björn Axelsson
2947e7b7a7
flvenc: don't write random data if seek fails
...
The FLV muxer tries to update the header in write_trailer, which is
impossible if writing to a pipe or network stream. Don't write header
data if seek to header fails.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 21:54:35 +01:00
Michael Niedermayer
0aa0bab40d
docs: -asyncts has been replaced by aresample not asyncts in ffmpeg
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 21:54:35 +01:00
Stefano Sabatini
ddf6131a0a
lavf/segment: add segment_start_number option
...
Consistent with the image2 muxer.
2012-12-13 21:38:43 +01:00
Stefano Sabatini
d93d03a492
lavf/segment: add function set_segment_filename()
...
Factorize.
2012-12-13 21:05:07 +01:00
Janne Grunau
6a27ae28f9
mpegvideo: treat delayed pictures as used
...
This requires to move the avcodec_default_free_buffers() call to
ff_MPV_common_end() since otherwise delayed pictures would get freed
during a size change.
2012-12-13 21:02:42 +01:00
Janne Grunau
bd255f9feb
lavc: set frame parameters after decoding only if necessary
...
Direct rendering capable decoders call get_buffer() which will set the
frame parameters.
Prevents frames with wrong parameters when a decoder outputs delayed
frames after a resolution or pixel format change.
2012-12-13 21:02:42 +01:00
Janne Grunau
072be3e896
h264: set parameters from SPS whenever it changes
...
Fixes a crash in the fuzzed sample sample_varPAR.avi_s26638 with
alternating bit depths.
2012-12-13 21:02:42 +01:00
Janne Grunau
0eae920c3c
h264: initialize frame-mt context copies properly
2012-12-13 21:02:42 +01:00
Justin Ruggles
b35e5d985d
doc: improve documentation for the asyncts filter first_pts option
...
Note the time base for the option. Add an additional example description.
2012-12-13 13:02:21 -05:00
Justin Ruggles
8083332c2d
asyncts: use clipped delta value when setting resample compensation
...
The max_comp option is supposed to limit maximum compensation, but
currently the clipped value is not actually used.
2012-12-13 13:02:21 -05:00
Justin Ruggles
0ee440fe38
asyncts: cosmetics: reindent
2012-12-13 13:02:21 -05:00
Justin Ruggles
c143de40c3
asyncts: fix the asyncts behavior when using the first_pts option
...
Currently it will do padding, but it does not properly handle
start-of-stream trimming as documented.
2012-12-13 13:02:21 -05:00
Justin Ruggles
f266486b2e
asyncts: fix flushing of final samples at EOF
2012-12-13 13:02:21 -05:00
Michael Niedermayer
616e6ffac6
aresample: increase n_out buffer size a bit to reduce delay in some corner cases
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 18:17:48 +01:00
Michael Niedermayer
7726916c14
mpegts: check av_new_stream() return value.
...
Fixes CID703728
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 17:46:17 +01:00
Luca Barbato
be75fed975
vp6: properly fail on unsupported feature
...
Interlacing is not supported at all and mismanaged down the normal
codepaths causing possible buffer management issues.
CC: libav-stable@libav.org
2012-12-13 17:05:45 +01:00
Michael Niedermayer
0ea4742341
qt-faststart: Check offset_count
...
Fixes CID733836
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 15:07:20 +01:00
Michael Niedermayer
eee8c94f50
cavsdec: check ff_get_buffer() return value
...
Fixes CID747721
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 14:32:58 +01:00
Michael Niedermayer
5cb080fa5e
snowenc: check ff_get_buffer() return value
...
Fixes CID747722
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 14:26:03 +01:00
Michael Niedermayer
7effc26ba7
svq1enc: check ff_get_buffer() return value
...
Fixes CID747723
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 14:20:24 +01:00
Michael Niedermayer
1818a1130d
alsdec: propagate error codes in read_block()
...
Reviewed-by: Thilo Borgmann <thilo.borgmann@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 13:59:15 +01:00
Michael Niedermayer
0213d5ad86
alsdec: make return checking for read_*_block_data() consistent
...
Reviewed-by: Thilo Borgmann <thilo.borgmann@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 13:59:11 +01:00
Michael Niedermayer
79bfba14b7
alsdec: Use AVERROR_INVALIDDATA in read_const_block_data
...
Reviewed-by: Thilo Borgmann <thilo.borgmann@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 13:58:52 +01:00
Nedeljko Babic
d7117138cf
mips: ac3 downmix updated to the new data layout.
...
Signed-off-by: Nedeljko Babic <nbabic@mips.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 13:51:05 +01:00
Nicolas George
2dbc84b1a8
lavf/matroskaenc: check for overflow in display width.
2012-12-13 12:45:07 +01:00
Michael Niedermayer
7897919a88
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
aacdec: Fix an off-by-one overwrite when switching to LTP profile from MAIN.
x86inc: fix stack alignment on win64
rtpproto: Remove unused defines
Conflicts:
libavcodec/aacdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 12:23:48 +01:00
Michael Niedermayer
2e5e2bf935
Merge commit 'f3f60dcbdd6ff2201526a603fe28293975bb7667'
...
* commit 'f3f60dcbdd6ff2201526a603fe28293975bb7667':
rtpdec_mpeg4: Cosmetic cleanup
rtpdec: Cosmetic cleanup of the header
rtpdec: Get rid of a useless _s suffix on a struct name
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 12:18:12 +01:00
Michael Niedermayer
de7c95d551
Merge commit '7941159df6aad2d219e2a7184489be7a735dd944'
...
* commit '7941159df6aad2d219e2a7184489be7a735dd944':
rtpdec/enc: Remove outdated/useless/misleading comments
rtpdec: Improve some comments
rtpdec: Remove unused context variables
rtpdec: Limit writing to the buffer size
svq1: Fix building with -DDEBUG
svq1: return meaningful error codes.
Conflicts:
libavcodec/svq1dec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 12:06:19 +01:00
Michael Niedermayer
9c0ec23c7d
Merge commit '998fdcff41bbda8ef13c991743376556f910efa9'
...
* commit '998fdcff41bbda8ef13c991743376556f910efa9':
lavc: replace some forgotten instances of PixelFormat with AVPixelFormat
svq1: unmacroify macros used only once.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 11:53:15 +01:00
Michael Niedermayer
e7f255d89b
Merge commit '95baf701db719ecad6b31000429e20eca2526ed6'
...
* commit '95baf701db719ecad6b31000429e20eca2526ed6':
svq1: deMpegEncContextize
Conflicts:
libavcodec/svq1dec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 11:49:12 +01:00
Michael Niedermayer
db6e960450
lavfi: drop ff_null_start_frame/end_frame/draw_slice.
...
The functions have become unused
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-13 03:38:16 +01:00
Stefano Sabatini
43912625e0
lavfi/select: assign NAN to ignored values
...
Also log scene value. Improve debugging.
2012-12-13 00:18:49 +01:00
Stefano Sabatini
6ba1f28008
lavfi/select: add support to options
...
Add options introspection, and improve error feedback.
2012-12-13 00:16:30 +01:00
Stefano Sabatini
c214cd18e2
lavfi/select: in select_frame(), rename picref -> ref
...
The variable is now used also for audio frames.
2012-12-13 00:12:55 +01:00
Stefano Sabatini
e7a0b2e054
doc/filters: itemize select/aselect examples
...
Improve rendering.
2012-12-13 00:11:20 +01:00
Stefano Sabatini
c51f090ff9
lavfi: mv vf_select.c -> f_select.c
...
The file now contains also an audio select implementation. Also move the
aselect/select documentation from video filters to the multimedia filters
section.
2012-12-13 00:10:43 +01:00
Stefano Sabatini
f5461face5
lavfi: add aselect audio variant of select
2012-12-13 00:10:24 +01:00
Stefano Sabatini
64c5fbd7de
lavfi/select: remove deprecated and unused poll_frame() callback
...
Simplify.
2012-12-13 00:03:50 +01:00
Alex Converse
6d5b009267
aacdec: Fix an off-by-one overwrite when switching to LTP profile from MAIN.
...
Found-by: pawlkt
CC: libav-stable@libav.org
2012-12-12 13:22:10 -08:00
Nicolas George
26db6535fc
lavf/matroskaenc: use integers to for display size.
...
Avoid rounding differences between x86_32 and x86_64.
Fix trac ticket #1997 .
2012-12-12 20:59:34 +01:00
Ronald S. Bultje
140367aff9
x86inc: fix stack alignment on win64
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-12 21:30:49 +02:00
Michael Niedermayer
a01679586c
mpeg1video: fix regression with slices != threads
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 20:12:11 +01:00
Michael Niedermayer
03df972016
mpeg1video: support multi threaded slice encoding.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 19:29:32 +01:00
Michael Niedermayer
f18c873ab5
adpcm: fix off by 1 error and out of array access in DK4
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 17:46:05 +01:00
Michael Niedermayer
03b9d4a7dc
msmpeg4dec: fix coeff index
...
Fixes assertion failure
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 17:46:05 +01:00
Michael Niedermayer
028cc42a16
read_gab2_sub: fix null pointer dereference
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 17:46:05 +01:00
Michael Niedermayer
02b238186a
avfilter_get_audio_buffer_ref_from_frame: check that layout and channels match if they are set
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 17:46:05 +01:00
Nicolas George
0f236345fb
ffmpeg: sub2video: use start and end time.
...
Until now, the end_display_time was ignored, making single
packets subtitles (like dvdsub) stay indefinitely.
start_display_time was also ignored, but is it almost always 0.
2012-12-12 15:05:50 +01:00
Martin Storsjö
29d2595ad7
rtpproto: Remove unused defines
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-12 16:01:24 +02:00
Michael Niedermayer
e69e780cde
ff_copy_buffer_ref: use the channel count
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 14:12:47 +01:00
Michael Niedermayer
5a4eb6aa27
avfilter_get_video_buffer_ref_from_frame: check channel count
...
more than 8 channels is not supported and crashes with null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 14:12:47 +01:00
Michael Niedermayer
0ceca269b6
alsdec: check block length
...
Fix writing over the end
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 14:12:47 +01:00
Nicolas George
16c3cb9bbf
lavf/concatdec: avoid leaking URLs.
...
Use av_realloc instead of av_realloc_f to keep the original
array in case of failure: it is freed in full by the fail label.
2012-12-12 12:15:57 +01:00
Michael Niedermayer
75b3911e5a
mxf_set_audio_pts: fix division by 0
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 11:35:47 +01:00
Michael Niedermayer
a0f659b275
oggspeexparse: fix array overread
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 11:21:23 +01:00
Martin Storsjö
f3f60dcbdd
rtpdec_mpeg4: Cosmetic cleanup
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-12 12:18:50 +02:00
Martin Storsjö
584a017925
rtpdec: Cosmetic cleanup of the header
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-12 12:18:44 +02:00
Martin Storsjö
abf74a1169
rtpdec: Get rid of a useless _s suffix on a struct name
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-12 12:18:38 +02:00
Martin Storsjö
7941159df6
rtpdec/enc: Remove outdated/useless/misleading comments
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-12 12:18:33 +02:00
Martin Storsjö
d6ec745246
rtpdec: Improve some comments
...
The previous comment about the buffer was wildly inaccurate and
misleading.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-12 12:18:28 +02:00
Martin Storsjö
e66d448c75
rtpdec: Remove unused context variables
...
These stem from back when both the rtp muxer and rtp depacketizing
shared the same struct.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-12 12:18:22 +02:00
Martin Storsjö
81ef519252
rtpdec: Limit writing to the buffer size
...
This fixes potential buffer overwrites.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-12 12:18:16 +02:00
Martin Storsjö
48238fd00b
svq1: Fix building with -DDEBUG
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-12 12:17:52 +02:00
Michael Niedermayer
12fcc626d6
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavr: fix segfault due to overlooked change needed in 14758e3
x86inc: support stack mem allocation and re-alignment in PROLOGUE
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 10:50:21 +01:00
Ronald S. Bultje
ce58642ed0
x86inc: support stack mem allocation and re-alignment in PROLOGUE.
...
Use this in VP8/H264-8bit loopfilter functions so they can be used if
there is no aligned stack (e.g. MSVC 32bit or ICC 10.x).
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 10:37:52 +01:00
Michael Niedermayer
82c0211213
Merge commit '14758e3211d34a97c42b07acae117ce5627d7f57'
...
* commit '14758e3211d34a97c42b07acae117ce5627d7f57':
lavr: temporarily store custom matrix in AVAudioResampleContext
lavr: clarify documentation for avresample_get/set_matrix()
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 10:31:56 +01:00
Michael Niedermayer
8dbc384f15
Merge commit 'd04c17c91363a6b15d1ac2d79c817f3d5e2998b3'
...
* commit 'd04c17c91363a6b15d1ac2d79c817f3d5e2998b3':
swfdec: cosmetics: fix indentation
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 10:16:23 +01:00
Michael Niedermayer
d276f28b7d
swfdec: print warning when len is cliped
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 10:14:06 +01:00
Carl Eugen Hoyos
31f9cf38f0
Fix frame-rate documentation.
2012-12-12 10:08:43 +01:00
Anton Khirnov
c4182d72c9
svq1: return meaningful error codes.
2012-12-12 10:00:08 +01:00
Anton Khirnov
998fdcff41
lavc: replace some forgotten instances of PixelFormat with AVPixelFormat
2012-12-12 09:59:58 +01:00
Anton Khirnov
84a0806680
svq1: unmacroify macros used only once.
2012-12-12 09:59:41 +01:00
Anton Khirnov
95baf701db
svq1: deMpegEncContextize
...
This decoder is quite simple and none of the MpegEncContext complexity
is actually needed.
2012-12-12 09:57:21 +01:00
Michael Niedermayer
be5389d585
Merge commit 'e70c5b034c4787377e82cab2d5565486baec0c2a'
...
* commit 'e70c5b034c4787377e82cab2d5565486baec0c2a':
swfdec: do better validation of tag length
Make LOCAL_ALIGNED syntactically similar on all systems
Conflicts:
libavformat/swfdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 09:55:56 +01:00
Justin Ruggles
42b5688d5e
lavr: fix segfault due to overlooked change needed in 14758e3
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2012-12-12 09:09:00 +01:00
Ronald S. Bultje
6f40e9f070
x86inc: support stack mem allocation and re-alignment in PROLOGUE
...
Use this in VP8/H264-8bit loopfilter functions so they can be used if
there is no aligned stack (e.g. MSVC 32bit or ICC 10.x).
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2012-12-12 05:23:46 +01:00
Clément Bœsch
9138f6da4a
lavfi/showinfo: check plane count before dereferencing.
2012-12-12 02:55:10 +01:00
Michael Niedermayer
2fb240ddb6
ac3dec: fix out of array read
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 01:22:09 +01:00
Michael Niedermayer
a202541f9b
cafdec: Check duration before use.
...
Fix division by 0
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 01:22:09 +01:00
Michael Niedermayer
99a8552dae
bfi: fix division by 0
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 01:22:09 +01:00
Michael Niedermayer
1cf7b61fb2
Changelog: update for soxr
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-12 01:22:09 +01:00
Stefano Sabatini
803af8101f
doc/ffmpeg: fix/extend documentation for -copyts
2012-12-12 00:36:04 +01:00
Rob Sykes
801b315729
swr: Add SOX resampler support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 22:04:00 +01:00
Rob Sykes
41049d07f2
swr: add a lowpass default so that each Resampler can have its own default.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 22:04:00 +01:00
Michael Niedermayer
ae5a55e77a
swr: move flush into Resampler
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 22:04:00 +01:00
Michael Niedermayer
431dcc49d2
swr: make realloc_audio() available outside swresample.c
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 22:04:00 +01:00
Rob Sykes
5a5d70748c
swr: Add API to make resample engine selectable.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 22:04:00 +01:00
Michael Niedermayer
e8e575633f
lavc/utils: Do not require dimensions for PNG.
...
pngenc doesnt need them and mplayer doesnt set them.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 22:04:00 +01:00
Stefano Sabatini
bbc8f0cd9b
doc/filters: fix grammar mistake in setfield documentation
...
Spotted-by: Tim Nicholson <nichot20@yahoo.com >
2012-12-11 21:52:26 +01:00
Justin Ruggles
14758e3211
lavr: temporarily store custom matrix in AVAudioResampleContext
...
This allows AudioMix to be treated the same way as other conversion contexts
and removes the requirement to allocate it at the same time as the
AVAudioResampleContext.
The current matrix get/set functions are split between the public interface
and AudioMix private functions.
2012-12-11 14:00:32 -05:00
Justin Ruggles
887d4c05c9
lavr: clarify documentation for avresample_get/set_matrix()
2012-12-11 14:00:32 -05:00
Clément Bœsch
4b4f16cdc0
lavfi/fps: remove parse opt error message.
...
See cc650cf0 for more info.
2012-12-11 18:14:08 +01:00
Clément Bœsch
b2f2321cec
doc/filters: extend fps documentation.
2012-12-11 18:12:26 +01:00
Clément Bœsch
0e0e3db189
lavfi/fps: add shorthand.
2012-12-11 18:12:11 +01:00
Michael Niedermayer
7d05bbb656
mxfdec: drop unneeded extradata padding
...
Found-by: Tomas Härdin <tomas.hardin@codemill.se >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 16:40:28 +01:00
Justin Ruggles
d04c17c913
swfdec: cosmetics: fix indentation
2012-12-11 09:37:17 -05:00
Justin Ruggles
e70c5b034c
swfdec: do better validation of tag length
...
Avoids trying to read a packet with 0 or negative size.
Avoids a potential infinite loop due to seeking backwards.
Partially based on a patch by Michael Niedermayer.
2012-12-11 09:36:26 -05:00
Michael Niedermayer
b65570808c
mxfdec: fix leak of extradata
...
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 14:43:47 +01:00
Mans Rullgard
02823f6d71
Make LOCAL_ALIGNED syntactically similar on all systems
...
This changes the LOCAL_ALIGNED definition on systems where
DECLARE_ALIGNED is used so it matches the manual alignment
case, ensuring invalid use will not compile on x86 only to
fail on everything else.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-11 11:59:15 +00:00
Michael Niedermayer
9e28c7ef64
filters.texi: document more aresample options
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 12:50:34 +01:00
Michael Niedermayer
7dee5f04ac
svq3: fix cast type to be independant of "sizeof(int)"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 12:50:34 +01:00
Paul B Mahol
17d5746d96
build: fix dca encoder dependencies
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-11 11:46:22 +00:00
Paul B Mahol
2375139007
fate: add BRSTM demuxer test
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-11 11:34:47 +00:00
Peter Ross
7016aa655b
iff decoder: support RGB8 and RGBN
2012-12-11 20:17:30 +11:00
Peter Ross
53ae32d331
iff demuxer: support RGB8 and RGBN
2012-12-11 20:17:30 +11:00
Michael Niedermayer
67c1b5b026
lavf: remove unneeded pb check
...
Fixes CID747727
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 09:34:47 +01:00
Michael Niedermayer
b688a28470
astenc: fix assignment vs compare
...
Fixes CID747736
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 08:56:42 +01:00
Michael Niedermayer
a70b38d2dd
lavf: fix memleak
...
Fixes CID747738
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 08:51:34 +01:00
Michael Niedermayer
9696ad6a76
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
build: fix 'clean' target
ZeroCodec: Flip output
Conflicts:
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 08:24:45 +01:00
Clément Bœsch
fd3cdcaf5f
lavfi: remove mp=denoise3d filter.
...
hqdn3d was meant to be a more efficient denoise3d filter, is supported
natively, and is faster on my computer thanks to the ASM optimisations.
2012-12-11 04:28:08 +01:00
Clément Bœsch
80e5c51d73
doc: fix a -map syntax in one command line example.
2012-12-11 03:57:33 +01:00
Clément Bœsch
7eafd274d8
build: fix prores decoder dependencies.
...
According to lavc/proresdsp.c, both prores and prores-lgpl decoders need
lavc/x86/proresdsp_init.c:ff_proresdsp_x86_init().
2012-12-11 02:54:55 +01:00
Clément Bœsch
18d9398143
doxy: add ref for lavfi, lpp and lsws.
2012-12-11 02:13:43 +01:00
Michael Niedermayer
5595e7a102
doxy: fix swr group name
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 01:53:18 +01:00
Carl Eugen Hoyos
71b1912963
Print bpc (for bits per component) with pixel format if it is smaller than expected.
2012-12-11 01:26:32 +01:00
Stefano Sabatini
8e9056559e
lavf/segment: add reset_timestamps option
...
The new options reset the timestamps at each new segment, so that the
generated segments will have timestamps starting close to 0.
It is meant to address trac ticket #1425 .
2012-12-11 00:18:23 +01:00
Michael Niedermayer
22e4988673
opt: fix memleak on error of range_array
...
Fixes CID747739
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 00:03:23 +01:00
Michael Niedermayer
0a60f83075
http: dont null check p, its unneeded
...
Fixes CID747740
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 00:03:23 +01:00
Michael Niedermayer
b11a889055
vf_tinterlace: default of mode switch is impossible, add assert.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-11 00:03:23 +01:00
Michael Niedermayer
e7101a7f3f
libavcodec/x86/mpegvideo: switch to av_assert2
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-10 23:30:16 +01:00
Michael Niedermayer
623184afa2
itu H.263: Fix handling of PB blocks
...
This fixes artifacts in Ticket744
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-10 23:23:27 +01:00
Michael Niedermayer
c3bb3334f6
h264: dont try to allocate scratchpad if linesize is not known
...
Fixes out of array access
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-10 20:52:14 +01:00
Mans Rullgard
395c3feb3b
build: fix 'clean' target
...
This fixes removal of TOOLS as well as HOSTPROGS declared in the
top-level Makefile. The clean target in common.mak needs to be
eval'd since the variables used within are reset for each library.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-10 17:23:53 +00:00
Michael Niedermayer
c73685398d
swfdec: check lens validity
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-10 17:25:44 +01:00
Carl Eugen Hoyos
2ddf7c88d1
ZeroCodec: Flip output
...
The initial testing of the VFW binary codec was flawed,
likely due to an AviSynth bug.
Re-testing using VirtualDub and various professional editing
applications has revealed it should have been flipped.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-12-10 11:19:42 -05:00
Paul B Mahol
a354839bfa
build: update mxf muxer dependencies
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-10 13:59:15 +00:00
Paul B Mahol
d880c34408
lavc: fix typo and avrn build dependencies
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-10 13:49:53 +00:00
Michael Niedermayer
ddbf0702c5
dsputil_mmx: switch to av_assert2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-10 14:41:31 +01:00
Paul B Mahol
4c7515286b
takdec: silence/fix warning for undefined behavior
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-10 12:06:30 +00:00
Michael Niedermayer
4a5289ade3
mips: disable ac3 downmix, until its updated to the new data layout.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-10 12:45:11 +01:00
Michael Niedermayer
6321e02896
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
rtpdec: Remove an outdated todo comment
rtpdec: Rename a static variable to normal naming conventions
sh4: dsputil: remove duplicate of ff_gmc_c()
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-10 12:13:42 +01:00
Peter Ross
f540851ce3
mov: parse @PRM and @PRQ metadata tags
...
These tags describe the product and quicktime library version respectively.
Originate from Adobe Premier, but some other products use them.
2012-12-10 21:12:59 +11:00
Peter Ross
e044cd4123
codec_desc: AV_CODEC_ID_SMPTE_KLV is data
2012-12-10 21:08:09 +11:00
Martin Storsjö
ccb59c106a
rtpdec: Remove an outdated todo comment
...
This comment was added in e309128f , in 2002, and has been brought
along since then more or less unmodified.
The first point of the todo was implemented in dbf30963 in 2006,
the second one is not relevant to rtpdec.c (brought along from
rtp.c in 8eb793c4 in 2008) but would be more relevant to the
rtp muxer, although it isn't a good idea anyway.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-10 11:58:32 +02:00
Martin Storsjö
0d85663a47
rtpdec: Rename a static variable to normal naming conventions
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-10 11:58:25 +02:00
Mans Rullgard
f9e493c6f5
sh4: dsputil: remove duplicate of ff_gmc_c()
...
This function is an exact duplicate of the generic one.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-10 09:53:58 +00:00
Michael Niedermayer
7aabeea9ba
ac3dec: fix bugs in direct buffer use.
...
This fixes potentially exploitable out of array writes.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-10 04:45:30 +01:00
Michael Niedermayer
529d3e0026
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
dsputil: remove unused macro WRAPPER8_16
configure: fix automatic processing of _extralibs in check_deps
libvpxenc: Support forcing keyframes
ac3dec: decode directly into output buffers
Conflicts:
libavcodec/ac3dec.c
libavcodec/libvpxenc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-10 02:16:33 +01:00
Michael Niedermayer
a933698457
Merge commit '30b39164256999efc8d77edc85e2e0b963c24834'
...
* commit '30b39164256999efc8d77edc85e2e0b963c24834':
ac3dec: make downmix() take array of pointers to channel data
Conflicts:
libavcodec/ac3dsp.c
libavcodec/ac3dsp.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-10 02:06:50 +01:00
Michael Niedermayer
b7d8484f27
Merge commit 'b8f3ab8e6a7ce3627764da53b809628c828d4047'
...
* commit 'b8f3ab8e6a7ce3627764da53b809628c828d4047':
ac3dec: output planar float only
svq3: make slice type value unsigned to match svq3_get_ue_golomb return type
configure: Have protocols select network code instead of depending on it
Conflicts:
libavcodec/svq3.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-10 01:32:37 +01:00
Michael Niedermayer
78ac7ee970
Merge commit '5d471b73d20616f5ac701ff62e5de49465cda264'
...
* commit '5d471b73d20616f5ac701ff62e5de49465cda264':
rtpdec: K&R formatting and spelling cosmetics
cosmetics: Fix dropable --> droppable typo
Conflicts:
libavcodec/h264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-10 01:27:10 +01:00
Mans Rullgard
5c75708cf0
configure: fix automatic processing of _extralibs in check_deps
...
This fixes the automatic use of $foo_extralibs when feature foo
is enabled indirectly through a _select or _suggest.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-10 01:23:23 +01:00
Michael Niedermayer
20899c54f0
http/utils: rename "demuxer" to mime_type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-10 01:00:16 +01:00
Michael Niedermayer
cbe43e62c9
ffserver: set oformat
...
Fix Ticket1986
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-09 23:39:06 +01:00
Mans Rullgard
2dd95bd7cf
dsputil: remove unused macro WRAPPER8_16
...
This macro has never been used.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-09 22:21:04 +00:00
Paul B Mahol
cef28b5602
tak: reduce difference with qatar
...
Mostly cosmetics changes, but also makes
decoding little faster here.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-09 22:01:00 +00:00
Mans Rullgard
d4f8cecc86
configure: fix automatic processing of _extralibs in check_deps
...
This fixes the automatic use of $foo_extralibs when feature foo
is enabled indirectly through a _select or _suggest.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-09 21:20:58 +00:00
Stefano Sabatini
461b5bf4ab
lavc/avcodec: extend/clarify/fix documentation for avcodec_fill_audio_frame()
2012-12-09 21:55:46 +01:00
Stefano Sabatini
ad47ac20ae
lavf/segment: remove silly assert(), improve feedback
...
The code should not assert in case of invalid user input. Fails
gracefully instead.
2012-12-09 20:42:35 +01:00
Michael Niedermayer
68bc012190
http/utils: move mime -> demuxer maping from http to utils
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-09 20:24:49 +01:00
Michael Niedermayer
0af7ccd9e2
mpeg12: move current_picture_ptr reset to the end of decode_frame.
...
This fixes passing fields instead of frames into the decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-09 19:49:51 +01:00
Martin Storsjö
774e6fc9ed
libvpxenc: Support forcing keyframes
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-09 20:28:08 +02:00
Michael Niedermayer
e3d95b54db
probe: belive protocol content type if set and avoid lengthly probing.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-09 19:12:34 +01:00
Michael Niedermayer
76d851b656
http: export ICY content type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-09 19:12:34 +01:00
Nicolas George
160013736e
lavf: TED Talks JSON captions demuxer.
2012-12-09 18:50:38 +01:00
Carl Eugen Hoyos
18eb31963b
Improve x264opts description.
2012-12-09 18:24:56 +01:00
Peter Ross
9282fbb9ad
mpegts: demux asynchronous SMPTE 336M Key-Length-Value (KLV) metadata
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-09 17:15:46 +01:00
Michael Niedermayer
3193a5cdbf
arm: put prefetch under matching #ifdef as the actual code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-09 17:14:15 +01:00
Mans Rullgard
30b3916425
ac3dec: make downmix() take array of pointers to channel data
2012-12-09 15:52:01 +00:00
Mans Rullgard
b8f3ab8e6a
ac3dec: output planar float only
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-09 15:52:01 +00:00
Mans Rullgard
ec5da7aee2
ac3dec: decode directly into output buffers
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-09 15:52:01 +00:00
Janne Grunau
288bb3da16
svq3: make slice type value unsigned to match svq3_get_ue_golomb return type
2012-12-09 15:51:45 +01:00
Diego Biurrun
998c1ee10c
configure: Have protocols select network code instead of depending on it
2012-12-09 14:56:12 +01:00
Michael Niedermayer
1374b5e15b
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avio: K&R cosmetic formatting
Conflicts:
libavformat/aviobuf.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-09 14:08:01 +01:00
Michael Niedermayer
e7d924da30
Merge commit '91ac403b1316d59b4f43c4ea0f237e24cec2819a'
...
* commit '91ac403b1316d59b4f43c4ea0f237e24cec2819a':
lavf: fix arithmetic overflows in avformat_seek_file()
mjpeg: initialize input padding after unescaped buffer to zero
Conflicts:
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-09 13:56:46 +01:00
Martin Storsjö
5d471b73d2
rtpdec: K&R formatting and spelling cosmetics
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-12-09 13:36:11 +01:00
Diego Biurrun
ba0c898120
cosmetics: Fix dropable --> droppable typo
2012-12-09 13:36:11 +01:00
Michael Niedermayer
5de1f7a7bd
Merge commit '18e6f087c4a50bede8449ee164778945480be50c'
...
* commit '18e6f087c4a50bede8449ee164778945480be50c':
img2: document the options available
hls: improve options description
hls: use a meaningful long name
hls: add start_number option
h264: check for invalid zeros_left before writing
Conflicts:
doc/demuxers.texi
doc/muxers.texi
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-09 13:35:49 +01:00
Michael Niedermayer
9f92e590ba
mxfdec: fix double free
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-09 11:46:26 +01:00
Carl Eugen Hoyos
66dc3ba356
Flip zerocodec output.
...
Fixes ticket #1218
2012-12-09 10:24:16 +01:00
Luca Barbato
1dd1c1c884
avio: K&R cosmetic formatting
2012-12-09 09:45:45 +01:00
Michael Niedermayer
e8ca7cfa4f
h264: avoid calling idr() twice
...
Fixes rare race condition leading to null pointer dereferences.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-09 06:06:15 +01:00
Clément Bœsch
4c554c967f
lavc/libcelt: add missing internal.h include.
...
This should fix build (include is necessary for ff_get_buffer).
2012-12-09 03:43:03 +01:00
Paul B Mahol
92f630eaf2
add forgotten AV_ prefix to some CODEC_IDs
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-09 01:47:58 +00:00
Piotr Bandurski
7f01247572
tiff: support zlib with invertedFillOrder
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-09 01:00:54 +01:00
Stefano Sabatini
f494647206
lavu/opt: change the way ranges are printed
2012-12-08 22:18:38 +01:00
Ramiro Polla
f2c49da9ac
dshow: fix return code when opening device
...
Successfully opening a device altered the ret variable, making the function
not cleanup properly and return an incorrect value for errors that happened
afterwards.
Reviewed-by: Stefano Sabatini <stefasab@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 21:44:30 +01:00
Mans Rullgard
91ac403b13
lavf: fix arithmetic overflows in avformat_seek_file()
...
The values compared here can be more than INT64_MAX apart. Since the
difference is always positive, converting to uint64_t before subtracting
gives the correct result without overflows.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-08 19:35:16 +00:00
Stefano Sabatini
129d737150
lavu/opt: make av_opt_query_ranges_default() return a meaningful error code
2012-12-08 19:53:03 +01:00
Piotr Bandurski
e5550c0d09
mjpegdec: support more pix_fmt_ids for grayscale
...
samples created with
"cjpeg -grayscale -sample 1x3 / 1x4 / 3x1 / 3x3 / 4x1 / 4x3 / 4x4"
http://www.datafilehost.com/download-d828329d.html
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 19:24:09 +01:00
Stefano Sabatini
0ad654d4c9
lavu/opt: perform misc cosmetical fixes
2012-12-08 19:13:20 +01:00
Stefano Sabatini
642a60f1c2
lavfi/setfield: add support to named options and introspection
2012-12-08 18:26:32 +01:00
Michael Niedermayer
0110108a7c
sbr_hf_gen_sse: Optimize code a bit more.
...
Core I7 (Sandy Bridge) 135 to 107 cycles
Core i5 (Arrandale) 162 to 142 (Thanks to Christophe Gisquet for testing)
Reviewed-by: Christophe Gisquet <christophe.gisquet@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 17:30:11 +01:00
Matthieu Bouron
7f154bd54f
lavfi/setfield: switch to filter_frame API
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2012-12-08 17:19:17 +01:00
Matthieu Bouron
4cd40ef343
lavfi/idet: switch to filter_frame API
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2012-12-08 17:19:17 +01:00
Janne Grunau
6a1aa5cb26
mjpeg: initialize input padding after unescaped buffer to zero
...
Fixes valgrind --undef-value-errors=yes warnings caused by valid
overreads in the fate vsynth jpegls, cover-art-ape and cover-art-wv
tests.
2012-12-08 17:05:45 +01:00
Luca Barbato
18e6f087c4
img2: document the options available
2012-12-08 17:04:23 +01:00
Luca Barbato
3c3a580f93
hls: improve options description
2012-12-08 17:04:23 +01:00
Luca Barbato
adbe03077d
hls: use a meaningful long name
2012-12-08 17:04:22 +01:00
Luca Barbato
5fbceb2c63
hls: add start_number option
2012-12-08 17:04:22 +01:00
Ronald S. Bultje
ddd7559ad9
h264: check for invalid zeros_left before writing
...
Prevent an invalid write into coeffs[scantable[-1]] if zeros_left
itself was an invalid VLC code (and thus -1).
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2012-12-08 17:04:22 +01:00
Michael Niedermayer
5c076205a6
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
golomb: use unsigned arithmetics in svq3_get_ue_golomb()
x86: float_dsp: fix loading of the len parameter on x86-32
takdec: fix initialisation of LOCAL_ALIGNED array
takdec: fix initialisation of LOCAL_ALIGNED array
Conflicts:
libavcodec/rv30.c
libavcodec/svq3.c
libavcodec/takdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 16:36:47 +01:00
Paul B Mahol
1a4250493b
MAINTAINERS: add myself for my works
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-08 15:18:08 +00:00
Stefano Sabatini
5825e9425b
lavfi/version: remove unused dropped symbol
2012-12-08 16:04:09 +01:00
Michael Niedermayer
3a7ef8dc44
Merge commit '57231e4d5b467833fb289439cd35a92513bb55c1'
...
* commit '57231e4d5b467833fb289439cd35a92513bb55c1':
tak: demuxer, parser, and decoder
Not merged as requested by Author and Maintainer of tak in FFmpeg.
I just merged a few typo fixes and minor cosmetic improvments.
Conflicts:
Changelog
libavcodec/Makefile
libavcodec/allcodecs.c
libavcodec/avcodec.h
libavcodec/tak.c
libavcodec/tak.h
libavcodec/tak_parser.c
libavcodec/takdec.c
libavcodec/version.h
libavformat/takdec.c
libavformat/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 15:54:18 +01:00
Stefano Sabatini
64e174e8b8
doc/filters: move volumedetect documentation below volume
2012-12-08 15:41:12 +01:00
Stefano Sabatini
10db70d5e9
lavfi: drop af_volume_stefano.c in favor of af_volume_justin.c
...
Justin's version has more features but is otherwise equivalent from the
point of view of the syntax.
2012-12-08 15:40:07 +01:00
Stefano Sabatini
759e7a237f
doc/filters: fix copy&paste error in volume_justin documentation
...
Spotted by ubitux.
2012-12-08 15:38:20 +01:00
Stefano Sabatini
769546631c
lavfi/volume_justin: add support to option shorthands and introspection
2012-12-08 15:22:55 +01:00
Stefano Sabatini
402ac72bbc
lavfi/volume_justin: fix a few grammar inconsistencies in options description
2012-12-08 15:22:55 +01:00
Clément Bœsch
7f70db3f4f
doc: sync avoid_negative_ts option with internal help.
2012-12-08 15:17:47 +01:00
Michael Niedermayer
57cee85023
Merge commit '096abfa15052977eed93f0b5e01afd2d47c53c1f'
...
* commit '096abfa15052977eed93f0b5e01afd2d47c53c1f':
parser: fix large overreads
bitstream: add get_bits64() to support reading more than 32 bits at once
arm: detect cpu features at runtime on Linux
Conflicts:
libavcodec/parser.c
libavformat/mpegts.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 14:58:56 +01:00
Michael Niedermayer
7efee140d7
get_bits: rename get_bits_longlong to get_bits64
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 14:53:01 +01:00
Michael Niedermayer
b2b12a1022
mpegts: rename get_bits64 to get_ts64
...
Renaming because of name conflict
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 14:52:50 +01:00
Michael Niedermayer
aba1a48cc5
Merge commit 'b326755989b346d0d935e0628e8865f9b2951c30'
...
* commit 'b326755989b346d0d935e0628e8865f9b2951c30':
arm: rename ARMVFP config symbol to VFP
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 14:24:16 +01:00
Michael Niedermayer
89c8eaa321
Merge commit '637606de2d2e0af0a9fa2f23f943765d7d7c5cd5'
...
* commit '637606de2d2e0af0a9fa2f23f943765d7d7c5cd5':
configure: arm: make _inline arch ext symbols depend on inline_asm
arm: use HAVE*_INLINE/EXTERNAL macros for conditional compilation
Conflicts:
configure
libavcodec/arm/dca.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 14:19:55 +01:00
Michael Niedermayer
ee9e7a2e7a
Merge commit '7f2b3dcabd108926bde819ad574017f4161d1546'
...
* commit '7f2b3dcabd108926bde819ad574017f4161d1546':
configure: arm: check inline and external asm support for extensions
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 14:13:58 +01:00
Michael Niedermayer
4f0cf62d5a
Merge commit 'c6ebc9faa2210d7f36a3036c357f6f199520f575'
...
* commit 'c6ebc9faa2210d7f36a3036c357f6f199520f575':
configure: add check_insn function
configure: clean up check_inline_asm and check_as functions
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 14:08:47 +01:00
Michael Niedermayer
fa6bab7857
Merge commit 'f0fe245bc31cf4fa3b3ed0240cd1ab6f0d5043ea'
...
* commit 'f0fe245bc31cf4fa3b3ed0240cd1ab6f0d5043ea':
configure: arm: set fast_clz and fast_unaligned in cpuflags section
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 14:04:41 +01:00
Michael Niedermayer
840a002b69
Merge commit '1234c66a315b139339d52ca193b3f1d67af9ce19'
...
* commit '1234c66a315b139339d52ca193b3f1d67af9ce19':
configure: arm: detect toolchain default arch version
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 13:57:29 +01:00
Michael Niedermayer
7181806dc1
Merge commit '9ebd45c2d58ad9241ad09718679f0cf7fb57da52'
...
* commit '9ebd45c2d58ad9241ad09718679f0cf7fb57da52':
configure: do not bypass cpuflags section if --cpu not given
dct-test: arm: indicate required cpu features for optimised funcs
snow: fix build after 594d4d5df3
arm: fix use of uninitialised value in ff_fft_fixed_init_arm()
avpicture: Don't assume a valid pix fmt in avpicture_get_size
Conflicts:
libavcodec/avpicture.c
libavcodec/snow.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 13:49:26 +01:00
Reimar Döffinger
8ee14aa5c7
lavf: improve avoid_negative_ts help text
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 13:30:43 +01:00
Janne Grunau
9a2e79116d
golomb: use unsigned arithmetics in svq3_get_ue_golomb()
...
This prevents undefined behaviour of signed left shift if the coded
value is larger than 2^31. Large values are most likely invalid and
caused errors or by feeding random.
Validate every use of svq3_get_ue_golomb() and changed the place there
the return value was compared with negative numbers. dirac.c was clean,
fixed rv30 and svq3.
2012-12-08 12:55:10 +01:00
Stefano Sabatini
35e81441fc
lavfi/sendcmd: switch to filter_frame API
2012-12-08 12:10:40 +01:00
Stefano Sabatini
3eae531de2
lavfi/swapuv: switch to filter_frame API
2012-12-08 12:10:34 +01:00
Nicolas George
e6701d51e1
lavc/mlpdec: reset layout when channels change.
...
Triggered by the sample for trac ticket #1726 .
2012-12-08 10:12:38 +01:00
Justin Ruggles
1c012e6bfb
x86: float_dsp: fix loading of the len parameter on x86-32
2012-12-07 21:19:29 -05:00
Paul B Mahol
3fd60d8049
gifdec: port to bytestream2 API
...
While here remove ff_lzw_cur_ptr() as it become obsolete.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-08 01:13:07 +00:00
Michael Niedermayer
e0a553d526
opt_list: fix vertical alignment of types
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 01:34:28 +01:00
Michael Niedermayer
f4ceca6261
opt: print ranges in opt_list()
...
The formating can and should be improved.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 01:34:28 +01:00
Michael Niedermayer
a8e0d51bb8
opt: Add support to query ranges
...
Reviewed-by: Stefano Sabatini <stefasab@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-08 01:34:28 +01:00
Josh Allmann
b3deec3253
takdec: fix initialisation of LOCAL_ALIGNED array
...
When LOCAL_ALIGNED uses manual alignment initialisation is not
possible.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2012-12-08 00:00:30 +01:00
Mans Rullgard
cd71af90a9
takdec: fix initialisation of LOCAL_ALIGNED array
...
When LOCAL_ALIGNED uses manual alignment initialisation is not
possible.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-07 22:13:57 +00:00
Michael Niedermayer
419ade4b61
lavc: check dimensions for video encoders
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-07 22:58:13 +01:00
Paul B Mahol
57231e4d5b
tak: demuxer, parser, and decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2012-12-07 16:15:02 -05:00
Michael Niedermayer
096abfa150
parser: fix large overreads
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2012-12-07 16:15:02 -05:00
Michael Niedermayer
41540b36a1
bitstream: add get_bits64() to support reading more than 32 bits at once
...
Also remove a duplicate function in the MPEG-TS demuxer.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2012-12-07 16:15:02 -05:00
Michael Niedermayer
320ae9fb78
sws_scale: check input against NULL
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-07 21:50:07 +01:00
Clément Bœsch
710c4baf52
lavf: VobSub demuxer.
2012-12-07 21:18:06 +01:00
Stefano Sabatini
fe508f807a
lavfi/alphaextract: consistently prefer "cur" over "in" in filter_frame()
...
Improve consistency/readability.
2012-12-07 19:45:34 +01:00
Stefano Sabatini
0bc0d31b7b
lavfi/alphaextract: access outlink properties rather than out_buf->video
...
Avoid one dereference, simplify.
2012-12-07 19:45:27 +01:00
Stefano Sabatini
130c6497d2
lavfi/alphaextract: fix assignment of invalid size value to memcpy in case linesize < 0
...
Fix crash, for example in the command:
ffmpeg -f image2 -vcodec pgmyuv -i tests/vsynth1/%02d.pgm \
-vf "[in]format=yuv420p,split,alphamerge,split[o3][o4];
[o4]vflip,alphaextract[alpha];[o3][alpha]alphamerge[out]" \
-vcodec rawvideo -f nut md5:
2012-12-07 19:43:19 +01:00
Stefano Sabatini
c3ad91a3d7
lavfi/alphaextract: switch to filter_frame() API
2012-12-07 19:42:59 +01:00
Stefano Sabatini
1f467220cf
lavfi/alphaextract: drop cur_linesize = out_linesize branch in draw_slice()
...
The code causes uninitialized data copy, and may be actually slower than
a loop over each line in case the padding is big.
2012-12-07 19:09:47 +01:00
Paul B Mahol
fe63d41302
brstm: do not return partial packets
...
Such packets are useless.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-07 17:55:45 +00:00
Mans Rullgard
b326755989
arm: rename ARMVFP config symbol to VFP
...
This is consistent with usual ARM nomenclature as well as with the
VFPV3 and NEON symbols which both lack the ARM prefix.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-07 16:54:04 +00:00
Mans Rullgard
b57c1da81e
arm: detect cpu features at runtime on Linux
...
This allows compiling optimised functions for features not enabled
in the core build and selecting these at runtime if the system has
the necessary support.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-07 16:54:04 +00:00
Mans Rullgard
637606de2d
configure: arm: make _inline arch ext symbols depend on inline_asm
...
This makes --disable-inline-asm work as expected.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-07 16:54:03 +00:00
Mans Rullgard
7f2b3dcabd
configure: arm: check inline and external asm support for extensions
...
This tests instruction set support in both inline and external asm.
If both fail, the base config option is disabled.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-07 16:54:03 +00:00
Mans Rullgard
c6ebc9faa2
configure: add check_insn function
...
The check_insn function tests an instruction in both inline asm and
standalone assembly, and sets _external/_inline config properties
accordingly.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-07 16:54:03 +00:00
Mans Rullgard
f0fe245bc3
configure: arm: set fast_clz and fast_unaligned in cpuflags section
...
These are properties of the targeted core and do not depend on
specific assembly support in the toolchain which if missing will
render the controlling options here disabled.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-07 16:54:03 +00:00
Mans Rullgard
1234c66a31
configure: arm: detect toolchain default arch version
...
Probe for the toolchain default architecture version if no --cpu flag
is present or an unknown cpu is specified. Works with gcc, clang and
armcc.
This allows configuring based on the arch version even if it is not
explicitly specified to configure. It also causes an explicit -march
flag to be added to CFLAGS and ASFLAGS, which in turn lets us do
proper instruction set tests with the assembler.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-07 16:54:03 +00:00
Mans Rullgard
9ebd45c2d5
configure: do not bypass cpuflags section if --cpu not given
...
This will allow arch-specific ways of determining the target
variant when none is specified on the command line.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-07 16:54:03 +00:00
Mans Rullgard
a7831d509f
arm: use HAVE*_INLINE/EXTERNAL macros for conditional compilation
...
These macros reflect the actual capabilities required here.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-07 16:54:03 +00:00
Mans Rullgard
7fd90119bb
configure: clean up check_inline_asm and check_as functions
...
The check_inline_asm function should check the actual C compiler,
not the one used for assembly files. Usually these are the same,
but they might be different, typically when using a compiler other
than gcc.
The check_as should, as its name suggests, test the type of input
the AS command is used with, i.e. a standalond assembly (.S) file.
Finally, check for gnu assembler using the modified check_as as
this reflects actual usage.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-07 16:54:03 +00:00
Mans Rullgard
c29d49c1b3
dct-test: arm: indicate required cpu features for optimised funcs
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-07 16:54:03 +00:00
Anton Khirnov
380232fac3
snow: fix build after 594d4d5df3
2012-12-07 16:35:06 +01:00
Michael Niedermayer
857d7194ca
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
h264: add a pointer for weighted prediction temporary buffer
Conflicts:
libavcodec/h264.c
libavcodec/h264.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-07 16:29:07 +01:00
Paul B Mahol
6777aa6387
lavc/takdec: s/get_b/get_bits_esc4
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-07 15:19:49 +00:00
Martin Storsjö
4ed0c35c40
avcodec: Fix a typo in an option description
...
Signed-off-by: Martin Storsjö <martin@martin.st >
Signed-off-by: Clément Bœsch <ubitux@gmail.com >
2012-12-07 16:16:20 +01:00
Paul B Mahol
1c779854b5
lavc/takdec: simplify code
...
Merge get_scale/get_shift into set_sample_rate_params().
Rename tak_set_bps to set_bps_params and remove 2nd argument.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-07 15:01:02 +00:00
Michael Niedermayer
7c425e4f2d
Merge commit 'd7d6efe42b0d2057e67999b96b9a391f533d2333'
...
* commit 'd7d6efe42b0d2057e67999b96b9a391f533d2333':
h264: check sps.log2_max_frame_num for validity
mov: validate number of DataReferenceBox entries against box size
mov: compute avg_frame_rate only if duration is known
flac: change minimum and default of lpc_passes option to 1
Conflicts:
libavcodec/h264_ps.c
libavformat/mov.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-07 15:52:43 +01:00
Michael Niedermayer
af164d7d9f
Merge commit 'c25fc5c2bb6ae8c93541c9427df3e47206d95152'
...
* commit 'c25fc5c2bb6ae8c93541c9427df3e47206d95152':
fate: dpcm: Add dependencies
SBR DSP x86: implement SSE sbr_hf_gen
AAC SBR: use AVFloatDSPContext's vector_fmul
fate: image: Add dependencies
Changelog: add an entry for deprecating the avconv -vol option
x86: float_dsp: fix compilation of ff_vector_dmul_scalar_avx() on x86-32
Conflicts:
Changelog
libavutil/x86/float_dsp.asm
tests/fate/image.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-07 15:21:41 +01:00
Mans Rullgard
92dad6687f
arm: fix use of uninitialised value in ff_fft_fixed_init_arm()
...
When initialising an FFTContext for a plain FFT, mdct_bits is not set
and can contain a garbage value. Since nbits is always valid and for
MDCT operation is mdct_bits - 2 checking this instead avoids using an
uninitialised value while having the same effect.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-07 13:11:57 +00:00
Paul B Mahol
8ca8b43d71
lavf/pcm: check size, do not produce invalid packets
...
Inspired by 92b8c9d89e .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-07 13:05:43 +00:00
Michael Niedermayer
ea6da80cb4
diracdec: check dimensions against chroma format.
...
Fixes out of array reads
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-07 13:43:40 +01:00
Martin Storsjö
2c96392277
avpicture: Don't assume a valid pix fmt in avpicture_get_size
...
When called from the v4l2 input device, pix_fmt can be
AV_PIX_FMT_NONE (for jpeg formats). Before 50ba57e0 , this wasn't
an issue for avpicture_get_size, but after that commit, this
lead to crashes.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-07 14:28:47 +02:00
Janne Grunau
a394959bbe
h264: add a pointer for weighted prediction temporary buffer
...
Reusing MpegEncContext's obmc_scratchpad for this becomes a mess with
adaptive frame-mt.
2012-12-07 11:43:28 +01:00
Janne Grunau
d7d6efe42b
h264: check sps.log2_max_frame_num for validity
...
Fixes infinite or long taking loop in frame num gap code in
the fuzzed sample bipbop234.ts_s223302.
CC: libav-stable@libav.org
2012-12-07 11:43:28 +01:00
Janne Grunau
8cc2fa1e5d
mov: validate number of DataReferenceBox entries against box size
...
Avoids a 2G memory allocation and parsing of random data in
mov_read_dref(). The fuzzed sample sample.mp4_s224424 triggers this.
2012-12-07 11:43:28 +01:00
Janne Grunau
80b6b31417
mov: compute avg_frame_rate only if duration is known
...
Fixes an assert in fuzzed sample sample.mp4_s265930.
2012-12-07 11:43:28 +01:00
Janne Grunau
480be07a96
flac: change minimum and default of lpc_passes option to 1
...
Avoid use of uninitialized and uncomputed linear least square models
during ff_lpc_calc_coefs() for FF_LPC_TYPE_CHOLESKY. Fixes running
make fate-flac-16-lpc-cholesk with valgrind --undef-value-errors=yes.
2012-12-07 11:43:28 +01:00
Diego Biurrun
c25fc5c2bb
fate: dpcm: Add dependencies
2012-12-07 11:34:16 +01:00
Christophe Gisquet
2aef3d66c9
SBR DSP x86: implement SSE sbr_hf_gen
...
Start and end index are multiple of 2, therefore guaranteeing aligned access.
Also, this allows to generate 4 floats per loop, keeping the alignment all
along.
Timing:
- 32 bits: 326c -> 172c
- 64 bits: 323c -> 156c
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-12-07 11:04:26 +01:00
Christophe Gisquet
9a16359c38
AAC SBR: use AVFloatDSPContext's vector_fmul
...
Around 5% speedup on the code block using 'vector_fmul_add's.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-12-07 10:33:39 +01:00
Diego Biurrun
33086f9265
fate: image: Add dependencies
2012-12-07 10:14:31 +01:00
Michael Niedermayer
f5d6b0c9c2
diracdec: fix typo in mctmp allocation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-07 02:24:14 +01:00
Michael Niedermayer
2f6ec9fdd7
diracdec: Test mctmp and mcscratch for malloc failure.
...
Fixes null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-07 02:24:14 +01:00
Michael Niedermayer
b84d1bf193
diracdec: fix emulated_edge condition, fix out of array reads
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-07 02:24:14 +01:00
Paul B Mahol
f8d68822c0
takdec: use samplefmt.h from libavutil
...
Instead of having own code for calculating decoded buffer size
just use already provided functions from libavutil.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-07 01:11:55 +00:00
Paul B Mahol
6a7fed193c
add missing dependency for tak demuxer
2012-12-07 00:15:47 +00:00
Paul B Mahol
4e4a95b18e
takdec: remove get_code() and use get_sbits() directly
...
As found by Justin, this is probably bug in reference decoder.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-07 00:03:47 +00:00
Carl Eugen Hoyos
24b20087bd
Fix compilation with yasm 0.6.2.
2012-12-07 00:26:45 +01:00
Michael Niedermayer
892750b07b
fix tipo
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-06 22:59:21 +01:00
Stefano Sabatini
da9a45b681
lavfi/tinterlace: drop redundant NULL checks in uninit()
2012-12-06 22:32:03 +01:00
Stefano Sabatini
c6a216771f
lavfi/tinterlace: add support to option parsing
...
Simplify code, and provide introspection through the AVOption system.
2012-12-06 22:31:42 +01:00
Stefano Sabatini
fef7b2e0be
lavfi/tinterlace: switch to filter_frame API
...
Also add missing NULL checks.
2012-12-06 22:30:59 +01:00
Michael Niedermayer
656500c503
lavf: improve help text for avoid_negative_ts
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-06 22:06:40 +01:00
Michael Niedermayer
4b6869d6e0
bitstream: make vlc init of static tables thread safe.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-06 21:46:42 +01:00
Clément Bœsch
bbd44f6ca4
lavfi/mp: switch to ff_filter_frame.
2012-12-06 21:11:28 +01:00
Paul B Mahol
586c2528a0
dxa: port to bytestream2 API
...
Protects against overreads in input buffer.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-06 19:09:48 +00:00
Paul B Mahol
547b8aeed4
smacker: use meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-06 18:06:52 +00:00
Paul B Mahol
29c3ebf56e
siff: return meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-06 18:00:37 +00:00
Paul B Mahol
7510a9a466
lavf/apedec: return meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-06 17:17:49 +00:00
Paul B Mahol
4d1912ff4d
huffyuv: return meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-06 16:56:40 +00:00
Paul B Mahol
4a722a5cab
huffyuv: check for malloc failures
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-06 16:44:43 +00:00
Justin Ruggles
b64ba37c4c
Changelog: add an entry for deprecating the avconv -vol option
2012-12-06 11:33:38 -05:00
Paul B Mahol
7f261ac850
huffyuv: make use of av_fast_padded_malloc()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-06 16:31:54 +00:00
Clément Bœsch
eaa47e7454
lavfi/deshake: small align prettifying.
2012-12-06 16:20:31 +01:00
Clément Bœsch
03778575b9
lavfi/deshake: switch inverted comments.
2012-12-06 16:20:31 +01:00
Clément Bœsch
0678641b7c
lavfi/deshake: remove unecessary check before unref.
2012-12-06 16:20:31 +01:00
Clément Bœsch
e7b0e83e96
lavfi/deshake: switch to filter_frame.
2012-12-06 16:20:31 +01:00
Michael Niedermayer
71949ef715
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
h264: slice-mt: check master context for valid current_picture_ptr
h264: slice-mt: get last_pic_dropable from master context
alacenc: add support for multi-channel encoding
Conflicts:
Changelog
libavcodec/alac.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-06 16:14:38 +01:00
Michael Niedermayer
54a71f2e6c
Merge commit 'b519298a1578e0c895d53d4b4ed8867b1c031a56'
...
* commit 'b519298a1578e0c895d53d4b4ed8867b1c031a56':
pixdesc: fix yuva 10bit bit depth
avconv: deprecate the -vol option
x86: af_volume: add SSE2/SSSE3/AVX-optimized s32 volume scaling
x86: af_volume: add SSE2-optimized s16 volume scaling
Conflicts:
ffmpeg.c
tests/ref/lavfi/pixdesc
tests/ref/lavfi/pixfmts_copy
tests/ref/lavfi/pixfmts_null
tests/ref/lavfi/pixfmts_scale
tests/ref/lavfi/pixfmts_vflip
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-06 15:55:47 +01:00
Michael Niedermayer
1bb547192f
lavfi: rename af_volume to af_volume_stefano
...
This matches the naming style of the new af_volume_justin filter.
Note, Yes i would too prefer having one filter instead of 2.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-06 15:29:23 +01:00
Michael Niedermayer
b38c79bf23
Merge commit 'b384e031daeb1ac612620985e3e5377bc587559c'
...
* commit 'b384e031daeb1ac612620985e3e5377bc587559c':
lavfi: add volume filter
Conflicts:
Changelog
libavfilter/Makefile
libavfilter/af_volume.c
libavfilter/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-06 15:18:59 +01:00
Clément Bœsch
377d201790
lavd/lavfi: fix float.h include.
...
float.h is a system header.
2012-12-06 15:09:47 +01:00
Clément Bœsch
a0b2e8e155
lavfi/silencedetect: use eval builtin to parse dB.
...
Also update FATE test to use the dB form.
2012-12-06 15:08:38 +01:00
Michael Niedermayer
15784c2bab
Merge commit '9d5c62ba5b586c80af508b5914934b1c439f6652'
...
* commit '9d5c62ba5b586c80af508b5914934b1c439f6652':
lavu/opt: do not filter out the initial sign character except for flags
eval: treat dB as decibels instead of decibytes
float_dsp: add vector_dmul_scalar() to multiply a vector of doubles
Conflicts:
libavutil/eval.c
tests/ref/fate/eval
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-06 14:33:38 +01:00
Justin Ruggles
ecc8b02194
x86: float_dsp: fix compilation of ff_vector_dmul_scalar_avx() on x86-32
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2012-12-06 14:11:15 +01:00
Nicolas George
32aedebdc5
lavf: add a concat demuxer.
2012-12-06 14:09:14 +01:00
Stefano Sabatini
c3fa6add58
lavfi/field: switch to filter_frame API
2012-12-06 13:51:34 +01:00
Stefano Sabatini
3942294fd5
lavfi/drawtext: make use of outlink variable in filter_frame()
...
Fix warning.
2012-12-06 13:51:27 +01:00
Paul B Mahol
3bb3cddd96
mmfdec: fix seeking
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-06 11:56:00 +00:00
Clément Bœsch
1e85fd6a47
lavfi/mp: remove dead extern vf_info_t declarations.
2012-12-06 12:52:58 +01:00
anonymous
de42d2a347
lavfi/mp: add ff_ prefix to exported symbols
2012-12-06 12:38:37 +01:00
Clément Bœsch
0f65d56080
Add examples/resampling_audio to .gitignore.
2012-12-06 12:13:01 +01:00
Stefano Sabatini
e8278b9d56
doc/decoders: fix typo in "@Options"
2012-12-06 10:16:10 +01:00
Stefano Sabatini
89920387da
examples: add resampling_audio.c file
2012-12-06 10:09:37 +01:00
Janne Grunau
3ab5f7dc13
h264: slice-mt: check master context for valid current_picture_ptr
...
Fixes errors in slice based multithreading introduced in 0b300daad2 .
2012-12-06 04:45:04 +01:00
Janne Grunau
24c62ea7a5
h264: slice-mt: get last_pic_dropable from master context
...
Fixes fate-h264-conformance-cvnlfi2_sony_h and smllwebdl.mkv from
https://github.com/OpenELEC/OpenELEC.tv/issues/1557 .
2012-12-06 04:44:57 +01:00
Michael Niedermayer
7885fa7685
ff_lock_avcodec: make the lock state be consistent in case of failure.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-06 03:12:34 +01:00
Michael Niedermayer
2dec950f49
avcodec_open: if obtaining a lock fails, dont attempt to unlock it.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-06 02:52:46 +01:00
Michael Niedermayer
0393cf15db
Revert "Acquire lock when initializing parsers."
...
This reverts commit 7feef7dbca .
This commit causes assertion failures due to use of parser_init from multiple
threads, for example indirectly by ffmpeg.c and more directly from the
packet read functions.
I dont know how to fix this quickly, and fixing ffmpeg.c leaves
the possibility of other applications being affected.
Crashing the applications until this is resolved is clearly no good
thus this revert, so we have time to think about the problem.
Crashes can be reproduced by using multiple input files in ffmpeg.
2012-12-06 02:52:46 +01:00
Michael Niedermayer
eed865540a
Revert "Add assert that the avcodec lock is held when initializing static VLC tables."
...
This reverts commit dd154198b1 .
2012-12-06 02:52:07 +01:00
Michael Niedermayer
d7169280a6
frame_thread_encoder: fix locking while locks are held
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-06 02:51:26 +01:00
Michael Niedermayer
bde6f6eadc
vc1dec: prevent v_edge_pos from becoming negative.
...
Fixes assertion failure
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-06 02:51:26 +01:00
Michael Niedermayer
b6a7f66f93
resample: remove disabled debug code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-06 02:51:26 +01:00
Clément Bœsch
d3451a9c0f
fate/hqdn3d: add -idct simple.
...
This should fix FATE failure on ARM. IDCT is required since it's a JPEG
source.
2012-12-05 23:36:31 +01:00
Janne Grunau
5945c7b35d
h264: slice-mt: check master context for valid current_picture_ptr
...
Fixes errors in slice based multithreading introduced in 0b300daad2 .
CC: libav-stable@libav.org
2012-12-05 23:16:37 +01:00
Janne Grunau
a8cb1746c5
h264: slice-mt: get last_pic_dropable from master context
...
Fixes fate-h264-conformance-cvnlfi2_sony_h and smllwebdl.mkv from
https://github.com/OpenELEC/OpenELEC.tv/issues/1557 .
CC: libav-stable@libav.org
2012-12-05 23:16:37 +01:00
Clément Bœsch
2273b3aaf9
swr: remove unused ONE define.
2012-12-05 23:04:01 +01:00
Justin Ruggles
5e1bbb8c7e
alacenc: add support for multi-channel encoding
2012-12-05 16:13:37 -05:00
Paul B Mahol
9ef29af2e8
cafenc: do not include riff.h
...
ff_codec_get_tag() was moved to internal.h
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-05 20:44:28 +00:00
Paul B Mahol
9f66531d46
lavc/dxa: return meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-05 20:28:45 +00:00
Paul B Mahol
0aabd35b62
lavf/dxa: return meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-05 20:18:04 +00:00
Paul B Mahol
c5008135c2
dxa: signal EOF
...
Fixes #1948 .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-05 20:03:30 +00:00
Reimar Döffinger
dd154198b1
Add assert that the avcodec lock is held when initializing static VLC tables.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2012-12-05 21:01:17 +01:00
Reimar Döffinger
7feef7dbca
Acquire lock when initializing parsers.
...
This is necessary since they might be initializing or
even using static VLC tables.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2012-12-05 21:01:17 +01:00
Reimar Döffinger
25fec8595d
avcodec: add ff_lock/unlock_avcodec functions.
...
Will be used in future patches, together with the
variable that allows checking whether the lock is held.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2012-12-05 21:01:17 +01:00
Piotr Bandurski
5381960501
wmaenc: add new line to some error messages
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 20:29:27 +01:00
Wolfram Gloger
928346091a
mpegvideo_parser: fix buffer access beyond end
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 20:29:18 +01:00
Reimar Döffinger
58df8befda
av_assert should use AV_LOG_PANIC.
...
The description of AV_LOG_PANIC 100% matches what av_assert
does, while AV_LOG_FATAL does not really.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2012-12-05 20:25:32 +01:00
Michael Niedermayer
6d7effa9bd
mpegvideo_enc: use av_log() in debug code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 19:31:27 +01:00
Michael Niedermayer
911c00e60f
motion_est: use av_log() in debug code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 19:31:27 +01:00
Michael Niedermayer
7c2481f2d7
j2kenc: remove duplicate debug functions
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 19:31:27 +01:00
Michael Niedermayer
9bb188da96
j2k: avoid printf() useage in debug code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 19:31:27 +01:00
Michael Niedermayer
b023392f34
mpegvideo: remove #if/define PARANOID code
...
This code never did anything as far as i can remember
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 19:31:27 +01:00
Paul B Mahol
4012cd6c4f
lavc: fix decode_frame() third parameter semantics for rest of video decoders
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-05 18:24:43 +00:00
Paul B Mahol
b519298a15
pixdesc: fix yuva 10bit bit depth
...
It was wrongly set as the yuva 16bit one.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2012-12-05 17:52:55 +01:00
Michael Niedermayer
835fd779a4
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
fate: workaround for slighly broken 'test' shell builtin
mimic: initialize padding of swap_buf through av_fast_padded_malloc
eamad: initialize padding of bitstream_buf through av_fast_padded_malloc()
raw demuxer: initialize end of partial packets
Conflicts:
tests/fate-run.sh
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 17:33:12 +01:00
Justin Ruggles
b384e031da
lavfi: add volume filter
...
Based on the volume filter in FFmpeg written by Stefano Sabatini
<stefasab@gmail.com >.
2012-12-05 11:23:37 -05:00
Justin Ruggles
9a71d362a6
avconv: deprecate the -vol option
...
Remove the code for volume scaling in avconv.c and instead auto-insert a
volume filter into the beginning of the filter chain.
2012-12-05 11:23:37 -05:00
Justin Ruggles
b30a363331
x86: af_volume: add SSE2/SSSE3/AVX-optimized s32 volume scaling
2012-12-05 11:23:37 -05:00
Justin Ruggles
f96f1e06a4
x86: af_volume: add SSE2-optimized s16 volume scaling
2012-12-05 11:23:37 -05:00
Justin Ruggles
9d5c62ba5b
lavu/opt: do not filter out the initial sign character except for flags
...
This allows parsing of special-case negative numbers like decibels.
2012-12-05 11:23:36 -05:00
Justin Ruggles
5312268b34
eval: treat dB as decibels instead of decibytes
2012-12-05 11:23:36 -05:00
Justin Ruggles
ac7eb4cb20
float_dsp: add vector_dmul_scalar() to multiply a vector of doubles
...
Include x86-optimized versions for SSE2 and AVX.
2012-12-05 11:23:36 -05:00
Michael Niedermayer
fc1152de41
Merge commit 'df9b9567518f2840d79a4a96b447ebe1aa326408'
...
* commit 'df9b9567518f2840d79a4a96b447ebe1aa326408':
lavc: fix decode_frame() third parameter semantics for video decoders
Conflicts:
libavcodec/cscd.c
libavcodec/eamad.c
libavcodec/ffv1dec.c
libavcodec/gifdec.c
libavcodec/h264.c
libavcodec/iff.c
libavcodec/mjpegdec.c
libavcodec/pcx.c
libavcodec/vp56.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 17:20:19 +01:00
Michael Niedermayer
022553e875
Merge commit '387bef95d28019c13c6805cfa4079e59948284e5'
...
* commit '387bef95d28019c13c6805cfa4079e59948284e5':
lavc: factorise setting buffer type in avcodec_default_get_buffer().
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 17:02:42 +01:00
Michael Niedermayer
83db6cb521
Merge commit 'e57c4706e969afa1f2384481b955ccd9494cddb5'
...
* commit 'e57c4706e969afa1f2384481b955ccd9494cddb5':
lavc: don't reuse audio buffers
This commit causes a 0.5% speedloss for mp3 and 2% for raw pcm, that is
"time ffmpeg" style tested thus includes disk IO, demux and parsing
I would not have merged it if it wasnt required for the "new" buffer API
but sadly it is.
Once the new API is in ill reimplement proper buffer reuse, which will
fix this speedloss. In case we choose not to merge the "new" buffer
API then this commit here should be reverted.
Conflicts:
libavcodec/internal.h
libavcodec/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 16:53:12 +01:00
Michael Niedermayer
d2a3f08daf
lavc: move ff_init_buffer_info() down to ff_get_buffer()
...
and remove redundant code from ff_get_buffer()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 15:58:37 +01:00
Michael Niedermayer
2f980cf39a
Merge commit 'ff953fecffd3b9a616a046723fb9d4690be032a6'
...
* commit 'ff953fecffd3b9a616a046723fb9d4690be032a6':
lavc: set frame properties in ff_get_buffer().
Conflicts:
libavcodec/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 15:58:07 +01:00
Michael Niedermayer
874c5b02c4
Merge commit '594d4d5df3c70404168701dd5c90b7e6e5587793'
...
* commit '594d4d5df3c70404168701dd5c90b7e6e5587793':
lavc: add a wrapper for AVCodecContext.get_buffer().
Conflicts:
libavcodec/4xm.c
libavcodec/8svx.c
libavcodec/bmv.c
libavcodec/cljr.c
libavcodec/cscd.c
libavcodec/dnxhddec.c
libavcodec/dpcm.c
libavcodec/dpx.c
libavcodec/eacmv.c
libavcodec/eamad.c
libavcodec/frwu.c
libavcodec/g723_1.c
libavcodec/gifdec.c
libavcodec/idcinvideo.c
libavcodec/iff.c
libavcodec/indeo3.c
libavcodec/internal.h
libavcodec/interplayvideo.c
libavcodec/kmvc.c
libavcodec/mpc7.c
libavcodec/mpegaudiodec.c
libavcodec/pcx.c
libavcodec/pngdec.c
libavcodec/pnmdec.c
libavcodec/rl2.c
libavcodec/snow.c
libavcodec/targa.c
libavcodec/tscc.c
libavcodec/txd.c
libavcodec/utils.c
libavcodec/v210dec.c
libavcodec/vb.c
libavcodec/vmdav.c
libavcodec/vp56.c
libavcodec/vqavideo.c
libavcodec/wavpack.c
libavcodec/wnv1.c
libavcodec/xl.c
libavcodec/yop.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 15:18:12 +01:00
Paul B Mahol
4727611d48
ircamenc: 10l do not use avio_skip()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-05 13:46:35 +00:00
Paul B Mahol
4c18562d02
Ensoniq Paris Audio File demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-05 13:01:22 +00:00
Paul B Mahol
880191637f
IRCAM demuxer & muxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-05 13:01:22 +00:00
Paul B Mahol
8ecf22ffb0
rsodec: use ff_pcm_read_packet()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-05 12:40:57 +00:00
Paul B Mahol
acac16b5c7
soxdec: use ff_pcm_read_packet()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-05 12:40:57 +00:00
Paul B Mahol
c090b5427d
audec: use ff_pcm_read_packet()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-05 12:40:57 +00:00
Paul B Mahol
a647eb5a87
pvfdec: use ff_pcm_read_packet()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-05 12:40:57 +00:00
Paul B Mahol
15ab0393fd
avr: use ff_pcm_read_packet()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-05 12:40:57 +00:00
Paul B Mahol
93dc8ed0a1
pcmdec: move read_packet function to pcm.c so it can be shared with other demuxers
...
While here remove pts/dts code, it is apparently not needed and cause
problems for demuxers that will use such function.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-05 12:40:57 +00:00
Michael Niedermayer
99efd59626
Merge commit 'cb45553f577f8e0ebfe05d3287e1b6fa5859b967'
...
* commit 'cb45553f577f8e0ebfe05d3287e1b6fa5859b967':
Remove pointless #undefs of previously forbidden functions.
fate: Add dependencies for bmp, cdxl, dfa, mp3
Conflicts:
doc/examples/muxing.c
libavfilter/filtfmts.c
libavutil/des.c
libavutil/eval.c
libavutil/log.c
libavutil/parseutils.c
tests/fate/mp3.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 13:34:45 +01:00
Michael Niedermayer
1fa2bdc90a
fate: disable vf_gradfun test
...
The non working test interferes with other peoples work
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 13:10:24 +01:00
Michael Niedermayer
09de0ffeab
vc1dec: Fix null pointer dereference in vc1_decode_skip_blocks()
...
This handles the last frame being unavailable like all the other
code in vc1dec.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 13:01:16 +01:00
Nicolas George
217b10de3f
lavc/dvdsubdec: accept palette from options.
...
On DVDs, the palette is part of the IFO file and therefore
not available when reading from a dumped VOB file.
2012-12-05 09:25:48 +01:00
Michael Niedermayer
9db3fb6ed8
oggdec: prevent codec from changing through ogg_replace_stream()
...
This prevents inconsistencies leading to out of array accesses.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 04:40:19 +01:00
Michael Niedermayer
599ae9995f
ff_emulated_edge_mc: fix handling of w/h being 0
...
Fixes assertion failure
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 03:45:10 +01:00
Paul B Mahol
45326cb684
pixdesc: fix broken yuva definitions
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-05 01:04:45 +00:00
Michael Niedermayer
8bf16e677f
ffv1enc: allow encoding with 1 slice for CIF and smaller in version 3
...
the default is still 4 slices for any resolution, this just allows the user
to force 1 slice.
This in my quick test improves compression by 1% for a 320x240 sample
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-05 01:22:43 +01:00
Carl Eugen Hoyos
4e6f9db493
Set some audio stream properties in the vivo demuxer.
...
This allows playback with MPlayer and the binary decoder.
Reviewed-by: Paul B Mahol
2012-12-05 01:21:12 +01:00
Mans Rullgard
da025d115a
fate: workaround for slighly broken 'test' shell builtin
...
Some shells, e.g. minix3, have a broken 'test' builtin which fails
if the first operand of a binary operator looks like a unary operator.
Prefixing the values with 'x' prevents this from happening.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-04 23:38:17 +00:00
Janne Grunau
c15fea7933
mimic: initialize padding of swap_buf through av_fast_padded_malloc
2012-12-05 00:02:44 +01:00
Janne Grunau
42060c7030
eamad: initialize padding of bitstream_buf through av_fast_padded_malloc()
2012-12-05 00:02:44 +01:00
Janne Grunau
54c7fe6d68
raw demuxer: initialize end of partial packets
2012-12-05 00:02:43 +01:00
Clément Bœsch
b5ffbcd0cd
fate: add gradfun filter test.
2012-12-05 00:01:17 +01:00
Clément Bœsch
ab981cab93
fate: add hqdn3d filter test.
2012-12-05 00:01:17 +01:00
Clément Bœsch
ab5497df15
lavfi/subtitles: 10l close codec before format.
...
Fix invalid memory accesses.
2012-12-04 23:56:02 +01:00
Anton Khirnov
df9b956751
lavc: fix decode_frame() third parameter semantics for video decoders
...
It's got_frame, not data size
2012-12-04 21:45:36 +01:00
Anton Khirnov
387bef95d2
lavc: factorise setting buffer type in avcodec_default_get_buffer().
2012-12-04 21:45:23 +01:00
Anton Khirnov
e57c4706e9
lavc: don't reuse audio buffers
...
Any performance gain from this is negligible and not worth the extra
code.
2012-12-04 21:43:53 +01:00
Anton Khirnov
ff953fecff
lavc: set frame properties in ff_get_buffer().
...
There is no point in duplicating this code in every get_buffer()
implementation.
2012-12-04 21:42:44 +01:00
Anton Khirnov
594d4d5df3
lavc: add a wrapper for AVCodecContext.get_buffer().
...
It will be useful in the upcoming transition to refcounted AVFrames.
2012-12-04 21:41:59 +01:00
Anton Khirnov
cb45553f57
Remove pointless #undefs of previously forbidden functions.
2012-12-04 21:40:22 +01:00
Nicolas George
03847eb825
lavf: compute probe buffer size more reliably.
...
The previous code computes the offset by reversing the growth
of the allocated buffer size: it is complex and did lead to
inconsistencies when the size limit is reached.
Fix trac ticket #1991 .
2012-12-04 19:49:51 +01:00
Nicolas George
0444733b78
lavfi/drawtext: add the reload option.
2012-12-04 19:06:22 +01:00
Michael Niedermayer
83ddedbbf2
lavf: the core rfps code needs 2 durations to estimate rfps
...
This fixes a regression where this count became 1 with
HPM-GC\ EXPORT\ FCP-1A-AVCI100-1080i25-001.mxf
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-04 18:04:29 +01:00
Paul B Mahol
a3bb59b163
av_register_protocol is gone :(
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-04 17:01:27 +00:00
Paul B Mahol
481c843a47
rawvideodec: set bit rate
...
Fixes #1989 .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-04 15:52:58 +00:00
Clément Bœsch
3b1b8f88b7
ffmpeg: small indent fix.
2012-12-04 16:40:11 +01:00
Michael Niedermayer
60c2cddff0
ffmpeg: use the correct variables in do_video_stats()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-04 16:36:09 +01:00
Thierry Foucu
e98fab1372
Update video stats log during encode flush
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-04 16:36:09 +01:00
Paul B Mahol
18aaed6475
gifdec: do not handle timestamps
...
It is broken, and results will be messed up when seeking.
This also fix duration displayed for streams when using -c copy.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-04 15:21:24 +00:00
Carl Eugen Hoyos
0877f64fea
Add debug output when skipping unknown swf tags.
...
Reviewed-by: Clément Bœsch
2012-12-04 15:52:37 +01:00
Diego Biurrun
90153465b0
fate: Add dependencies for bmp, cdxl, dfa, mp3
2012-12-04 15:24:05 +01:00
Michael Niedermayer
dacd6202ec
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
ppc: always use pic for shared libraries
build: cosmetics: Move CONFIG_RTPDEC entry to a more suitable place
fate: ea, h264: prettyprinting and ordering cosmetics
Conflicts:
tests/fate/ea.mak
tests/fate/h264.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-04 14:23:22 +01:00
Paul B Mahol
765debf51f
auenc: remove pointless assigment
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-04 12:42:50 +00:00
Paul B Mahol
266e88a47c
mmf: return meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-04 11:59:46 +00:00
James Almer
b70251c0ad
AST Muxer
...
Signed-off-by: James Almer <jamrial@gmail.com >
2012-12-04 11:25:46 +00:00
James Almer
7f0e7fc9e2
ast: Rename ast.c -> astdec.c
...
Signed-off-by: James Almer <jamrial@gmail.com >
2012-12-04 10:51:38 +00:00
Peter Ross
1696c72af4
iff demuxer: include DEEP TVDC lookup table in extradata buffer
...
Signed-off-by: Peter Ross <pross@xvid.org >
2012-12-04 20:53:26 +11:00
Peter Ross
59fe5a339b
iff decoder: DEEP TVDC 32-bit decoder
...
Signed-off-by: Peter Ross <pross@xvid.org >
2012-12-04 20:53:26 +11:00
Michael Niedermayer
400647f9ba
configure: Fix ARM thumb detection
...
The detection detects the default but not if it even works.
Check building a simple piece of code and disable thumb if it fails
This fixes a compile failure
If someone has a better idea, just replace this by it!
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-04 05:47:10 +01:00
Michael Niedermayer
5e1bacf2d4
matroskadec: reset size when freeing data.
...
Fixes null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-04 03:50:09 +01:00
Clément Bœsch
359cd12a43
lavfi/mp: fix invalid read with filters with no argument.
2012-12-04 03:47:16 +01:00
Clément Bœsch
ef1868351d
lavfi/removelogo: switch to ff_filter_frame.
2012-12-04 02:31:40 +01:00
Clément Bœsch
3313e46c4a
lavfi: add subtitles filter.
2012-12-04 01:49:03 +01:00
Luca Barbato
1944d532a8
ppc: always use pic for shared libraries
...
CC: libav-stable@libav.org
2012-12-03 22:53:30 +01:00
Clément Bœsch
b5eb630e21
lavfi: remove some video w/h settings after avfilter_copy_buffer_ref_props.
...
video->[wh] will be set with the same values as the input after
avfilter_copy_buffer_ref_props. These filters don't change the size of
the input so there is no need for this code.
2012-12-03 21:47:03 +01:00
Clément Bœsch
d91388367f
lavfi/gradfun: remove check for AV_PERM_PRESERVE.
...
This check does not make sense in this context, see
doc/filter_design.txt for details about the usage of such flag.
2012-12-03 20:38:29 +01:00
Reimar Döffinger
e2fc6a01f6
libspeex: allow custom sample rates again.
...
This was broken by 3b061c5e10
Fixes trac issue #1974 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2012-12-03 19:59:04 +01:00
Diego Biurrun
62641dce71
build: cosmetics: Move CONFIG_RTPDEC entry to a more suitable place
2012-12-03 19:32:03 +01:00
Michael Niedermayer
03290ffb57
mpegts: check that codec is not open in mpegts_find_stream_type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-03 17:34:38 +01:00
Michael Niedermayer
8897b5aa4c
mpegts_set_stream_info: remove unneeded codec id check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-03 17:29:56 +01:00
Michael Niedermayer
4c160b68cc
ff_mp4_read_dec_config_descr: check that the codec is not open
...
Fixes out of array accesses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-03 17:27:52 +01:00
Peter Ross
f2ceb67e5b
doc: describe micro versioning policy
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-03 16:31:51 +01:00
Paul B Mahol
0a8360c4f9
takdec: add .sample_fmts
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-03 15:21:19 +00:00
Paul B Mahol
694dc6251e
shorten: update .sample_fmts
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-03 15:13:35 +00:00
Diego Biurrun
201628899b
fate: ea, h264: prettyprinting and ordering cosmetics
2012-12-03 15:34:37 +01:00
Michael Niedermayer
d0b7e832fe
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
configure: Strip ordinals from mingw generated def files
configure: arm: detect default thumb state of compiler
Conflicts:
configure
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-03 15:28:35 +01:00
Stefano Sabatini
8bee8f778a
lswr/swresample: use AV_OPT_TYPE_SAMPLE_FMT for sample format options
...
Improve usability and robustness.
2012-12-03 13:49:56 +01:00
Martin Storsjö
eb7018d2fc
configure: Strip ordinals from mingw generated def files
...
The def files are used for generating import libraries for
other toolchains (in particular, for generating import libraries
for MSVC for DLLs built with mingw).
The def files produced by mingw/gcc contains ordinals for each
exported function. When MSVC tools generate import libraries
from such a def file, MSVC links to the DLL by the ordinals
instead of linking by name.
Since the def files aren't maintained by hand, the ordinal
numbers are assigned (more or less) randomly and any caller
linking to the libs by ordinals will break as soon as the libraries
export more/fewer functions.
Therefore, strip out the ordinals from the generated def files,
to make users link to the libraries by name.
Callers linking to the DLLs using the gcc provided import library
link by name as they should.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-12-03 13:39:47 +02:00
Mans Rullgard
66371c2851
configure: arm: detect default thumb state of compiler
...
This makes configure honour the compiler default if thumb is not
explicitly enabled or disabled.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-03 11:06:06 +00:00
Piotr Bandurski
7e93b0ba4b
ra144enc: reject unsupported sample rates
2012-12-03 10:03:27 +00:00
Michael Niedermayer
5e2be27e65
fate: fix typos in wtv seek test
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-03 03:15:41 +01:00
Michael Niedermayer
b452c8a722
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
fate: fft: Fix libavcodec dependency
build: Make the ISMV muxer select the MOV muxer
configure: move arm arch extensions to a separate variable
Conflicts:
configure
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-03 02:59:19 +01:00
Michael Niedermayer
7711f19eda
Merge commit 'e816034a5fa131b13c4ad87bb0b5065b4f5697c6'
...
* commit 'e816034a5fa131b13c4ad87bb0b5065b4f5697c6':
fate-seek: remove use of gnu make 3.82 only private modifier
fate: move vsynth reference files to their own directory
fate: move fate-acodec reference files to their own dir
configure: avplay now depends on avresample
fate: split dependencies for fate-seek tests
Conflicts:
configure
tests/fate/seek.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-03 02:33:27 +01:00
Michael Niedermayer
211372e86d
Merge commit '0b300daad2f5cb59a7c06dde5ac701685e6edf16'
...
* commit '0b300daad2f5cb59a7c06dde5ac701685e6edf16':
h264: error out on unset current_picture_ptr for h->current_slice > 0
avprobe: report per stream bit rate if set by the decoder
aac: avoid a memcpy in sbr_qmf_analysis
Conflicts:
avprobe.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-03 01:56:47 +01:00
Michael Niedermayer
9c208b404c
vp56: Ignore reconfiguration from the alpha plane.
...
Fixes out of array reads
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-03 01:37:40 +01:00
Diego Biurrun
eebc40e177
fate: fft: Fix libavcodec dependency
2012-12-03 01:34:14 +01:00
Diego Biurrun
31f16dc1a1
build: Make the ISMV muxer select the MOV muxer
...
They share the same code, so building one w/o the other makes no sense.
2012-12-03 01:20:10 +01:00
Mans Rullgard
81dfa21ec9
configure: move arm arch extensions to a separate variable
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-03 00:15:19 +00:00
Janne Grunau
e816034a5f
fate-seek: remove use of gnu make 3.82 only private modifier
2012-12-03 00:37:07 +01:00
Janne Grunau
c8148e5c93
fate: move vsynth reference files to their own directory
2012-12-03 00:36:10 +01:00
Janne Grunau
337dbe2adb
fate: move fate-acodec reference files to their own dir
2012-12-03 00:29:35 +01:00
Diego Biurrun
d173ede1b7
configure: avplay now depends on avresample
2012-12-02 23:39:35 +01:00
Janne Grunau
abab0435d4
fate: split dependencies for fate-seek tests
...
Each fate-seek test depends now only on the corresponding fate-acodec,
fate-vsynth2 or fate-lavf test which creates the file seek-tests
operates on. The tests and references are renamed to match the test they
depend on.
2012-12-02 23:25:41 +01:00
Janne Grunau
0b300daad2
h264: error out on unset current_picture_ptr for h->current_slice > 0
...
Fixes a segfault with fuzzed sample sample_varPAR_s11622_r001-02.avi.
CC: libav-stable@libav.org
2012-12-02 23:24:53 +01:00
Janne Grunau
89a4465bd9
avprobe: report per stream bit rate if set by the decoder
2012-12-02 23:23:34 +01:00
Michael Niedermayer
ec79b1fc88
wtvdec: fix null pointer dereference
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-02 22:36:15 +01:00
Christophe Gisquet
e32bea8eb4
aac: avoid a memcpy in sbr_qmf_analysis
...
Swapping buffer indices allows saving one memcpy that accounts for 1% of the
runtime, according to oprofile.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2012-12-02 21:07:48 +01:00
Michael Niedermayer
80aa89bdff
asfdec: check extradata size before alloc and read
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-02 20:44:58 +01:00
Michael Niedermayer
936eaa89be
h264: check for integer overflow, fix null pointer dereference
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-02 20:44:58 +01:00
Nicolas George
2cb227f6a2
lavu/channel_layout: document the semantic of layouts.
2012-12-02 18:51:04 +01:00
Stefano Sabatini
5148147b26
lavfi/bbox: switch to ff_filter_frame() API
2012-12-02 18:13:49 +01:00
Stefano Sabatini
255be0734d
lavfi/alphamerge: fix leak introduced in 217163eb
2012-12-02 18:04:57 +01:00
Paul B Mahol
49435d3888
gifdec: read pixel aspect ratio
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-02 16:59:11 +00:00
Nicolas George
ddd87236f0
lavfi/vf_super2xsai: fix output ref size.
2012-12-02 17:08:17 +01:00
Stefano Sabatini
bd465fdc73
lavfi/framestep: switch to ff_filter_frame API
2012-12-02 15:02:05 +01:00
Stefano Sabatini
fbc339ff41
lavfi/super2xsai: switch to ff_filter_frame() API
2012-12-02 15:01:56 +01:00
Clément Bœsch
adfd9ca3fa
lavfi/hue: move to ff_filter_frame.
2012-12-02 14:44:31 +01:00
Clément Bœsch
72e84a08e6
fate: add hue filter test.
2012-12-02 14:44:26 +01:00
Nicolas George
24cb1f9718
lavfi/vf_tile: forward errors.
2012-12-02 13:53:41 +01:00
Nicolas George
3b316247fb
lavfi/vf_tile: cosmetic after last commit.
2012-12-02 13:53:41 +01:00
Nicolas George
6f3d2fb18b
lavfi/vf_tile: switch to filter_frame.
...
Also add error check on buffer allocation.
2012-12-02 13:53:41 +01:00
Michael Niedermayer
8be18ffd6a
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
configure: fix indentation in option parsing loop
Conflicts:
configure
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-02 13:47:07 +01:00
Stefano Sabatini
3d72820722
lavfi/decimate: switch to ff_filter_frame() API
2012-12-02 12:42:29 +01:00
Stefano Sabatini
217163eb98
lavfi/alphamerge: switch to ff_filter_frame() API
2012-12-02 12:42:29 +01:00
Stefano Sabatini
83ab46a57e
lavfi/blackdetect: switch to new ff_filter_frame() API
2012-12-02 12:42:29 +01:00
Nicolas George
86a2486812
lavu/parseutils: accept %J for hours >= 24.
...
Allow to parse durations >= 24:00:00.
2012-12-02 11:48:56 +01:00
Michael Niedermayer
b61ba262a1
mpc8: check seektable size before attempting to use it.
...
Fixes null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-02 04:21:42 +01:00
Michael Niedermayer
ff7e2342bb
dcadec: fix reading from prior to an array
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-02 04:01:41 +01:00
Clément Bœsch
9e1914dfba
lavfi/hqdn3d: avoid use of uninitialized variable.
2012-12-02 02:53:22 +01:00
Clément Bœsch
a3554bb457
lavfi/gradfun: avoid use of uninitialized variable.
2012-12-02 02:42:07 +01:00
Michael Niedermayer
77693c541a
xxan: more complete ybuf checks, fix out of array accesses.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-02 00:48:07 +01:00
Carl Eugen Hoyos
196920060b
Add FourCC V264 for H264 in CCTV recordings.
2012-12-02 00:43:39 +01:00
Clément Bœsch
f61369d762
lavfi/vsrc: switch to ff_filter_frame.
2012-12-02 00:23:45 +01:00
Mans Rullgard
7e9e7cc236
configure: fix indentation in option parsing loop
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-12-01 23:16:23 +00:00
Clément Bœsch
6d2892c9f5
lavf/assdec: return appropriate error code instead of -1.
2012-12-02 00:06:03 +01:00
Clément Bœsch
069c897549
lavf/assdec: add ass_ prefix to callbacks.
2012-12-02 00:06:03 +01:00
Clément Bœsch
e0260e25b0
lavf/assdec: rewrite using the demux subtitles API.
2012-12-02 00:06:03 +01:00
Clément Bœsch
bad4e112a2
lavf: use ff_subtitles_queue_seek() for text subtitles demuxers.
2012-12-02 00:06:03 +01:00
Clément Bœsch
ad5d72b123
lavf/subtitles: seek a little more backward when necessary.
...
If some previous subtitles are overlapping with the current time
we make sure they are raised so the renderer can display them too.
2012-12-02 00:06:03 +01:00
Clément Bœsch
ff3624b1ad
lavf/subtitles: add ff_subtitles_queue_seek().
...
This function is almost identical to lavf/assdec:read_seek2(). It
performs a generic seek for text subtitles demuxers for the new seeking
API.
The only difference with assdec:read_seek2 is the ts_diff being
unsigned to avoid overflows.
The seek callback in the ASS demuxer will be removed when it is
redesigned to use FFDemuxSubtitlesQueue.
2012-12-02 00:06:03 +01:00
Clément Bœsch
b684f744ac
ffmpeg: use avformat_seek_file() instead of av_seek_frame().
...
avformat_seek_file() is the new API. It will make sure the read_seek2()
callback is called when the demuxer has it.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Clément Bœsch <ubitux@gmail.com >
2012-12-02 00:06:02 +01:00
Michael Niedermayer
aae4780362
vmnc: Check for integer overflow
...
Fixes null pointer dereference and potential out of array accesses.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-01 22:25:50 +01:00
Michael Niedermayer
3b2cd83a82
dcadec: check lfe field
...
Fix out of array accesses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-01 22:10:42 +01:00
Paul B Mahol
56e149fda9
PVF demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-01 21:02:45 +00:00
Carl Eugen Hoyos
5442083b1c
Support Sorenson Spark in f4v files streamed by Flash Media Server.
2012-12-01 21:16:11 +01:00
Michael Niedermayer
873049e6d8
mxfdec: check index_tables before dereferencing in close.
...
Fixes null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-01 20:19:09 +01:00
Michael Niedermayer
7389bb12e6
svq1dec: update w/h only if the header is successfully parsed.
...
Prevents inconsistency and out of array accesses.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-01 20:19:09 +01:00
Stefano Sabatini
c9ff32215b
lavu/opt: allow to set sample and pixel format with av_opt_set_int()
...
This change requires the user to specify min and max value, and makes
possible to prevent the user to set AV_{SAMPLE,PIX}_FMT_NONE if
forbidden.
Add required ifdeffery in case of mixed libraries, when libavutil is
updated but not the other libraries.
This is a followup of 08d0969c14 .
2012-12-01 19:33:30 +01:00
Michael Niedermayer
b5cedf8b66
fate/mp3: increase fuzz for NEON, due to different rounding from lrintf()
...
This should fix fate failures of the hecommon test
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-01 17:15:57 +01:00
Stefano Sabatini
13c39e9676
lavfi/geq: add T variable and example
2012-12-01 16:05:15 +01:00
Michael Niedermayer
5473f6258c
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
configure: Use headers in the check for _beginthreadex for w32threads
avutil: Use a configure check to enable windows console functions
avutil: Include io.h with a separate condition from windows console functions
Conflicts:
libavutil/log.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-01 13:10:48 +01:00
Stefano Sabatini
12cd992d67
doc/ffmpeg-filters: add short description
2012-12-01 13:06:56 +01:00
Michael Niedermayer
13d351bd45
tests/ref/seek/lavf_gif: update for 9d5cfce855: gifdec: rudimentary seeking
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-01 12:56:12 +01:00
Paul B Mahol
9d5cfce855
gifdec: rudimentary seeking
...
With this ffplay -loop X successfully seeks to start.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-01 11:43:50 +00:00
Paul B Mahol
2152b60f39
gifdec: use av_fast_malloc()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-01 10:53:22 +00:00
Paul B Mahol
6b11ae7112
shorten: return more meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-01 10:17:50 +00:00
Paul B Mahol
e4af8ed8c7
ws-snd1: return meaningful error code
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-01 10:17:45 +00:00
Paul B Mahol
679c7578a6
wnv1: return more meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-01 10:17:20 +00:00
Paul B Mahol
51bcf8ac85
xldec: K&R formatting cosmetics
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-01 10:17:20 +00:00
Paul B Mahol
24e5cb4836
xldec: return meaningful error code
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-01 10:17:16 +00:00
Paul B Mahol
3b56ed3478
motionpixels: use meaningful error code
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-01 09:18:21 +00:00
Paul B Mahol
b912895d94
mvi: check av_mallocz() result
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-12-01 09:06:24 +00:00
Michael Niedermayer
822d10e7c5
swscale: fix 12 and 14 bit YUV planar output with scaling.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-01 03:41:24 +01:00
Michael Niedermayer
f0695b09dd
pcmdec: check codec_id
...
Fixes out of array accesses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-01 02:36:28 +01:00
Michael Niedermayer
b90e795f73
check std tag size before reading.
...
Fixes out of array read
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-01 00:30:11 +01:00
Michael Niedermayer
a7ee6281f7
qdm2: check array index before use, fix out of array accesses
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-12-01 00:00:08 +01:00
Michael Niedermayer
991e23519a
aacps: check iid/icc_par more completely.
...
Fixes global out of array read.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-30 22:23:49 +01:00
Michael Niedermayer
7205e896a1
dxa: check reference frame availability before use.
...
Fix NULL pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-30 22:23:49 +01:00
Paul B Mahol
daede25f0b
update Changelog
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-30 16:52:37 +00:00
Paul B Mahol
57b00d7ab1
gifdec: remove width and height from demuxer context
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-30 16:09:02 +00:00
Michael Niedermayer
2c69fcc2ff
smacker: more complete vlc length check, fixes out of array read
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-30 16:14:18 +01:00
Michael Niedermayer
50cbe09d8c
smacker: check smacker_decode_tree() return value
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-30 16:14:18 +01:00
Paul B Mahol
d56b15017a
undo file modifiers that suck in
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-30 15:00:35 +00:00
Martin Storsjö
3bbe63d1a4
configure: Use headers in the check for _beginthreadex for w32threads
...
When targeting the metro API subset, this function still exists in
the link libraries, but is excluded from the headers. This makes
sure w32threads is automatically disabled when targeting this API
subset (since not all the necessary functions for it are available).
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-11-30 16:57:02 +02:00
Martin Storsjö
7e6a11bcf7
avutil: Use a configure check to enable windows console functions
...
Not all versions or API subsets of windows have these functions.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-11-30 16:56:57 +02:00
Martin Storsjö
b70abd5b61
avutil: Include io.h with a separate condition from windows console functions
...
Not all versions of windows have the console color functions,
while io.h might be needed for isatty (which can be found in
unistd.h or io.h).
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-11-30 16:56:54 +02:00
Vitaliy E Sugrobov
f83657fcf6
Add exception for "gif" in image2 probe() method.
...
Without this exception files with ".gif" extension by default
recognized as input suitable for image2 demuxer rather than gif.
In order to pass image through gif demuxer it was necessary
to use -f gif option.
This change affected 'make fate' test results because previously
image2 demuxer and gif decoder took only first frame of multiframe
test data, which is no longer true with gif demuxer.
Signed-off-by: Vitaliy E Sugrobov <vsugrob@hotmail.com >
2012-11-30 14:35:11 +00:00
Vitaliy E Sugrobov
5603b2bf6e
Gif demuxer
...
Gif demuxer is capable of extracting multiple frames from gif file.
In conjunction with gif decoder it implements support for reading
animated gifs.
Demuxer has two options available to user: default_delay and min_delay.
These options are for protection from too rapid gif animations. In practice
it is standard approach to slow down rendering of this kind of gifs. If you try to
play gif with delay between frames of one hundredth of second (100fps) using
one of major web browsers, you get significantly slower playback,
around 10 fps. This is because browser detects that delay value is less than some
threshold (usually 2 hundredths of second) and reset it to default value (usually 10
hundredths of second, which corresponds to 10fps). Manipulating these options user
can achieve the same effect during conversion to some video format. Otherwise user
can set them to not protect from rapid animations at all.
The other case when these options necessary is for gif images encoded according to
gif87a standard since prior to gif89a there was no delay information included in file.
Bump lavf minor version.
Signed-off-by: Vitaliy E Sugrobov <vsugrob@hotmail.com >
2012-11-30 14:33:58 +00:00
Vitaliy E Sugrobov
005cb97e3e
Move some definitions to header file.
...
Share them with upcoming demuxer module.
Signed-off-by: Vitaliy E Sugrobov <vsugrob@hotmail.com >
2012-11-30 14:33:58 +00:00
Vitaliy E Sugrobov
de0cb7f070
Additional checks to prevent overread.
...
Check for availability of some required amount of bytes in buffer before
reading further.
Signed-off-by: Vitaliy E Sugrobov <vsugrob@hotmail.com >
2012-11-30 14:33:58 +00:00
Vitaliy E Sugrobov
91499f4ee8
Prepare gif decoder for use in conjunction with gif demuxer.
...
Add capability of reading multiple frames instead of only first.
Implement support for different gif frame 'disposal methods'.
Add option that allows to change background color resulting from
conversion of gif with transparency to any other format which
not support it.
Also bump lavc minor version.
Signed-off-by: Vitaliy E Sugrobov <vsugrob@hotmail.com >
2012-11-30 14:33:58 +00:00
Vitaliy E Sugrobov
c5fe41c768
Add meaningful error codes and constants.
...
Replace literals with named constants in several pieces of code
like 'return -1' and 'case 0xab'.
Change the way decoder handles absence of image data in a file:
notify gif_decode_frame() caller with got_picture set to zero
instead of returning -1.
Signed-off-by: Vitaliy E Sugrobov <vsugrob@hotmail.com >
2012-11-30 14:33:58 +00:00
Michael Niedermayer
034a1afbd8
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avutil: Include io.h with a separate condition from MapViewOfFile
cmdutils: Use a configure check for enabling CommandLineToArgvW
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-30 14:55:12 +01:00
Michael Niedermayer
db29a7c7c2
Merge commit '9d46eaec7a90bd8f5cd9e45398c6d17804182320'
...
* commit '9d46eaec7a90bd8f5cd9e45398c6d17804182320':
build: The FLAC encoder also depends on the flacdsp code
img2: K&R formatting cosmetics
h264: check context state before decoding slice data partitions
flashsv: make sure data for zlib priming is available
Conflicts:
libavcodec/Makefile
libavformat/img2.c
libavformat/img2dec.c
libavformat/img2enc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-30 14:49:13 +01:00
Clément Bœsch
8119d8b01f
configure: add lavfi avr dep to .pc when required.
2012-11-30 14:19:14 +01:00
Paul B Mahol
d4c59f77b6
adpcm/thp: cosmetics: reindent
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-30 10:48:37 +00:00
Paul B Mahol
1560c3295d
iff: fix some incorrect interpretations of invalid files
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-30 10:44:00 +00:00
Paul B Mahol
50b5c2296a
iff: MAUD support
...
Based on patch by Piotr Bandurski
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-30 10:34:55 +00:00
Carl Eugen Hoyos
ccf771cd79
Correctly skip strf tag for subtitles when decoding avi.
...
Fixes ticket #1797 .
2012-11-30 10:18:37 +01:00
Michael Niedermayer
d9bec3b6a2
lavc: fix duplicate stats_out line.
...
Found-by: Thierry Foucu
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-30 05:31:41 +01:00
Michael Niedermayer
bc16031a41
mjpegdec: print error message when quant_index is invalid
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-30 04:17:03 +01:00
Michael Niedermayer
a2f680c7bc
mjpegdec: check h/v_count, fix context becoming inconsistent and causing out of array accesses.
...
This also fixes a long standing comment in the code.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-30 04:17:03 +01:00
Stefano Sabatini
08d0969c14
lavu/opt: change the way default pixel and sample format value is set
...
Use the i64 field rather than the string value. Using a string to set a
default sample/pixel format is weird, also the new interface is more
consistent with the rest of the API.
This is technically an API break, but hopefully there are no applications
using this feature outside of FFmpeg. In order to save backward
compatibility with mixed libraries in case libavutil is updated but not
the other libraries, some ifdeffery hacks are added.
Note that the version check is only performed when class->version != 0,
since if it is not defined then we assume that no version was defined and
the class is not affected by the change.
We will luckily get rid of the hack at the next major bump.
2012-11-30 00:01:53 +01:00
Michael Niedermayer
0b28abf903
vble: check packet size.
...
Fixes null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 23:12:42 +01:00
Michael Niedermayer
10416a4d56
id3v2: check index against buffer size. Fix out of array access
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 23:12:42 +01:00
Piotr Bandurski
0b14c197f1
iff: mention all decoders
2012-11-29 19:16:10 +00:00
Paul B Mahol
9a31997938
BRSTM demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-29 19:04:35 +00:00
Martin Storsjö
15816c8e8b
avutil: Include io.h with a separate condition from MapViewOfFile
...
The existence of MapViewOfFile isn't linked to the existence of
io.h.
Not all versions of windows have MapViewOfFile (in particular,
Windows Phone 8 and the "metro" windows 8 API subset don't),
while they still have io.h (and need it for open/read/close).
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-11-29 18:19:57 +02:00
Martin Storsjö
15caccb9be
cmdutils: Use a configure check for enabling CommandLineToArgvW
...
This simplifies the condition to avoid hardcoding the systems
where the function exists. This also simplifies support for
newer Windows API subsets where this function doesn't exist,
such as Windows Phone 8 and the "metro" API subset of Windows 8.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-11-29 18:19:36 +02:00
Diego Biurrun
9d46eaec7a
build: The FLAC encoder also depends on the flacdsp code
...
Fixes linking with only the FLAC encoder enabled.
2012-11-29 17:15:57 +01:00
Diego Biurrun
cc7d5cfeec
img2: K&R formatting cosmetics
...
Also introduce local img_ namespace to simplify debugging.
2012-11-29 17:15:57 +01:00
Michael Niedermayer
6abb9a901f
huffyuvdec: check width more completely, avoid out of array accesses
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 15:56:36 +01:00
Michael Niedermayer
27eada287a
tiffdec: better checks for bitstream offsets, fixes out of array reads
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 15:35:05 +01:00
Michael Niedermayer
3ae6104511
roqvideodec: check dimensions validity
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 15:24:30 +01:00
Janne Grunau
c1fcf563b1
h264: check context state before decoding slice data partitions
...
Fixes mov_h264_aac__Demo_FlagOfOurFathers.mov.SIGSEGV.4e9.656.
Found-by: Mateusz "j00ru" Jurczyk
CC: libav-stable@libav.org
2012-11-29 14:40:05 +01:00
Paul B Mahol
a9236b87b7
fate: add tak dependencies
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-29 13:24:48 +00:00
Paul B Mahol
26f1b1a0fa
fate: add ADPCM 4XM test
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-29 13:24:48 +00:00
Michael Niedermayer
0ecfcf8621
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avplay: Do not use removed av_get_int()
avconv: fix variable shadowing in configure_input_audio_filter()
Conflicts:
ffmpeg_filter.c
ffplay.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 14:22:58 +01:00
Michael Niedermayer
9f8e2e92ae
Merge commit 'e4d349b4014ee2a03f521027e0bd1ace4a9e60bd'
...
* commit 'e4d349b4014ee2a03f521027e0bd1ace4a9e60bd':
fate: h264: Add dependencies
fate: ea: Add dependencies
fate: Do not unconditionally run libavutil tests
rtpenc_chain: Remove unused variable
nuv: check for malloc failure when allocating extradata
nuv: use the stream indices generated by avformat_new_stream()
Conflicts:
tests/fate/ea.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 14:16:46 +01:00
Janne Grunau
3ae69b9166
flashsv: make sure data for zlib priming is available
...
Fixes a segfault in the fuzzed sample resolutionchange.flv_s314809.
CC: libav-stable@libav.org
2012-11-29 14:15:05 +01:00
Michael Niedermayer
52066bdb30
Merge commit 'c74f81786d434dfaf9b3dff06aa96bfd23d0127b'
...
* commit 'c74f81786d434dfaf9b3dff06aa96bfd23d0127b':
nuv: cosmetics: pretty-printing
Conflicts:
libavformat/nuv.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 14:07:51 +01:00
Michael Niedermayer
d7b20bfbb5
Merge commit '5c7bf2dddee5bdfa247ff0d57cb8a37d19077f66'
...
* commit '5c7bf2dddee5bdfa247ff0d57cb8a37d19077f66':
lavf: move nuv fourcc audio tags from riff to nuv
lavf: add a common function for selecting a pcm codec from parameters
Conflicts:
libavformat/internal.h
libavformat/mov.c
libavformat/riff.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 14:00:44 +01:00
Michael Niedermayer
076300bf8b
Merge commit 'bfe5454cd238b16e7977085f880205229103eccb'
...
* commit 'bfe5454cd238b16e7977085f880205229103eccb':
lavf: move ff_codec_get_tag() and ff_codec_get_id() definitions to internal.h
lavf: move "MP3 " fourcc from riff to nut
fate: vpx: Add dependencies
fate: Fix wavpack-matroskamode test dependencies
x86: dsputilenc: port to cpuflags
Conflicts:
libavformat/internal.h
libavformat/nut.c
tests/fate/vpx.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 13:45:57 +01:00
Michael Niedermayer
7dc0ed80e8
Merge commit '1f3f896564501c23b44fcf605567c78ce066b539'
...
* commit '1f3f896564501c23b44fcf605567c78ce066b539':
fate: Add dependencies for Vorbis, ProRes, QTRLE, utvideo tests
fate: real: Add dependencies
fate: lossless-audio: Add dependencies
x86: h264dsp: Fix linking with yasm and optimizations disabled
Conflicts:
libavcodec/x86/h264dsp_init.c
tests/fate/lossless-audio.mak
tests/fate/real.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 13:35:56 +01:00
Clément Bœsch
a7eabbb20d
lavfi/concat: prefer av_asprintf() over stack allocated buffer.
2012-11-29 12:55:56 +01:00
Clément Bœsch
b99f1303ad
lavfi/concat: switch to filter_frame.
2012-11-29 12:55:56 +01:00
Clément Bœsch
ea3bad0e9e
lavfi/smartblur: switch to filter_frame.
2012-11-29 12:49:03 +01:00
Clément Bœsch
9262f13269
lavfi/show{spectrum,waves}: use ff_filter_frame().
2012-11-29 11:44:20 +01:00
Anton Khirnov
e2718e7a70
avplay: Do not use removed av_get_int()
...
Fixes build with lavfi disabled.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-11-29 10:52:23 +01:00
Stefano Sabatini
605f1d9865
lsws: define version in SWScaler class
...
The version number is useful to check the libavutil version against which
the library was compiled at run-time, which in turn may be useful to deal
with binary compatibility issues.
2012-11-29 10:20:21 +01:00
Stefano Sabatini
cf56c20761
doc/Makefile: rework component configuration logic
...
Only enable component manual when the corresponding library providing
the feature is enabled.
2012-11-29 10:19:52 +01:00
Stefano Sabatini
989c6a4943
doc/ffmpeg-codecs: add short description
2012-11-29 09:50:39 +01:00
Michael Niedermayer
3fd8e07265
vsrc_mandelbrot: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 05:52:31 +01:00
Clément Bœsch
9236e9f1e1
lavfi/ebur128: use ff_filter_frame() everywhere.
2012-11-29 03:48:14 +01:00
Michael Niedermayer
55a5ded67e
Merge remote-tracking branch 'cus/stable'
...
* cus/stable:
ffplay: increase maximum frame duration to 1 hour for streams without TS discontinuity
ffplay: fix updating external clock after seeking
ffplay: disallow seeking before the start of the file
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 03:18:35 +01:00
Michael Niedermayer
1eb8809a41
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
vf_fieldorder: require write permissions
vf_fieldorder: reindent
Conflicts:
libavfilter/vf_fieldorder.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 02:54:50 +01:00
Michael Niedermayer
87b9dc0982
Merge commit '565e4993c63f797e2d50ad2f1e8f62fdbe299666'
...
The commit has already been split and commited, this merge is just for metadata.
What has not been merged is the removial of some start/end_frame / draw_slice
related functions that are still in use. They can be removed once they are
unused.
* commit '565e4993c63f797e2d50ad2f1e8f62fdbe299666':
lavfi: merge start_frame/draw_slice/end_frame
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 02:51:22 +01:00
Clément Bœsch
031d644878
lavfi/ass: switch to filter_frame.
2012-11-29 02:36:34 +01:00
Anton Khirnov
9178235ffb
avfilter: mark start_frame/end_frame/draw_slice as deprecated
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 02:30:11 +01:00
Clément Bœsch
502ecc9cc2
lavfi/colormatrix: 10l fix forgotten buffer unref.
2012-11-29 02:21:16 +01:00
Clément Bœsch
269cd07702
lavfi/colormatrix: switch to filter_frame.
2012-11-29 02:16:33 +01:00
Anton Khirnov
88f8af26a9
vf_format: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 02:09:40 +01:00
Anton Khirnov
7c42814782
vf_copy: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 02:09:22 +01:00
Anton Khirnov
ece5decbe0
vf_null: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 02:09:01 +01:00
Michael Niedermayer
015c2b4066
libavfilter: default to filter_frame when neither it nor start/slice/end is set.
...
this is needed for vf_null and a few others.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 02:08:49 +01:00
Anton Khirnov
60e50dd960
buffersrc: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 01:55:26 +01:00
Anton Khirnov
b5ecfa1d8d
buffersink: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 01:55:26 +01:00
Clément Bœsch
5d796270c5
lavfi/thumbnail: re-use ctx instead of inlink->dst.
2012-11-29 01:43:28 +01:00
Clément Bœsch
782993d9e4
lavfi/thumbnail: use avfilter_unref_bufferp() where appropriate.
2012-11-29 01:38:08 +01:00
Clément Bœsch
24f425319d
lavfi/thumbnail: switch to filter_frame.
2012-11-29 01:34:55 +01:00
Anton Khirnov
69d4420aea
libavfilter/split: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 01:20:53 +01:00
Michael Niedermayer
94fdef818e
vf_scale: switch to filter_frame
...
Based on patch by Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 01:20:53 +01:00
Clément Bœsch
3860e34b08
lavfi/sendcmd: expose the options for both filters.
2012-11-29 00:52:00 +01:00
Clément Bœsch
0b70ffa4ac
lavfi/sendcmd: add FLAGS to AVOption array.
2012-11-29 00:50:37 +01:00
Clément Bœsch
a5b765236b
lavfi: add priv_class for some forgotten filters.
...
This allows to print the options available when using commands such as
ffmpeg -help full.
2012-11-29 00:50:37 +01:00
Clément Bœsch
8a12c96d27
lavfi/mptestsrc: add FLAGS to AVOption array.
2012-11-29 00:50:37 +01:00
Anton Khirnov
0a767ad796
vf_blackframe: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 00:32:08 +01:00
Anton Khirnov
8f21cfc6b3
vf_aspect: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 00:31:50 +01:00
Anton Khirnov
aa61728d0a
vf_cropdetect: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 00:15:56 +01:00
Anton Khirnov
71f82c3805
vf_crop: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 00:15:40 +01:00
Justin Ruggles
95682d8cd2
avconv: fix variable shadowing in configure_input_audio_filter()
2012-11-28 18:13:21 -05:00
Anton Khirnov
a42b89910b
vf_drawbox: switch to filter frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 00:09:53 +01:00
Anton Khirnov
267290ce3b
vflip: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-29 00:09:31 +01:00
Michael Niedermayer
8c1f98d954
Merge commit 'bb6c67bb36b136de10256f0999128df4a42f9ffc'
...
* commit 'bb6c67bb36b136de10256f0999128df4a42f9ffc':
lavfi: remove vf_slicify
Conflicts:
doc/filters.texi
libavfilter/Makefile
libavfilter/allfilters.c
libavfilter/vf_slicify.c
tests/lavfi-regression.sh
tests/ref/lavfi/crop_scale_vflip
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 23:59:15 +01:00
Stefano Sabatini
5ddc072d0d
doc: add ffmpeg-bitstream-filters.texi file
2012-11-28 23:51:12 +01:00
Anton Khirnov
5f648ce43e
vf_yadif: switch to filter_frame, this filter did not support slices
...
signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 23:47:01 +01:00
Anton Khirnov
9a65b8c0a2
vf_fade: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 23:47:01 +01:00
Clément Bœsch
2d9d444051
lavfi: convert remaining input/output list compound literals to named objects.
...
This is following 568c70e79e .
2012-11-28 23:19:20 +01:00
Anton Khirnov
bff576c779
vf_lut: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 22:39:35 +01:00
Anton Khirnov
eb7e7e82e1
vf_hflip: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 22:39:16 +01:00
Anton Khirnov
dabb993c44
f_setpts: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 22:27:51 +01:00
Anton Khirnov
bb56436cfd
f_settb: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 22:19:43 +01:00
Michael Niedermayer
eb1424b4fe
src_movie: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 21:58:45 +01:00
Anton Khirnov
f7f6f281dd
vsrc_testsrc: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 21:58:39 +01:00
Anton Khirnov
c262e8cff6
vsink_nullsink: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 21:49:04 +01:00
Anton Khirnov
45eed9b197
vf_unsharp: switch to filter_frame, this filter did not support slices
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 21:47:39 +01:00
Michael Niedermayer
afded1816b
vf_transpose: switch to filter_frame
...
Based on patch by Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 21:46:23 +01:00
Marton Balint
f7eb50f3c0
ffplay: increase maximum frame duration to 1 hour for streams without TS discontinuity
...
Partially fixes ticket #1707 . A-V sync still needs some work after seeking...
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-11-28 21:39:50 +01:00
Marton Balint
2efd01a32f
ffplay: fix updating external clock after seeking
...
Now it should work for the timestamp based and the byte based case as well.
Also only update the external clock if the seeking was successful.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-11-28 21:39:50 +01:00
Marton Balint
fc38bbcd6a
ffplay: disallow seeking before the start of the file
...
In timestamp based seeking we update the external clock to the seek target,
therefore we should use sane timestamps even if libavformat could handle
seeking before the start of the file.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-11-28 21:39:50 +01:00
Anton Khirnov
2c3b665379
vf_select: switch to filter_frame
...
The new code reads the input frame when its ready, the previous
code did read the input frame during start_frame at which point it
may not yet be available.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 21:28:02 +01:00
Anton Khirnov
0663a9eab8
vf_showinfo: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 21:28:02 +01:00
Michael Niedermayer
6be0df5080
vf_pad: switch to filter_frame
...
Based on patch by Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 21:28:02 +01:00
Daniel Verkamp
a0958949eb
Vivo demuxer
2012-11-28 20:13:05 +00:00
Michael Niedermayer
e42b7ff2b2
vf_pixdesctest: switch to filter_frame
...
Based on patch by Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 20:25:55 +01:00
Anton Khirnov
1f94f86ab5
vf_libopencv: switch to filter_frame, this filter did not support slices
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 20:25:55 +01:00
Clément Bœsch
5d170b09d3
lavfi/geq: switch to filter_frame.
2012-11-28 20:20:40 +01:00
Anton Khirnov
2a06bc10e7
vf_gradfun: switch to filter_frame, this filter did not support slices
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 20:06:06 +01:00
Anton Khirnov
6325957b28
vf_frei0r: switch to filter_frame, the filter did not support slices
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 20:06:06 +01:00
Clément Bœsch
57d9c86bf3
lavfi/edgedetect: switch to filter_frame.
2012-11-28 20:03:01 +01:00
Diego Biurrun
e4d349b401
fate: h264: Add dependencies
2012-11-28 19:58:21 +01:00
Diego Biurrun
d2f576bd49
fate: ea: Add dependencies
2012-11-28 19:36:13 +01:00
Diego Biurrun
47e7fb8815
fate: Do not unconditionally run libavutil tests
...
Now that libavutil can be disabled, this should be conditional.
2012-11-28 19:36:13 +01:00
Anton Khirnov
92b57e8dac
vf_fps: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 19:28:41 +01:00
Anton Khirnov
e67fdbffe5
vf_fieldorder: switch to filter_frame, this filter did not support real slices
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 19:23:32 +01:00
Michael Niedermayer
59907340e1
libavfilter/fifo: fix indent
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 19:18:24 +01:00
Michael Niedermayer
b5572ab861
vf_boxblur: cosmetics to reduce diff to qatar
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 19:18:24 +01:00
Diego Biurrun
2c4593dd13
rtpenc_chain: Remove unused variable
2012-11-28 18:17:49 +01:00
Michael Niedermayer
7bfa2f25c0
vf_drawtext: switch to filter_frame, this filter did not support slices
...
Based on patch by Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 18:07:51 +01:00
Michael Niedermayer
384641468b
vf_delogo: switch to filter_frame, this filter did not support slices
...
Based on patch by Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 18:07:33 +01:00
Michael Niedermayer
ed547e2ce5
vf_hqdn3d: fix permissions
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 18:05:09 +01:00
Michael Niedermayer
46a4e72bc5
vf_delogo: fix order of operations in apply_delogo()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 18:03:03 +01:00
Anton Khirnov
250b122e3a
vf_boxblur: switch to filter_frame, boxblur did not support slices
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 17:33:42 +01:00
Anton Khirnov
05945c7f88
libavfilter/fifo: switch to filter_frame, the filter did not support slices.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 17:33:42 +01:00
Paul B Mahol
6549a9b753
pgssubdec: remove unused variable
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-28 16:21:25 +00:00
Justin Ruggles
c74f81786d
nuv: cosmetics: pretty-printing
2012-11-28 11:18:50 -05:00
Justin Ruggles
5c7bf2ddde
lavf: move nuv fourcc audio tags from riff to nuv
2012-11-28 11:18:50 -05:00
Justin Ruggles
ab87d9b667
nuv: check for malloc failure when allocating extradata
...
Also make sure extradata is freed in the case where multiple
NUV_EXTRADATA frame types are found. This may not happen in practice,
but it could happen in a malformed stream, which would lead to a memleak
if not handled.
2012-11-28 11:18:50 -05:00
Justin Ruggles
261e9348ef
lavf: add a common function for selecting a pcm codec from parameters
2012-11-28 11:18:50 -05:00
Justin Ruggles
838ed296df
nuv: use the stream indices generated by avformat_new_stream()
2012-11-28 11:18:50 -05:00
Justin Ruggles
bfe5454cd2
lavf: move ff_codec_get_tag() and ff_codec_get_id() definitions to internal.h
2012-11-28 11:18:49 -05:00
Justin Ruggles
cdaa1f84fb
lavf: move "MP3 " fourcc from riff to nut
...
Original commit, 7b24f9b , says it was added because it is used in libnut.
2012-11-28 11:18:49 -05:00
Paul B Mahol
01eed8c607
iff demuxer: 16SV support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-28 15:55:14 +00:00
Anton Khirnov
1b43fc127c
vf_hqdn3d: switch to filter_frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 16:43:34 +01:00
Michael Niedermayer
8227a0b7df
libavfilter: update doxy for filter_frame
...
Based on patch by Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 16:43:34 +01:00
Michael Niedermayer
3ed483cdfa
libavfilter: Support using filter_frame for video
...
With this we can mix filters using filter_frame OR start/draw_slice/end
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 16:43:34 +01:00
Michael Niedermayer
a0b8eec719
default_filter_frame: fix argument name
...
Based on code by Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 16:43:34 +01:00
Michael Niedermayer
f6dd145533
avfilter: check that filter_frame and slice variants are not both used
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 16:43:34 +01:00
Michael Niedermayer
cd7febd33f
lavfi: replace filter_samples by filter_frame
...
Based on patch by Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 16:43:34 +01:00
Reimar Döffinger
16af29a7a6
vc1dec: add hacks to ensure static tables are initialized in open().
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2012-11-28 16:41:48 +01:00
Reimar Döffinger
92947c6d72
Use err_out label for error-case cleanup.
...
Will simplify future changes (introducing proper
locking around opening/closing parsers).
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2012-11-28 16:41:48 +01:00
Reimar Döffinger
8aa29f063c
atrac3: do not use init_static_data to init VLC data.
...
It would be called while registering the codec, which means
it needlessly wastes memory when it is never used.
Instead do the work when first opening the codec.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2012-11-28 16:41:48 +01:00
Diego Biurrun
db9dbfb72a
fate: vpx: Add dependencies
2012-11-28 16:19:55 +01:00
Diego Biurrun
a1d1fc9b4a
fate: Fix wavpack-matroskamode test dependencies
2012-11-28 16:05:44 +01:00
Diego Biurrun
9b15c0a9b3
x86: dsputilenc: port to cpuflags
2012-11-28 16:05:44 +01:00
Diego Biurrun
1f3f896564
fate: Add dependencies for Vorbis, ProRes, QTRLE, utvideo tests
2012-11-28 14:45:28 +01:00
Diego Biurrun
5116ac7774
fate: real: Add dependencies
2012-11-28 14:45:28 +01:00
Diego Biurrun
9534e0f552
fate: lossless-audio: Add dependencies
2012-11-28 14:45:28 +01:00
Diego Biurrun
89145fbbfe
x86: h264dsp: Fix linking with yasm and optimizations disabled
...
Some optimized functions reference optimized symbols, so the functions
must be explicitly disabled when those symbols are unavailable.
2012-11-28 14:45:28 +01:00
Paul B Mahol
23101ceaa2
avrdec: implement seeking
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-28 13:03:48 +00:00
Michael Niedermayer
42d3fea65f
Merge commit 'af7d13ee4a4bf8d708f9b0598abb8f6e22b76de1'
...
* commit 'af7d13ee4a4bf8d708f9b0598abb8f6e22b76de1':
asink_nullsink: plug a memory leak.
x86: h264_idct: port to cpuflags
x86: cpu: Drop unused HAVE_RWEFLAGS condition
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 13:32:17 +01:00
Michael Niedermayer
264441715b
Merge commit 'f5fa03660db16f9d78abc5a626438b4d0b54f563'
...
* commit 'f5fa03660db16f9d78abc5a626438b4d0b54f563':
vble: Do not abort decoding when version is not 1
lavr: do not pass consumed samples as a parameter to ff_audio_resample()
lavr: correct the documentation for the ff_audio_resample() return value
lavr: do not pass sample count as a parameter to ff_audio_convert()
x86: h264_weight: port to cpuflags
configure: Enable avconv filter dependencies automatically
Conflicts:
configure
libavcodec/x86/h264_weight.asm
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 13:27:18 +01:00
Paul B Mahol
b0d9b011c7
avrdec: sample rate takes 3 bytes not 4
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-28 11:02:22 +00:00
Paul B Mahol
1793128cf7
avrdec: fix typo in .long_name
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-28 10:56:59 +00:00
Anton Khirnov
4c973de9a5
vf_fieldorder: require write permissions
...
This filter modifies the input frame.
2012-11-28 08:50:24 +01:00
Anton Khirnov
49dd71a6f1
vf_fieldorder: reindent
2012-11-28 08:50:24 +01:00
Anton Khirnov
565e4993c6
lavfi: merge start_frame/draw_slice/end_frame
...
Any alleged performance benefits gained from the split are purely
mythological and do not justify added code complexity.
2012-11-28 08:50:19 +01:00
Anton Khirnov
bb6c67bb36
lavfi: remove vf_slicify
...
The following commit will make it useless.
The crop_scale_vflip FATE test changes because of off-by-one differences
in output when vflipped slices are passed to sws.
2012-11-28 08:44:01 +01:00
Anton Khirnov
af7d13ee4a
asink_nullsink: plug a memory leak.
2012-11-28 08:43:54 +01:00
Michael Niedermayer
2c923983b6
qpeg: reset palette on seeks
...
Fixes Ticket1921
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 05:16:15 +01:00
Michael Niedermayer
2754dbb6e1
nut: put nut PCM audio tags in front of avi tags.
...
This fixes correctly storing and identifying PCM in nut.
Based on patch by Luca Barbato
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-28 02:03:56 +01:00
Diego Biurrun
2e89aeed65
x86: h264_idct: port to cpuflags
2012-11-28 00:28:09 +01:00
Diego Biurrun
490df522c7
x86: cpu: Drop unused HAVE_RWEFLAGS condition
...
The test for rweflags was dropped in a previous commit.
2012-11-28 00:28:09 +01:00
Stefano Sabatini
3a227f5d90
doc: add ffmpeg-protocols.texi manual
2012-11-27 23:35:45 +01:00
Stefano Sabatini
9c492271a8
doc: move syntax and eval chapters from libavutil to ffmpeg-utils
...
Move utilities description to a dedicated manual, consistent with what I
did with the rest of the documentation.
2012-11-27 23:35:35 +01:00
Stefano Sabatini
d82331721e
doc: add libavdevice.texi and ffmpeg-devices.texi files
2012-11-27 23:35:25 +01:00
Stefano Sabatini
8ddeae5ae7
doc: add libavformat.texi and ffmpeg-formats.texi files
2012-11-27 23:35:19 +01:00
Stefano Sabatini
2ac6a3d1bf
lavfi/drawtext: add support to expansion of generic expressions
2012-11-27 23:27:50 +01:00
Piotr Bandurski
f5fa03660d
vble: Do not abort decoding when version is not 1
...
Some combinations of OS, VirtualDub, and VBLE can accidentally
set the version to a value other than 1. Since no other version
of VBLE was ever released, simply warn about it.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-11-27 17:16:04 -05:00
Justin Ruggles
1d86aa8b0f
lavr: do not pass consumed samples as a parameter to ff_audio_resample()
...
Since the resampler handles buffering of unconsumed samples internally, the
caller does not need this information.
2012-11-27 16:49:19 -05:00
Justin Ruggles
d2f9f8e094
lavr: correct the documentation for the ff_audio_resample() return value
2012-11-27 16:49:18 -05:00
Justin Ruggles
7f534d11ed
lavr: do not pass sample count as a parameter to ff_audio_convert()
...
It will always be the number of samples in the input buffer, so just use that
directly instead of passing it as a separate parameter.
2012-11-27 16:49:18 -05:00
Diego Biurrun
28e1cf19aa
x86: h264_weight: port to cpuflags
2012-11-27 21:10:38 +01:00
Michael Niedermayer
2cfa6fd025
mjpegdec: dont set got_picture to 0 per frame.
...
Fixes Ticket1915
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-27 20:16:49 +01:00
Michael Niedermayer
541efe4120
mjpegdec: reset got_picture on errors, successful return, init and flush.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-27 20:16:49 +01:00
Michael Niedermayer
1c16483cc0
mjpegdec: replace returns by goto fail in frame decode.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-27 20:16:49 +01:00
Michael Niedermayer
de9fc0e9d6
mjpegdec: make sure ret is set before its used.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-27 20:16:49 +01:00
Paul B Mahol
761aba6811
fate: add ADPCM IMA Dialogic OKI decoder test
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-27 19:07:18 +00:00
Michael Niedermayer
93b89868e1
h264: support invalid annex B in mp4
...
Fixes Ticket1914
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-27 18:06:00 +01:00
Martin Storsjö
54fd593a0e
configure: Enable avconv filter dependencies automatically
...
This makes sure minimal configurations such as
"--disable-everything --enable-avconv" will enable the filters
necessary for running avconv, instead of just keeping avconv
disabled (even if the user specified "--enable-avconv").
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-11-27 17:05:01 +02:00
Michael Niedermayer
c2c1726847
ffserver remove CONFIG_NOCUTILS check
...
Nothing sets CONFIG_NOCUTILS, i also dont remember anything setting it in
the past.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-27 14:41:41 +01:00
Michael Niedermayer
4063bb212e
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
h264: set Picture.owner2 to the current thread
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-27 14:36:53 +01:00
Michael Niedermayer
577b39aea2
Merge commit '6e5cdf26281945ddea3aaf5eca4d127791f23ca8'
...
* commit '6e5cdf26281945ddea3aaf5eca4d127791f23ca8':
h264: check ref_count validity for num_ref_idx_active_override_flag
h264: add missing new line to log message
dcadec: skip QMF on unused channels
wavenc: write fact chunk sample count at the correct file position
riff: do not add empty metadata tags in INFO chunk
Conflicts:
libavcodec/dcadec.c
libavcodec/h264.c
libavformat/riff.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-27 14:31:04 +01:00
Michael Niedermayer
b4d4e51027
Merge commit '3c370f5abc55739a261534b9f9bdc739cedbbbb9'
...
* commit '3c370f5abc55739a261534b9f9bdc739cedbbbb9':
riff: only warn on a bad INFO chunk code size instead of failing
configure: Add separate list for libraries and use where appropriate
x86: float_dsp: add SSE version of vector_fmul_scalar()
Conflicts:
configure
libavformat/riff.c
libavutil/x86/float_dsp.asm
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-27 14:10:05 +01:00
Michael Niedermayer
2684d2e3ea
Merge commit '284ea790d89441fa1e6b2d72d3c1ed6d61972f0b'
...
* commit '284ea790d89441fa1e6b2d72d3c1ed6d61972f0b':
dsputil: move vector_fmul_scalar() to AVFloatDSPContext in libavutil
aacenc: use the correct output buffer
aacdec: fix signed overflows in lcg_random()
base64: fix signed overflow in shift
Conflicts:
libavcodec/dsputil.c
libavutil/base64.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-27 13:39:52 +01:00
Michael Niedermayer
257196209f
file: fix 10l error in access() check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-27 13:24:00 +01:00
Janne Grunau
d5e83122bd
h264: set Picture.owner2 to the current thread
...
This does not seem to have an effect currently. Fate-h264 passes with
THREADS=1..16 and both threading types as before. It fixes however a
segfault during error resilience with my adaptive-frame-mt patchset.
A picture in use during error resilience gets realloced in another
thread in the fuzzed sample sample_varPAR.avi_s226019.
2012-11-27 12:26:33 +01:00
Janne Grunau
6e5cdf2628
h264: check ref_count validity for num_ref_idx_active_override_flag
...
Fixes segfault in the fuzzed sample bipbop234.ts_s226407.
CC: libav-stable@libav.org
2012-11-27 12:26:33 +01:00
Janne Grunau
150b2361ca
h264: add missing new line to log message
2012-11-27 12:26:33 +01:00
Paul B Mahol
51d6879939
AFC demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-27 10:17:28 +00:00
Paul B Mahol
10c8f91341
astdec: improve probing
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-27 10:16:30 +00:00
Mark Himsley
13c6252536
lavfi/overlay: enable yuva420p as overlay background
...
Same calculation as for RGBA etc to create unpremultiplied output.
Useful for creating an intermediate "Mix/Effects bank", in vision mixer
(switcher) terminology.
Example command:
ffmpeg -i input.mov -vf
"[in]scale=iw:ih:interl=1,format=yuv420p[bg];movie=BBC_blocks_watermark.png,scale=iw:ih:interl=1,format=yuva420p[dog];movie=Kickabout_strap.mov,scale=iw:ih:interl=1,format=yuva420p[strap];[strap][dog]overlay=0:0[me1];[bg][me1]overlay=0:0,scale=0:0:interl=1[out]"
-b:v 3M -an output.mov
Fix trac ticket #549 .
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2012-11-27 10:44:42 +01:00
Michael Niedermayer
8aa6d899c0
cafdec: fix seeking with adpcm
...
Fixes Ticket1906
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-27 05:03:24 +01:00
Michael Niedermayer
16ef48c37f
file: Fallback to stat() based file_check() when access() or its named flags are unavailable.
...
Should fix compilation on native windows
We could also use _access() and literal numbers as flags but i cant test it
and the compilation failure should be fixed ASAP
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-27 05:03:24 +01:00
Michael Niedermayer
465becbc4f
configure: check for access()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-27 05:03:23 +01:00
Michael Niedermayer
5d47850bbd
dcadec: skip QMF on unused channels
...
When the extra rear channel is present but unused, the
s->channel_order_tab[] value for that channel is -1. The QMF can be
skipped for the extra channel, and doing so avoids an out-of-array read
on s->samples_chanptr[].
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2012-11-26 22:50:37 -05:00
Michael Niedermayer
407921072f
file: fix file_check()
...
Fixes Ticket1904
This should work on windows, but if not please contact me ASAP
i have another idea on how to solve this without access() if that
really doesnt work on windows.
Strongly based on patch by divVerent
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-27 03:53:53 +01:00
Michael Niedermayer
2fe0094e0b
wavenc: write fact chunk sample count at the correct file position
...
Fixes curruption of metadata in the INFO chunk.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2012-11-26 19:11:10 -05:00
Justin Ruggles
3c370f5abc
riff: only warn on a bad INFO chunk code size instead of failing
...
fixes Bug 392
2012-11-26 19:08:51 -05:00
Justin Ruggles
259d8c5647
riff: do not add empty metadata tags in INFO chunk
2012-11-26 19:08:51 -05:00
Diego Biurrun
d89f2fa970
configure: Add separate list for libraries and use where appropriate
2012-11-26 22:46:07 +01:00
Michael Niedermayer
109268c826
get_dc: fix rounding
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 21:26:24 +01:00
Michael Niedermayer
8d231e37af
af_aresample: consistently use ROUNDED_DIV
...
This fixes issues with negative timestamps
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 21:09:15 +01:00
Michael Niedermayer
89d5262289
mpeg4videodec: use ROUNDED_DIV for pts calculation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 21:08:57 +01:00
Paul B Mahol
67be7fb432
adpcm: thp, afc: support multichannel decoding
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-26 19:52:40 +00:00
Sergio Garcia Murillo
ec51b3308e
h264: Fix minor bug in h264.c error trace
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 17:38:35 +01:00
Justin Ruggles
947f933687
x86: float_dsp: add SSE version of vector_fmul_scalar()
2012-11-26 11:30:19 -05:00
Justin Ruggles
284ea790d8
dsputil: move vector_fmul_scalar() to AVFloatDSPContext in libavutil
2012-11-26 11:29:06 -05:00
Michael Niedermayer
1e27655388
aacenc: use the correct output buffer
...
This fixes segfault caused by 3d3cf6745e
when SingleChannelElement.ret was renamed to SingleChannelElement.ret_buf.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2012-11-26 11:17:17 -05:00
Michael Niedermayer
4b5a12a2cb
af_aresample: fix rounding of negative timestamps
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 16:25:47 +01:00
Michael Niedermayer
386fc67c79
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavf: avoid integer overflow in ff_compute_frame_duration()
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 16:24:23 +01:00
Michael Niedermayer
a3f30f2e99
Merge commit '5ae72f54532960cb9eae82a1c9e8d505106c022b'
...
* commit '5ae72f54532960cb9eae82a1c9e8d505106c022b':
flashsv: check for keyframe before using differential coding
h264: enable low delay only if no delayed frames were seen
x86: fix build without inline asm
Conflicts:
libavcodec/h264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 16:11:02 +01:00
Michael Niedermayer
59b68ee887
Merge commit '3d3cf6745e2a5dc9c377244454c3186d75b177fa'
...
* commit '3d3cf6745e2a5dc9c377244454c3186d75b177fa':
aacdec: use float planar sample format for output
Conflicts:
libavcodec/aacdec.c
libavcodec/aacsbr.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 15:15:02 +01:00
Mans Rullgard
edd80ec7e3
aacdec: fix signed overflows in lcg_random()
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-11-26 13:34:58 +00:00
Mans Rullgard
dd3b73f390
base64: fix signed overflow in shift
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-11-26 13:34:58 +00:00
Michael Niedermayer
a13148f633
Merge commit '8e134e5104e99a69cd4cea10540a7ce9c3682a2c'
...
* commit '8e134e5104e99a69cd4cea10540a7ce9c3682a2c':
lavc: clarify get_buffer() documentation
mpegaudiodec: use planar sample format for output unless packed is requested
x86: h264 qpel: use the correct number of utilized xmm regs in cglobal
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 14:24:19 +01:00
Michael Niedermayer
86270236d5
dsputil_mmx: ff_put_dirac_pixels depend now on yasm.
...
Fix compile failure without yasm
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 13:59:41 +01:00
Peter Ross
76f60788e7
iff demuxer: don't bother checking bitmap compression type; iff decoder does this now
...
Signed-off-by: Peter Ross <pross@xvid.org >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
2012-11-26 23:29:02 +11:00
Peter Ross
f737e76026
iff decoder: reindent
...
Signed-off-by: Peter Ross <pross@xvid.org >
2012-11-26 23:29:02 +11:00
Peter Ross
929a24efff
iff decoder: merge iff ilbm and byterun1 decoders
...
Signed-off-by: Peter Ross <pross@xvid.org >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
2012-11-26 23:29:02 +11:00
Peter Ross
f2dc82b90f
dpx: perform width/height upgrade and av_image_check_size earlier to prevent segfault on malformed input
...
Signed-off-by: Peter Ross <pross@xvid.org >
2012-11-26 12:11:08 +00:00
Paul B Mahol
5a3370816f
av_get_audio_frame_duration: add ADPCM_AFC
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-26 11:59:44 +00:00
Paul B Mahol
c5607dfddc
doc/general: improve AST description
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-26 10:40:51 +00:00
Janne Grunau
7709ce029a
lavf: avoid integer overflow in ff_compute_frame_duration()
...
Scaling the denominator instead of the numerator if it is too large
loses precision. Fixes an assert caused by a negative frame duration in
the fuzzed sample nasa-8s2.ts_s202310.
CC: libav-stable@libav.org
2012-11-26 10:26:08 +01:00
Janne Grunau
5ae72f5453
flashsv: check for keyframe before using differential coding
...
Fixes a segfault in te fuzzed sample resolutionchange.flv_s211713.
CC: libav-stable@libav.org
2012-11-26 10:26:01 +01:00
Janne Grunau
706acb558a
h264: enable low delay only if no delayed frames were seen
...
Dropping frames is undesirable but that is the only way by which the
decoder could return to low delay mode. Instead emit a warning and
continue with delayed frames.
Fixes a crash in fuzzed sample nasa-8s2.ts_s20033 caused by a larger
than expected has_b_frames value. Low delay keeps getting re-enabled
from a presumely broken SPS.
CC: libav-stable@libav.org
2012-11-26 10:25:39 +01:00
Michael Niedermayer
b5e0e327ce
ffmpeg: fix swr filter_type for auto inserted aresample filters
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 04:06:19 +01:00
Michael Niedermayer
4bd6d73fc8
ffmpeg: fix passing swresample options to the auto inserted swr
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 03:51:29 +01:00
Michael Niedermayer
69d45d2ecb
avfiltergraph: add aresample_swr_opts
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 03:51:08 +01:00
Michael Niedermayer
2624027439
lavu: drop time redefinition as it causes some problems in some uncommon configurations.
...
Based-on: e96d90eed6
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 02:23:30 +01:00
Michael Niedermayer
7b29b07394
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
remove #defines to prevent use of discouraged external functions
x86: h264: Convert 8-bit QPEL inline assembly to YASM
Conflicts:
libavcodec/x86/dsputil_mmx.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 02:17:02 +01:00
Diego Biurrun
7ee4071362
x86: fix build without inline asm
...
The qpel functions referenced here are not related to h264 and should
thus never have been under CONFIG_H264QPEL.
Signed-off-by: Mans Rullgard <mans@mansr.com >
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-11-26 01:50:47 +01:00
Paul B Mahol
7d2156aee8
adpcm/thp: make use of ADPCMChannelStatus to store prev samples
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-26 00:44:45 +00:00
Justin Ruggles
3d3cf6745e
aacdec: use float planar sample format for output
2012-11-25 19:06:36 -05:00
Justin Ruggles
8e134e5104
lavc: clarify get_buffer() documentation
...
This is needed for the AAC decoder, which may need to call get_buffer()
more than once if the channel configuration changes.
2012-11-25 19:06:36 -05:00
Justin Ruggles
3ffed68c2a
mpegaudiodec: use planar sample format for output unless packed is requested
2012-11-25 19:05:58 -05:00
Michael Niedermayer
66c3bac2b9
Merge commit 'ad01ba6ceaea7d71c4b9887795523438689b5a96'
...
* commit 'ad01ba6ceaea7d71c4b9887795523438689b5a96':
x86: h264: Remove 3dnow QPEL code
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 00:57:33 +01:00
Justin Ruggles
2d3993ce8c
x86: h264 qpel: use the correct number of utilized xmm regs in cglobal
...
Fixes xmm register clobbering on win64.
2012-11-25 18:48:43 -05:00
Michael Niedermayer
bf2f93cdbf
Merge commit '28c8e288fa0342fdef532a7522a4707bebf831cc'
...
* commit '28c8e288fa0342fdef532a7522a4707bebf831cc':
x86: h264_chromamc: port to cpuflags
yop: fix typo
avconv: fix copying per-stream metadata.
doc: avtools-common-opts: Fix terminology concerning metric prefixes
configure: suncc: Add compiler arch support for Nehalem & Sandy Bridge
riff: Make ff_riff_tags static and move under appropriate #ifdef
Conflicts:
libavformat/riff.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-26 00:43:45 +01:00
Stefano Sabatini
b473c9937e
lavu/samplefmt: return the size of the allocated samples buffer at the next bump
...
Make the functions av_samples_fill_arrays, av_samples_alloc, and
avcodec_fill_audio_frame return a buffer size rather than 0 in case of
success. This will be enabled at the next libavutil major bump, in order
to preserve backward compatibility.
Returning the size allows to simplify the code, avoiding a few function
calls.
2012-11-25 23:23:24 +01:00
Ivan Pozdeev
329b8f85b0
doc/encoders: add a note for x264 options that use colon
...
Signed-off-by: Ivan Pozdeev <ivan_pozdeev@mail.ru >
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2012-11-25 23:17:26 +01:00
Carl Eugen Hoyos
d643dd5c55
Support switching field order when decoding frwu.
...
The binary encoder has a "switch field order" setting that
moves one line from the top to the bottom of the frame.
Fixes ticket #966 .
2012-11-25 23:06:12 +01:00
Janne Grunau
e96d90eed6
remove #defines to prevent use of discouraged external functions
...
Preventing the use of discouraged or 'insecure' external functions
through defines in an internal header is not a good solution. The
header is not guaranteed to be included universally which makes
overlooking bad use of said functions during review more likely.
There are cases were those functions either are the most straight
forward solution or even have to be used. Using malloc or free is
required if the allocation or release is done by other libraries.
2012-11-25 23:02:04 +01:00
Michael Niedermayer
b5b9686615
imc: flush decoder
...
Fixes Ticket1899
Based on code by ami_stuff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-25 22:48:18 +01:00
Michael Niedermayer
579d21f777
tga: check palette size earlier.
...
Fixes Ticket1895
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-25 22:33:54 +01:00
Daniel Kang
610e00b359
x86: h264: Convert 8-bit QPEL inline assembly to YASM
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-11-25 20:38:35 +01:00
Stefano Sabatini
e55c3857d2
lavc/utils: check return value of avcodec_fill_audio_frame() for < 0
...
Assume that the value is always negative in case of error, as stated in
the docs, do not assume that the value cannot be != 0 in case of success.
2012-11-25 20:34:01 +01:00
Daniel Kang
ad01ba6cea
x86: h264: Remove 3dnow QPEL code
...
The only CPUs that have 3dnow and don't have mmxext are 12 years old.
Moreover, AMD has dropped 3dnow extensions from newer CPUs.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-11-25 20:32:55 +01:00
Stefano Sabatini
51e9f58e1c
lavu/opt: add support for reading pixel and sample format through av_get_int()
...
Simplify backward compatibility, when switching from AV_OPT_TYPE_INT to
AV_OPT_TYPE_SAMPLE/PIXEL_FMT.
2012-11-25 20:31:39 +01:00
Stefano Sabatini
cf6c6134cd
doc: add libswscale.texi and ffmpeg-scaler.texi files
2012-11-25 19:21:30 +01:00
Peter Ross
33181975b5
mpsmpeg4: use av_image_check_size
...
Signed-off-by: Peter Ross <pross@xvid.org >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-25 18:38:12 +01:00
Peter Ross
a246a603bf
avrndec: use av_image_check_size
...
Signed-off-by: Peter Ross <pross@xvid.org >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-25 18:38:12 +01:00
Peter Ross
2d954ccd84
rawdec: use av_image_check_size
...
Signed-off-by: Peter Ross <pross@xvid.org >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-25 18:38:12 +01:00
Stefano Sabatini
252746d052
lavu/imgutils: add consistency checks to av_image_copy_plane()
...
Add assertions and abort in case of invalid |dst_linesize| < bytewidth or
|src_linesize| < bytewidth.
Avoid to silently corrupt memory.
2012-11-25 18:19:59 +01:00
Diego Biurrun
28c8e288fa
x86: h264_chromamc: port to cpuflags
2012-11-25 17:25:10 +01:00
Paul B Mahol
b491da18d1
yop: fix typo
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2012-11-25 11:10:52 -05:00
Anton Khirnov
4632abc7a3
avconv: fix copying per-stream metadata.
...
It is handled separately from other types because it uses stream
specifiers and currently that triggers an assert in SET_DICT.
CC:libav-stable@libav.org
2012-11-25 16:35:20 +01:00
Stefano Sabatini
26c531cc22
lavu/opt: fix range shown in set_format() log message
2012-11-25 15:50:46 +01:00
Stefano Sabatini
be2c0bc949
configure: prefer "resampling" in the libswresample pkg-config description
2012-11-25 15:01:33 +01:00
Stefano Sabatini
c70ec631c9
lavu/opt: add av_opt_ accessors for pixel/format/image size options
...
The interface is implemented against the style of the other options
accessors. Possibly simplify programmatic setting of options.
2012-11-25 15:01:33 +01:00
Peter Ross
fdd71cf04c
iff decoder: initialise HAM line decoder with first palette entry
...
The palette is organised into 'hold' and 'modify' pairs, hence why
the first palette entry is pal[1].
Fixes ticket #1701 .
Signed-off-by: Peter Ross <pross@xvid.org >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-25 14:40:36 +01:00
Michael Niedermayer
8f507feecb
avfiltergraph: add AVOption table
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-25 14:36:22 +01:00
Marcus Stollsteimer
2bf794b698
doc: avtools-common-opts: Fix terminology concerning metric prefixes
...
'k', 'M', and 'G' are SI (unit) prefixes or metric prefixes,
not 'number postfixes'. Also, the statement regarding binary
prefixes ("powers of 2 are used instead of powers of 10")
might be misinterpreted (1 kB = 10^3 B, but 1 KiB != 2^3 B).
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-11-25 14:26:39 +01:00
Sean McGovern
f2ce813e37
configure: suncc: Add compiler arch support for Nehalem & Sandy Bridge
...
GCC does not appear to have a -march= string for Westmere, which is a
bit surprising as it has a few more instructions than a Nehalem, but
a few less than a Sandy Bridge.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-11-25 14:15:30 +01:00
Diego Biurrun
ddb009425c
riff: Make ff_riff_tags static and move under appropriate #ifdef
...
The table is not used outside the file.
2012-11-25 13:32:10 +01:00
Michael Niedermayer
48cbdaea15
smacker: fix smacker_decode_header_tree() empty vlc table init
...
Fixes Ticket1858
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-25 02:40:59 +01:00
Michael Niedermayer
e6305f7631
mov: set flags to indicate that byte wise seeking is not supported.
...
Fixes Ticket1831
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-25 01:19:33 +01:00
Stefano Sabatini
e903cb4194
doc: add libswresample.texi and ffmpeg-resampler.texi files
2012-11-25 00:28:36 +01:00
Stefano Sabatini
f62abbf3b7
doc: move filters documentation to dedicated manual page ffmpeg-filters
2012-11-25 00:28:27 +01:00
Stefano Sabatini
fa4ead1d66
doc: move codec options and descriptions to a dedicated manual page
2012-11-25 00:27:07 +01:00
Nicolas George
ca4872e887
lavf/sbgdec: use proper constants for av_log().
2012-11-24 23:56:52 +01:00
Carl Eugen Hoyos
d080292651
Support u8 in aiff.
...
Fixes ticket #1960 .
Reviewed-by; Paul B Mahol
2012-11-24 21:21:50 +01:00
Michael Niedermayer
807fa714f0
adpcmdec: Fix OOM/infloop
...
Found-by: ami_stuff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-24 19:29:03 +01:00
Michael Niedermayer
34b6f1efa2
libopencore_amrwb: check packet size
...
Fix OOM
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-24 18:26:54 +01:00
Michael Niedermayer
57c0da6fe4
smacker: sanity check audio size.
...
Fixes, excessive memory allocation
Fixes Ticket1892
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-24 18:02:08 +01:00
Michael Niedermayer
014058abea
af_aresample: check ff_get_audio_buffer() failure
...
Fixes null pointer dereference
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-24 17:33:32 +01:00
Michael Niedermayer
ed017ab945
atrac1: Check block align.
...
Fixes OOM
Fixes second samples posted in Ticket1893
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-24 16:38:22 +01:00
Michael Niedermayer
5c392bac9a
ra288: Check block align.
...
Fixes OOM
Fixes Ticket1893
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-24 16:38:22 +01:00
Carl Eugen Hoyos
387f50606c
Fix type of default value for v210 decoder option -custom_stride.
...
Reviewed-by: Paul B Mahol
2012-11-24 16:09:07 +01:00
Piotr Bandurski
081bf60ec6
c93: signal EOF
2012-11-24 15:04:32 +00:00
Paul B Mahol
05b02e9c0f
mmf: simplify code by using FFMIN
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-24 14:27:55 +00:00
Paul B Mahol
7f321fca23
mmf: signal EOF
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-24 14:24:13 +00:00
Paul B Mahol
9378a90add
omadec: remove stale comment
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-24 11:41:43 +00:00
Paul B Mahol
4995145f40
codec_desc: mark PCM A-law/mu-law lossy
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-24 11:19:27 +00:00
Paul B Mahol
2d62732b21
codec_desc: provide aliases for PCM A-law/mu-law
...
Inspired by d21b82fd3a .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-24 11:14:06 +00:00
Paul B Mahol
3d8e684f05
ADPCM IMA Dialogic decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-24 10:56:47 +00:00
Paul B Mahol
ed591ed842
rl2: return meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-24 10:28:23 +00:00
Paul B Mahol
1a61c7a54b
wvenc: multichannel muxing
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-24 10:20:46 +00:00
Paul B Mahol
1b9467aea1
omaenc: remove superfluous "OMA: "
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-24 10:04:20 +00:00
Paul B Mahol
bc5ba1c7fd
omaenc: abort for unsupported codecs
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-24 10:04:20 +00:00
Piotr Bandurski
6d6bf250dd
riff: fix decoding of 24-bit packed int (type 1, 20-bit)
2012-11-24 10:54:38 +01:00
Carl Eugen Hoyos
95903e3cfd
Support G.722 in Sun AU.
2012-11-24 10:43:32 +01:00
Carl Eugen Hoyos
df651cf42e
Add an annotation field as required by the specification when muxing Sun AU.
...
Reviewed-by: Paul B Mahol
2012-11-24 10:43:11 +01:00
Michael Niedermayer
f1470ca685
ratecontrol: Fix assertion failure on mismatching 2pass file.
...
Fixes Ticket582
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-24 03:03:17 +01:00
Michael Niedermayer
66244baf1d
ffmpeg: fix mixed declarations and statements.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-24 03:02:11 +01:00
Michael Niedermayer
d92073ac93
ffmpeg: Correct starttime based on non discarded streams.
...
Fixes Ticket1830
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-24 01:54:49 +01:00
Michael Niedermayer
fe97bf60b8
ffmpeg: minor simplification of wraping code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-24 01:34:26 +01:00
Michael Niedermayer
09456d0df1
riff: ignore ff_read_riff_info() failure.
...
Some files simply contain invalid info tags.
Fixes unrelated bug posted into Ticket1821
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-23 23:41:57 +01:00
Stefano Sabatini
9a7256e8e0
ffprobe: free dictionary in opt_show_entries()
...
Fix memleak.
2012-11-23 18:49:26 +01:00
Paul B Mahol
a8ebbf87be
fate: add ADPCM AFC decoder test
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-23 17:30:05 +00:00
Paul B Mahol
6f9ca8cbe0
fate: add AST demuxer test
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-23 17:30:05 +00:00
Michael Niedermayer
0efcf16a3e
replace av_log(0, by av_log(NULL,
...
The first parameter is a pointer and NULL is more correct
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-23 18:10:02 +01:00
Michael Niedermayer
c322f19855
vf_mandelbrot: give all av_log a context
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-23 18:05:16 +01:00
Michael Niedermayer
533a8b2a7d
x86/mpegvideoenc_template: use av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-23 17:57:22 +01:00
Michael Niedermayer
8328df74f3
motion_est: use av_assert* instead of assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-23 16:40:53 +01:00
Michael Niedermayer
56540bb3b5
h263dec: switch 2 asserts to av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-23 16:36:17 +01:00
Michael Niedermayer
5da885b84d
dv: use av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-23 15:52:12 +01:00
Michael Niedermayer
7ca97b6b3c
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
configure: sort cpuflags section by architecture
Conflicts:
configure
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-23 14:03:31 +01:00
Michael Niedermayer
d28467b62e
Merge commit '457cc333b424994ecf80a82369325771e0397fd9'
...
* commit '457cc333b424994ecf80a82369325771e0397fd9':
configure: properly support DEC/Compaq compiler
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-23 13:53:54 +01:00
Michael Niedermayer
25ca8aef54
Merge commit '4a606c830ae664013cea33800094d4d0f4ec62da'
...
* commit '4a606c830ae664013cea33800094d4d0f4ec62da':
av_memcpy_backptr: optimise some special cases
mpegvideo: simplify dxy calculation in hpel_motion()
build: add rules to generate preprocessed source files
Conflicts:
Makefile
libavutil/mem.c
library.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-23 13:30:51 +01:00
Mans Rullgard
33db40f8d3
configure: sort cpuflags section by architecture
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-11-23 12:07:23 +00:00
Mans Rullgard
457cc333b4
configure: properly support DEC/Compaq compiler
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-11-23 12:07:11 +00:00
Mans Rullgard
4a606c830a
av_memcpy_backptr: optimise some special cases
...
- Add special cases for offsets of 2, 3, or 4 bytes. This means the
offset is always >4 in the generic case, allowing 32-bit copies to
be used there.
- Don't use memcpy() for sizes less than 16 bytes.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-11-23 12:04:17 +00:00
Mans Rullgard
5e39bb073a
mpegvideo: simplify dxy calculation in hpel_motion()
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-11-23 12:03:54 +00:00
Mans Rullgard
c262649291
build: add rules to generate preprocessed source files
...
This is useful for debugging. Dependencies for these files are not
generated due to limitations in many compilers.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-11-23 12:03:32 +00:00
Michael Niedermayer
e9c372362c
id3v2: restructure compressed and unsync code
...
This should fix the interaction between the 2.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-23 03:28:20 +01:00
Michael Niedermayer
0560b28f12
ffv1dec: remove incorrect assert()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-23 02:42:00 +01:00
Michael Niedermayer
3616afced6
rmdec: fix av_log level and context
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-23 01:19:48 +01:00
Michael Niedermayer
2fc0cbd9a6
truemotion2: Fix av_log level and context
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-23 01:19:26 +01:00
Michael Niedermayer
801a2a1df0
mpeg12: fix av_log level and context
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-23 01:18:53 +01:00
Michael Niedermayer
42dde253ec
dcadec: fix av_log level
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-23 01:18:31 +01:00
Michael Niedermayer
be89693ddc
avidec: try to support oddly muxed MMES stream
...
Fixes ticket1804
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-22 23:20:35 +01:00
Carl Eugen Hoyos
dd6abc921a
vqavideo: Reinitialise the actually used partial codebook bytestream-reader.
...
Fixes ticket #1942 .
2012-11-22 22:28:17 +01:00
Paul B Mahol
6aa6baa4f2
xmv: signal EOF
...
Fixes #1946 .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-22 20:37:24 +00:00
Michael Niedermayer
66b45d8f7a
movenc: fix assert failure caused by rounding.
...
Fixes Ticket1820
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-22 20:58:06 +01:00
Paul B Mahol
32cd3a7c16
ADPCM AFC decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-22 19:27:44 +00:00
Michael Niedermayer
08e26e7f5c
id3v2: print ver/flags/len on debug level.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-22 19:31:04 +01:00
Stefano Sabatini
4a753fc5f7
tests: prefer ffprobe -show_entries to -show_format_entry
...
The latter option was deprecated.
2012-11-22 15:57:41 +01:00
Michael Niedermayer
a9cfbf6d4b
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
id3v2: fix reading unsynchronized frames.
cdgraphics: fix incorrect vertical offset mask in cdg_scroll()
apetag: fix error handling in ff_ape_parse_tag()
Conflicts:
libavformat/id3v2.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-22 15:36:50 +01:00
Stefano Sabatini
c8a5365dcf
ffprobe: implement -sections option
2012-11-22 14:19:29 +01:00
Stefano Sabatini
196765a7cc
ffprobe: implement subsection field selection through the -show_entries option
2012-11-22 14:19:25 +01:00
Anton Khirnov
9ae80e6a9c
id3v2: fix reading unsynchronized frames.
...
Current code would incorrectly process e.g. 'ff 00 ff 00 ff' to
'ff ff ff', while it should be 'ff ff 00 ff'.
Fixes Bug 395.
CC: libav-stable@libav.org
2012-11-22 13:40:04 +01:00
Stefano Sabatini
f67ebf5b77
lavfi/avfiltergraph: improve error message in graph_check_validity()
...
Fix trac ticket #1944 .
2012-11-22 13:14:20 +01:00
Stefano Sabatini
eb87b340e8
lavfi/drawtext: add support for printing frame numbers
...
Fix trac ticket #1949 .
2012-11-22 13:14:19 +01:00
Tim Nicholson
dcbf72836c
ffmpeg: add setting of field_order flag
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-22 05:30:43 +01:00
Michael Niedermayer
91743fb730
frwu: do not set interlacing flags.
...
Our fate frwu sample is definitely not interlaced.
If someone has a interlaced frwu file, please contact us.
Without this change the field order patch would cause
incorrect interlacing information to be written when
using frwu input.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-22 05:21:38 +01:00
Michael Niedermayer
305a935968
brender: move declaration out of for() to make old compilers happy.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-22 01:07:16 +01:00
Aleksi Nurmi
492a5f835c
brender_pix: a new image decoder
...
PIX is an image file format that was used by the BRender 3d engine.
Signed-off-by: Aleksi Nurmi <aleksi.nurmi@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-22 01:06:25 +01:00
Carl Eugen Hoyos
2e08a82d5e
Fix the path to the C99-to-C89 Converter & Wrapper to the only existing repository.
...
Ronald deleted his public c99-to-c89 repository today.
2012-11-22 00:46:14 +01:00
Stefano Sabatini
3a0f3ffe8e
ffmpeg: fix weird reindent
2012-11-22 00:13:14 +01:00
Stefano Sabatini
02b4ae0427
ffmpeg: print debug_ts off and off_time values with timestamp helper routines
2012-11-22 00:13:14 +01:00
Bojan Zivkovic
e41b518555
mips: Fixing HAVE_MIPSFPU dependencies
...
Signed-off-by: Bojan Zivkovic <bojan@mips.com >
Reviewed-by: Vitor Sessak <vitor1001@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 23:57:29 +01:00
Peter Ross
bdba96e93c
use correct doxygen parameter direction syntax
...
Signed-off-by: Peter Ross <pross@xvid.org >
Reviewed-by: Stefano Sabatini <stefasab@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 23:56:15 +01:00
Peter Ross
9ccc349f77
ensure comment blocks that contain doxygen commands start with double asterix
...
Reveiwed-by: Stefano Sabatini <stefasab@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 23:55:15 +01:00
Piotr Bandurski
88161b2a52
siff: signal EOF
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 23:52:20 +01:00
Piotr Bandurski
9530439e5f
segafilm: signal EOF
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 23:51:21 +01:00
Piotr Bandurski
1ed7ca00dc
bethsoftvid: signal EOF
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 23:22:38 +01:00
Piotr Bandurski
425d0888c3
bfi: signal EOF
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 23:22:38 +01:00
Paul B Mahol
8e6957964e
yop: fix 10l typo
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-21 20:15:02 +00:00
Michael Niedermayer
b93c933cd2
imgconvert-test: count the number of unused pixel format values.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 20:25:30 +01:00
Michael Niedermayer
fb1bb97d87
imgconvert-test: skip pix formats without name
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 20:25:30 +01:00
Stefano Sabatini
64dc383de5
ffprobe: fix typo in a comment
2012-11-21 20:17:57 +01:00
Stefano Sabatini
6ca9c74cc6
ffprobe: add "," at the end of enum list
2012-11-21 20:17:57 +01:00
Michael Niedermayer
2c5d911166
imgconvert-test: test alpha flags
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 20:07:34 +01:00
Michael Niedermayer
1dafbdac65
pixdesc: fix alpha flags
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 20:07:34 +01:00
Michael Niedermayer
c9ad2e9aa3
imgconvert: remove avg_bits_per_pixel(), its redundant
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 20:07:17 +01:00
Peter Ross
0705cbd002
bink: return AVERROR_EOF upon reaching end of file
...
Fixes ticket #1935 .
Signed-off-by: Peter Ross <pross@xvid.org >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 19:25:20 +01:00
Michael Niedermayer
60b59d657e
codec_descriptors: fix typo in mpeg 2 video
...
Found-by: Ramiro
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 18:25:01 +01:00
Michael Niedermayer
ea5adf7080
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
flashsv: Drop unused function and struct parameters
pcm: fix decoding of pcm_s16le_planar on big-endian
Conflicts:
libavcodec/pcm.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 18:12:13 +01:00
Michael Niedermayer
b044e81f06
Merge commit 'ae3822bca16f1cdb2460a35b16f8ef636a04314e'
...
* commit 'ae3822bca16f1cdb2460a35b16f8ef636a04314e':
imgconvert: remove PixFmtInfo
Conflicts:
libavcodec/imgconvert.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 18:03:04 +01:00
Michael Niedermayer
6ff544e473
imgconvert: fix color type for non normal pix_fmts like HW stuff and unused entries.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 17:44:16 +01:00
Michael Niedermayer
6adf97fe00
avcodec_get_pix_fmt_loss: remove PixFmtInfo use
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 17:44:16 +01:00
Michael Niedermayer
fc04c99dea
imgconvert: print color type too
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 17:44:16 +01:00
Paul B Mahol
e4e7846db8
cdxl: use url_feof()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-21 16:39:44 +00:00
Michael Niedermayer
f6c4395374
imgconvert: remove PixFmtInfo use from avg_bits_per_pixel()
...
This fixes several inconsistencies with YUV >8bit formats caused
due to missing information in the PixFmtInfo table.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 17:06:11 +01:00
Michael Niedermayer
0880f26bbe
avcodec_find_best_pix_fmt_of_2: favor formats with fewer components if it does not incur a loss.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 17:06:11 +01:00
Michael Niedermayer
649d8bd8a5
pixdesc: add av_get_padded_bits_per_pixel()
...
This will be needed to allow removing the PixFmtInfo table
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 17:05:50 +01:00
Michael Niedermayer
ad9333d5ef
imgconvert-test: add avg bits per pixel
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 17:03:31 +01:00
Michael Niedermayer
0efa240f2b
is_yuv_planar: remove use of PixFmtInfo
...
This fixes the behavior for a few yuva 16bit formats
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 17:03:31 +01:00
Michael Niedermayer
be19e7e373
imgconvert: add self test code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 17:03:31 +01:00
Paul B Mahol
168a7f06de
rawenc: cosmetics: reindent
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-21 15:34:45 +00:00
Michael Niedermayer
494945cb66
Merge commit 'd1d9efaae6c7e8466b06c30ca21c6b569dd2e480'
...
* commit 'd1d9efaae6c7e8466b06c30ca21c6b569dd2e480':
avcodec: split avpicture from imgconvert
pixdesc: add PIX_FMT_ALPHA flag
Conflicts:
libavcodec/imgconvert.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 15:37:01 +01:00
Xi Wang
0d3123666a
cdgraphics: fix incorrect vertical offset mask in cdg_scroll()
...
The vertical offset mask 0x07 is suspicious.
v_off = FFMIN(data[2] & 0x07, CDG_BORDER_HEIGHT - 1);
Note that v_off is up to 11 (CDG_BORDER_HEIGHT - 1), the correct mask
should be 0x0F.
Signed-off-by: Xi Wang <xi.wang@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-11-21 14:35:26 +01:00
Xi Wang
b655cfefaf
apetag: fix error handling in ff_ape_parse_tag()
...
The following error handling is broken due to signedness.
int file_size;
uint32_t tag_bytes;
int64_t tag_start;
...
tag_start = file_size - tag_bytes - APE_TAG_FOOTER_BYTES;
if (tag_start < 0) { ... }
Note that tag_bytes is unsigned, which makes the right-hand side of
`tag_start = ...' unsigned, too. The 32-bit unsigned value is then
zero-extended to 64 bits. Therefore, tag_start must be non-negative,
and the check (tag_start < 0) is always false, which breaks the error
handling. This patch fixes the check.
Signed-off-by: Xi Wang <xi.wang@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-11-21 14:35:26 +01:00
Diego Biurrun
17fecb4a59
flashsv: Drop unused function and struct parameters
2012-11-21 11:49:41 +01:00
Piotr Bandurski
4bf3bc6f96
sierravmd: signal EOF
2012-11-21 10:38:52 +00:00
Paul B Mahol
e94f429474
cafdec: return right code if EOF is reached
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-21 10:34:38 +00:00
Piotr Bandurski
25d8ebd422
thp: signal EOF
2012-11-21 10:21:54 +00:00
Piotr Bandurski
9a0ecd507a
rpl: return AVERROR_EOF instead of -1
2012-11-21 09:48:46 +00:00
Clément Bœsch
030db0c1dd
lavf/hls: whitespace cosmetics after 23db5418.
2012-11-21 08:01:51 +01:00
Clément Bœsch
57d7e21c34
lavf: move libmodplug registration with the other ext lib.
...
Also remove the duplicated #if.
2012-11-21 08:00:35 +01:00
LYF
23db5418ed
hls: create an AVProgram for each variant
...
Without the information, application may choose audio from one variant
and video from another variant, which leads to fetch two variants from
network. This enables av_find_best_stream() to find matching audio and
video streams, so that only one variant is fetched from network.
Signed-off-by: LYF <yefei.li@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-21 01:24:01 +01:00
Stefano Sabatini
8b6aeb1fcd
lavf/segment: fix value for the M3U8 EXT-X-MEDIA
...
From the M3U8 specification:
|The EXT-X-MEDIA-SEQUENCE tag indicates the sequence number of the first
|URI that appears in a Playlist file.
Previously it was using the list index number. Also remove now unused
list_count field.
2012-11-20 22:48:28 +01:00
Stefano Sabatini
5a1ac463e0
lavf/segment: do not pre-increment segment_idx value
...
Increment the value just when a new segment with the given index is
started. Simplify logic, improve readability.
2012-11-20 22:48:28 +01:00
Stefano Sabatini
2b31aa8895
lavf/segment: unbreak behavior for segment muxer
...
The segment muxer presumes the use of AVFMT_GLOBALHEADER, ssegment should
be use in case of formats which requires no global headers.
Regression introduced when merging
0826d8513d .
2012-11-20 22:48:28 +01:00
Stefano Sabatini
b6c05879ea
lavf/segment: consistently use "seg" in segment_start()
2012-11-20 22:48:28 +01:00
Stefano Sabatini
3d52083a27
ffmpeg: rework debugging timestamp logs in process_input()
...
Print timestamps before and after ffmpeg timestamp postprocessing.
Help to debug how ffmpeg processes the input timestamps.
2012-11-20 22:48:28 +01:00
Clément Bœsch
cc88734c3c
lavf/srtdec: trim line break event separators from packet.
...
The muxer add them automatically, so this avoid having a bunch of line
breaks all over the output files. One '\n' is still kept/added because
the lavc subrip decoder seems to have trouble with line ending abruptly
(it doesn't flush correctly the tags). This bug is harmless but should
be fixed; though, this doesn't look like a trivial change. When this bug
gets fixed, we can consider removing the '\n' at the end of the packet.
The 2048B buffer limit was also removed while moving to AVBPrint API.
Note that this doesn't really matter since the decoder is limited as
well.
2012-11-20 22:38:39 +01:00
Carl Eugen Hoyos
d513fb1c75
Add -skip_initial_bytes option.
...
Fixes ticket #1909 .
2012-11-20 22:04:14 +01:00
Carl Eugen Hoyos
b1e190d0fd
Correctly signal EOF when demuxing caf files.
2012-11-20 22:04:03 +01:00
Clément Bœsch
52b7823b73
swr: include stdint.h instead of inttypes.h.
...
stdint.h is for the [u]int*_t types, which is the only thing we need for
the prototypes. inttypes.h includes stdint.h and defines more thing we
don't need here.
Bump micro in case a user app was relying on this include for its own
code.
2012-11-20 21:53:06 +01:00
Michael Niedermayer
391f323615
rc: fix 10l typo in rc_max_available_vbv_use calculation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-20 21:11:05 +01:00
Paul B Mahol
50a9530bc4
fate: increase pcm coverage
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-20 19:29:00 +00:00
Clément Bœsch
186942a5e3
swr: fix a few typo in the public header.
2012-11-20 20:29:05 +01:00
Michael Niedermayer
156a75a459
swr-doxy: elaborate on swr_get_delay() and the timebase
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-20 20:05:08 +01:00
Michael Niedermayer
7cca237ddd
swr: general doxy text about swr and example code.
...
Based on doxy from avr
Reviewed-by: Clément Bœsch
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-20 19:46:08 +01:00
ChanMin Kim
4293464705
lavf/segment: do not copy codec_tag when not available
...
Some muxers do not allow stream if codec_tag is incompatible.
Sometimes the passed input codec's codec_tag is not compatible with the
output muxer.
Because the codec_tag field of the segment muxer cannot be set, ffmpeg.c
doesn't know how to handle these cases.
Signed-off-by: ChanMin Kim <kcm1700@gmail.com >
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-20 19:19:31 +01:00
Peter Ross
6253cee497
the hyperlink to the Developer's Certificate of Origin no longer works; use Linux kernel hyperlink
...
Signed-off-by: Peter Ross <pross@xvid.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-20 19:19:31 +01:00
Paul B Mahol
dd59f0125d
add some planar PCM encoders
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-20 17:29:00 +00:00
Paul B Mahol
f17f759544
pcmdec: use memcpy() when possible for planar decoders
...
This is faster (at least with clang).
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-20 17:28:36 +00:00
Justin Ruggles
00dd9a6d6a
pcm: fix decoding of pcm_s16le_planar on big-endian
...
The sample count is decremented by the DECODE() macro and needs to be reset
in each loop iteration. Also, DECODE() increments the src pointer so that does
not need to be done separately.
2012-11-20 10:52:49 -05:00
Michael Niedermayer
07a866282f
oggdec: fix memleak on header parsing failure
...
Fixes Ticket1931
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-20 15:14:12 +01:00
Stefano Sabatini
99a30ad56d
doc/platform: replace link to site arrozcru.org with link to ffmpeg.zeranoe.com
...
ffmpeg.arrozcru.org is currently unmaintained, and it redirects to
ffmpeg.zeranoe.com.
2012-11-20 14:59:39 +01:00
Michael Niedermayer
6dadb0e425
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
FATE: add 24-bit ALAC tests
FATE: rename ALAC tests from alac-* to alac-16-*
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-20 14:35:27 +01:00
Paul B Mahol
00e02366a5
pcmenc: use ENCODE macro for pcm_s8
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-20 13:18:56 +00:00
Michael Niedermayer
2d232f8b88
pcm: revert from libavs planar code to durandals.
...
The libav code does not work on big endian.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-20 14:04:38 +01:00
Michael Niedermayer
70c0f13a9a
Merge commit '7c278d2ae410a64bdd89f1777026b4b963c30a1a'
...
* commit '7c278d2ae410a64bdd89f1777026b4b963c30a1a':
alacenc: support 24-bit encoding
pcmdec: use planar sample format for pcm_s16le_planar
vorbisdec: use float planar sample format
Conflicts:
libavcodec/pcm.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-20 13:34:27 +01:00
Luca Barbato
ae3822bca1
imgconvert: remove PixFmtInfo
...
It is pleonastic and was used in stale functions pending replacement.
2012-11-20 12:45:58 +01:00
Luca Barbato
d1d9efaae6
avcodec: split avpicture from imgconvert
...
All the non deprecated functions are in avpicture.c now.
2012-11-20 12:45:58 +01:00
Luca Barbato
cbe5a60c9d
pixdesc: add PIX_FMT_ALPHA flag
2012-11-20 12:45:58 +01:00
Paul B Mahol
da8242e2d6
8svx: move pcm_s8_planar decoder to pcm.c
...
Removes limitation of max 2 channels for pcm_s8_planar decoder by moving
it to more natural place.
AV_CODEC_ID_8SVX_RAW is not used by anything anymore and is going to be
removed.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-20 11:36:28 +00:00
Paul B Mahol
a5e382ad7f
4xm: return error code if decode_init() failed
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-20 09:42:32 +00:00
Justin Ruggles
b353321caa
FATE: add 24-bit ALAC tests
2012-11-20 00:26:46 -05:00
Justin Ruggles
7c278d2ae4
alacenc: support 24-bit encoding
2012-11-20 00:26:45 -05:00
Justin Ruggles
3e6c2a67a1
FATE: rename ALAC tests from alac-* to alac-16-*
...
This will distinguish ALAC 16-bit tests from ALAC tests with other bit
depths.
2012-11-20 00:26:45 -05:00
Justin Ruggles
c9d0f4506f
pcmdec: use planar sample format for pcm_s16le_planar
2012-11-19 23:48:37 -05:00
Justin Ruggles
79b7747556
vorbisdec: use float planar sample format
2012-11-19 23:48:37 -05:00
Michael Niedermayer
cf5f4c5169
aacsbr: check sample_rate before using it, fix division by 0
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-20 04:04:30 +01:00
Michael Niedermayer
aed128f07d
4xmdec: fix integer overflow, null ptr dereference
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-20 03:00:22 +01:00
Peter Ross
ed27ed9f4f
iff: DEEP RLE 32-bit decoder
...
Fixes ticket #1046 .
Signed-off-by: Peter Ross <pross@xvid.org >
2012-11-20 09:49:49 +11:00
Bojan Zivkovic
a74ae4691a
mips: Optimization of AC3 FP encoder and EAC3 FP decoder
...
Signed-off-by: Bojan Zivkovic <bojan@mips.com >
Reveiwed-by: Vitor Sessak <vitor1001@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-19 22:24:44 +01:00
Clément Bœsch
c02ae48271
swr: set default channel count options to 0.
...
If not set, they will be defined using the channel layout setting, which
is much more convenient when using swr_alloc() instead of
swr_alloc_set_opts().
2012-11-19 18:49:14 +01:00
Gavin Kinsey
19660a8876
Allow use of @ character in username and passwords embedded in URLs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-19 18:02:28 +01:00
Michael Niedermayer
ebf4750200
pthreads: increase MAX_BUFFERS due to 24c043c98e
...
This might fix a hypothetical memleak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-19 17:32:13 +01:00
Michael Niedermayer
c44a028e19
af_aresample: allocate at least 1 sample buffer. Fix null ptr dereference.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-19 15:55:54 +01:00
Piotr Bandurski
1b20877f34
vble: remove superfluous braces
...
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-19 15:36:20 +01:00
Michael Niedermayer
e6d81ce22e
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
x86: h264_intrapred: Fix C function names in comments
x86: SPLATD: port to cpuflags
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-19 14:24:20 +01:00
Michael Niedermayer
4116151a4b
Merge commit '1c5805521c3e406886341d752ebf38f8d41e1d13'
...
* commit '1c5805521c3e406886341d752ebf38f8d41e1d13':
PGS subtitles: Set AVSubtitle pts value
configure: Refactor CPPFLAGS settings for glibc/uclibc
configure: add basic support for ARM AArch64
build: set -U__STRICT_ANSI__ for newlib
Conflicts:
configure
libavcodec/pgssubdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-19 14:05:41 +01:00
Michael Niedermayer
fdbb6164a2
sbr: increase f_tablelim size, it appears it was too small by 1.
...
Prevent out of array accesses.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-19 13:09:02 +01:00
Paul B Mahol
b0d83e0dba
doc/general: remove duplicate entry for ADPCM SMJPEG IMA
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-19 10:25:19 +00:00
Paul B Mahol
305fe9ae59
nut: add tag for PCM signed 8-bit planar
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-19 09:55:20 +00:00
Paul B Mahol
086e305276
doc/general: remove 8SVX audio, there is no such codec
...
While here add missing PCM signed 8-bit planar.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-19 09:52:32 +00:00
Paul B Mahol
0dbf297229
doc/general: move 8SVX codecs to right section
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-19 09:52:25 +00:00
Carl Eugen Hoyos
a5d4e94a97
Support iLBC in caf.
2012-11-19 10:19:50 +01:00
Michael Niedermayer
ba353436a3
h264: dont stop parsing NALs without cleanup on DPC.
...
Fixes a deadlock with frame threads
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-19 04:08:11 +01:00
Piotr Bandurski
45d8537ccf
vble: do not abort when version is not 1
...
Fixes ticket #1923 .
Reviewed-by: Derek Buitenhuis
2012-11-19 01:55:51 +01:00
Michael Niedermayer
24c043c98e
mpegvideo: increase MAX_PICTURE_NUMBER.
...
avoid abort().
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-19 01:38:06 +01:00
Piotr Bandurski
ade9960fc6
avrndec: support lowres for mjpeg
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-19 00:42:39 +01:00
Michael Niedermayer
e8fed4d331
error concealment: check that references are frames and not fields.
...
frames cant have field references.
Fixes a deadlock
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-18 23:02:46 +01:00
Michael Niedermayer
8a03a60b4a
h264: Check gray scale CBP, fix out of array accesses.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-18 23:02:46 +01:00
Michael Niedermayer
27d39c225b
liavfi/avcodec: allow channel layouts with fewer channels than actually available.
...
This fixes the regression with Ticket1726, where some audio was lost.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-18 22:54:18 +01:00
Paul B Mahol
0df7d95a5e
pcmenc: remove dead increment
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-18 21:12:25 +00:00
Paul B Mahol
6557c46d91
pcm: move i into for loop to avoid { } inside switch statement
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-18 20:45:03 +00:00
Paul B Mahol
a6f4c41a7e
fate: add mjpeg-422 and mjpeg-444 tests
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-18 19:45:21 +00:00
Michael Niedermayer
36cf247e43
ff_h264_direct_ref_list_init: fix B slice check.
...
Fixes null pointer dereference.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-18 19:10:57 +01:00
Paul B Mahol
9f02d4ed0f
mjpegenc: yuvj444p support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-18 17:46:45 +00:00
Diego Biurrun
89923fce70
x86: h264_intrapred: Fix C function names in comments
...
Function names changed after switching to declaration with
PRED4x4/8x8/8x8L/16x16 macros in the C code.
2012-11-18 18:34:05 +01:00
John Stebbins
1c5805521c
PGS subtitles: Set AVSubtitle pts value
...
pts should be that of the packet containing the presentation segment.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-11-18 18:34:05 +01:00
Diego Biurrun
87af05c575
x86: SPLATD: port to cpuflags
2012-11-18 18:34:05 +01:00
Stefano Sabatini
158763312f
lavfi/frei0r: in init() check path loop, free resources in a single point
2012-11-18 16:52:46 +01:00
Stefano Sabatini
6c7ae49330
lavfi/frei0r: extend load_path() to support arbitrarily long paths
2012-11-18 16:52:46 +01:00
Michael Niedermayer
d6c184880e
h264: correct ref count check and limit, fix out of array accesses.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-18 16:47:29 +01:00
Michael Niedermayer
2d5f1addbe
h264: fix integer overflow, assert failure
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-18 16:47:29 +01:00
Michael Niedermayer
1a947dfa83
ff_mpeg_update_thread_context: assert context unequality
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-18 16:47:29 +01:00
Clément Bœsch
f48cddfe4c
pp: add SSE2 deInterlaceInterpolateCubic().
...
2124 decicycles in deInterlaceInterpolateCubic_C, 67100774 runs, 8090 skips
458 decicycles in deInterlaceInterpolateCubic_MMX2, 67107146 runs, 1718 skips
382 decicycles in deInterlaceInterpolateCubic_SSE2, 67107086 runs, 1778 skips
2012-11-18 16:21:59 +01:00
Clément Bœsch
4e264d1c79
pp: add support for SSE2.
2012-11-18 16:21:59 +01:00
Clément Bœsch
f6be711a69
lavfi/mp/pp: use PP_CPU_CAPS_AUTO.
2012-11-18 16:21:59 +01:00
Clément Bœsch
59d686f100
pp: add auto detection cpu flag.
2012-11-18 16:21:59 +01:00
Clément Bœsch
e034b07e40
pp: add various const for pointers.
2012-11-18 16:20:09 +01:00
Nicolas George
c437c251b8
lavfi/drawtext: implement more generic expansion.
...
The new expansion mechanism uses the %{...} notation.
For compatibility reasons, it must be enabled explicitly,
but a warning is printed if a conflict is likely to happen.
2012-11-18 15:55:47 +01:00
Piotr Bandurski
4413a8428a
iff: decode HAM8 images with masking correctly.
...
Fixes ticket #967 .
Reviewed-by: Peter Ross
2012-11-18 15:48:22 +01:00
Michael Niedermayer
4fecc3cf09
h264: Skip odd NALs in extradata, prevent undefined behavior
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-18 14:26:58 +01:00
Marton Balint
4bee03034b
lavf: let av_find_best_stream use bitrate info if available
...
I guess the user expects to see the stream with the highest bitrate, not with
the most frames, this is especially useful for multi bitrate streams.
This patch changes av_find_best_stream to select the stream based on a number
of conditions, the first condition has the highest priority, the last condition
has the lowest:
1) Select the stream with the highest FFMIN(5, codec_info_nb_frames) value
2) Select the stream with the highest bitrate
3) Select the stream with the highest codec_info_nb_frames
4) Select the first stream
Signed-off-by: Marton Balint <cus@passwd.hu >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-18 13:57:08 +01:00
Peter Ross
05001dd7ca
iff: process DEEP DLOC chunk to obtain image dimensions
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-18 13:47:17 +01:00
Peter Ross
d26eeb0dc1
iff: recognise more DEEP colorspaces
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-18 13:46:36 +01:00
Michael Niedermayer
0c79a3d9cb
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
x86: lavr: fix stack allocation for 7 and 8 channel downmixing on x86-32
lavr: fix the decision for writing directly to the output buffer
parisc: work around bug in gcc 4.3 and later
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-18 13:35:15 +01:00
Paul B Mahol
d0a503c97c
ast: check bit depth too
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-18 12:29:05 +00:00
Paul B Mahol
f5f29910dd
img2enc: remove dead code
...
Nothing in lavc sets extradata for such codec and this is wrong place
for it anyway.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-18 12:09:20 +00:00
Diego Biurrun
3bd1eacd2a
configure: Refactor CPPFLAGS settings for glibc/uclibc
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-11-18 12:00:18 +00:00
Mans Rullgard
5873b623a9
configure: add basic support for ARM AArch64
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-11-18 12:00:18 +00:00
Mans Rullgard
8f7b814f54
build: set -U__STRICT_ANSI__ for newlib
...
This is (erroneously) required to enable various things in the
newlib headers. As cygwin uses newlib, it is covered by this.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-11-18 12:00:17 +00:00
Carl Eugen Hoyos
ab82b77822
Fix possible NULL-pointer dereference when decoding mov files.
...
Fixes CID743440, introduced in 850e5c0 .
2012-11-18 08:52:50 +01:00
Michael Niedermayer
dab19048a1
mjpegdec: reset h/v_count, fix assertion failure.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-18 06:00:44 +01:00
Ronald S. Bultje
7a9e65acee
x86: lavr: fix stack allocation for 7 and 8 channel downmixing on x86-32
...
Fixes crashes on Win32 and stack overruns on x86-32 in general.
2012-11-17 20:16:04 -05:00
Justin Ruggles
02738792c5
lavr: fix the decision for writing directly to the output buffer
...
If there are any samples remaining in the output fifo from previous conversion
calls, we have to output those samples first instead of doing direct output
of the current samples.
2012-11-17 20:09:40 -05:00
Paul B Mahol
e3edee6d2f
eamad: return meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-17 20:28:52 +00:00
Paul B Mahol
d98364edce
smush: check audio packet size
...
Fixes null pointer dereference.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-17 19:58:54 +00:00
Michael Niedermayer
845724c82c
vcr1: check if dimensions are supported, fix out of array accesses.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-17 20:43:56 +01:00
Michael Niedermayer
fb1ea777b3
electronicarts: check size before reading duration out of a chunk.
...
Fixes null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-17 20:43:56 +01:00
Paul B Mahol
461ecea068
AST demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-17 19:30:08 +00:00
Paul B Mahol
9ba41ae63e
PCM signed 16-bit big-endian planar decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-17 19:30:08 +00:00
Paul B Mahol
37e2a9783f
lxfdec: remove deplanarization hack
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-17 19:30:04 +00:00
Paul B Mahol
467dfd5dfa
PCM signed 24-bit/32-bit little-endian planar decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-17 19:09:43 +00:00
Nicolas George
ee2d6fbc92
doc/texi2pod: recognize @table @command.
2012-11-17 19:47:56 +01:00
Nicolas George
29e388abcb
lavfi/drawtext: use bprint for the expanded text.
2012-11-17 19:47:56 +01:00
Nicolas George
4cd74c8143
lavu/bprint: implement av_bprint_strftime().
2012-11-17 19:47:56 +01:00
Mans Rullgard
5af530f5a9
parisc: work around bug in gcc 4.3 and later
...
A bug in tail call optimisation in gcc 4.3 and later on parisc causes
numerous tests to fail. Disabling this optimisation gives a working
build. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55023
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-11-17 17:54:28 +00:00
Michael Niedermayer
f96a653184
flvdec: disable hack that attempts to parse aac bitstream in the flv demuxer.
...
I was unable to find a file that needs this hack, if you have one please
contact us!
Fixes out of array accesses.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-17 18:49:08 +01:00
Michael Niedermayer
63ac64864c
eamad: fix out of array accesses
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-17 16:27:18 +01:00
Michael Niedermayer
130dc95187
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
FATE: add a bink version 'b' test
FATE: add a bink version 'i' test
libswscale: remove unnecessary direct #if LIBSWSCALE_VERSION_MAJOR
Conflicts:
tests/fate/video.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-17 13:06:12 +01:00
Michael Niedermayer
abf91f7fee
Merge commit '8f5587c3d0bc4b5f075e4282215bda91a21fc12e'
...
* commit '8f5587c3d0bc4b5f075e4282215bda91a21fc12e':
cpu.h: define AV_CPU_FLAG_MMX2 for libavutil major 52
h264: Fix parameters to ff_er_add_slice() call
h264: always check ref_count for validity
Conflicts:
libavcodec/h264.c
libavutil/cpu.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-17 12:58:00 +01:00
Nicolas George
cb8c5e531c
cmdutils: free the report file name.
...
Fix coverity issue 743443, which was a harmless leak.
2012-11-17 12:41:22 +01:00
Nicolas George
1ba2e589cc
configure: add --fatal-warnings option.
2012-11-17 12:01:17 +01:00
Nicolas George
c551c3b18b
configure: warn when en/disabling has no effect.
...
Print a warning for --enable- or --disable-something=pattern
does not match any component.
2012-11-17 11:57:17 +01:00
Stefano Sabatini
a0f2d3fff5
lavf/avienc: return proper error codes, and provide some more feedback
2012-11-17 11:15:00 +01:00
Anton Khirnov
da5408ede9
FATE: add a bink version 'b' test
2012-11-17 08:45:47 +01:00
Anton Khirnov
108bfe4e43
FATE: add a bink version 'i' test
2012-11-17 08:45:47 +01:00
Michael Niedermayer
8ad9b48c9b
xxan: check ybuf index before use.
...
Fixes out of array access
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-17 04:45:56 +01:00
Michael Niedermayer
774830050a
cook: check subbands more completely, fix out of array read.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-17 03:43:17 +01:00
Michael Niedermayer
84281d111c
ff_mpeg4videodec_static_init: fix return type
...
Fixes CID743439
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-17 02:31:11 +01:00
Michael Niedermayer
caedd51e56
mxfdec: fix potential integer overflow in mxf_compute_sample_count()
...
Fixes CID743442
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-17 02:20:50 +01:00
Michael Niedermayer
7b723ed4c0
cpu: add a few cpu names as aliases for their cpu flags
...
Help to complete this list is welcome!
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-17 02:09:56 +01:00
Michael Niedermayer
65e57975b9
cpu: add cmov ro the table, which appears to have been forgotten
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-17 02:09:56 +01:00
Michael Niedermayer
31fce39942
tm2: check for invalid vlcs, fix out of array read
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-17 02:09:56 +01:00
Clément Bœsch
c6945228e8
pp: simplify postProcess().
2012-11-16 23:13:36 +01:00
Clément Bœsch
375cd3f2ec
pp: rework the way templating is done.
...
This refactoring simplifies the usage of the template: define the
profile and include the template is all that is required. It should now
be easier to add more instruction sets.
The HAVE_* flags are changed with TEMPLATE_PP_* setting to avoid messing
them up.
See the top comment in postprocess_template.c for details.
2012-11-16 23:13:36 +01:00
Michael Niedermayer
6535d81d87
g723_1dec: Fix lsp2lpc() so it can handle values at the ends of the table.
...
Fixes out of array reads
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-16 21:36:44 +01:00
Michael Niedermayer
2207ea44fb
ff_emulated_edge_mc: fix integer anomalies, fix out of array reads
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-16 21:33:52 +01:00
Alexander Strasser
7750c48d30
dshow: Use NO_DSHOW_STRSAFE for all dshow header inclusions
...
Move the NO_DSHOW_STRSAFE macro definition in front of the dshow.h
system header inclusion.
This excludes the usage of the STRSAFE functions consistently.
Further background on this can be found in the commit message of
revision 05ee0db1 where the #define was initially introduced.
Signed-off-by: Alexander Strasser <eclipse7@gmx.net >
2012-11-16 19:26:13 +01:00
Michael Niedermayer
c2cbc80ae9
ffv1enc: consider 2pass float rounding, fix loop
...
Found-by: "Peter B." <pb@das-werkstatt.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-16 17:01:13 +01:00
Stefano Sabatini
ee6ae8355e
doc/filters: fix a few typos in the frei0r docs
2012-11-16 16:52:14 +01:00
Stefano Sabatini
cb309922cb
doc/ffprobe: factorize definition of writers syntax
...
The writers option syntax was unified.
2012-11-16 16:52:13 +01:00
Janne Grunau
80716953c2
libswscale: remove unnecessary direct #if LIBSWSCALE_VERSION_MAJOR
...
SWS_CPU_CAPS are deprecated and slated to removed with libswscale major
version 3. No need to provide a SWS_CPU_CAPS_MMX2 as backward
compatibility define under the same explicit condition.
2012-11-16 15:04:57 +01:00
Janne Grunau
8f5587c3d0
cpu.h: define AV_CPU_FLAG_MMX2 for libavutil major 52
2012-11-16 15:04:48 +01:00
Matthieu Bouron
83cab07a4c
mxfdec: set audio packets pts
...
Also fix playback of ntsc files.
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-16 14:12:37 +01:00
Xidorn Quan
8ee6db393c
mov: add more udta meta data recognition
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-16 14:12:37 +01:00
Clément Bœsch
2dd0da787c
lavf/mp3enc: make sure the header is valid before writing audio pkt.
...
An invalid header can lead avpriv_mpegaudio_decode_header() to overread
and/or div by zero.
2012-11-16 14:11:08 +01:00
Michael Niedermayer
ff3b59c848
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
x86: dsputil: port to cpuflags
crc: av_crc() parameter names should match between .c, .h and doxygen
avserver: replace av_read_packet with av_read_frame
avserver: fix constness casting warnings
Conflicts:
libavcodec/x86/dsputil.asm
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-16 13:23:35 +01:00
Janne Grunau
e6160bda98
h264: Fix parameters to ff_er_add_slice() call
...
s->mb_x is reset to zero a couple of lines above. It does not make
sense to call ff_er_add_slice() with 0 as endx when the end of the
macroblock row was reached. Fixes unnecessary and counterproductive
error resilience in https://bugzilla.libav.org/show_bug.cgi?id=394 .
CC: libav-stable@libav.org
2012-11-16 13:18:28 +01:00
Janne Grunau
60b6b8c019
h264: always check ref_count for validity
...
Fixes a crash with zuffed files.
2012-11-16 13:18:28 +01:00
Michael Niedermayer
f30cf51d46
ffserver: put NoDaemon back so as not not break existing conf files.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-16 13:12:09 +01:00
Michael Niedermayer
3db32ec119
Merge commit 'bf5f46b4cc47b7a4568119f224057d4ff91b6cdd'
...
* commit 'bf5f46b4cc47b7a4568119f224057d4ff91b6cdd':
APIChanges: add entry for av_read_packet deprecation
mxfdec: fix typo in mxf_read_seek()
avserver: use freopen to redirect stdin/out/err to /dev/null
avserver: remove daemon mode
configure: Check for -Werror parameters on clang
doxygen: remove obsolete options from Doxyfile
configure: Add option to disable all command line programs
Conflicts:
Changelog
configure
doc/APIchanges
doc/ffserver.conf
doc/ffserver.texi
ffserver.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-16 13:07:10 +01:00
Diego Biurrun
8c3849bc76
x86: dsputil: port to cpuflags
2012-11-16 10:38:23 +01:00
Diego Biurrun
8ff0f7763d
crc: av_crc() parameter names should match between .c, .h and doxygen
2012-11-16 10:38:23 +01:00
Nicolas George
926481078b
lavu/opt: fix av_opt_get_key_value() API.
...
Do not skip the end delimiter.
Reserve positive return values.
This is an API break, but the function was introduced less than
two weeks ago.
2012-11-16 10:36:45 +01:00
Nicolas George
468781f828
doc/APIchanges: clarify comment on new APIs.
2012-11-16 10:36:45 +01:00
Michael Niedermayer
68def00a63
rv34: check image size before using it
...
fixes assertion failure
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-16 05:16:34 +01:00
Michael Niedermayer
7845f8d282
vc1dec: do not allow field_mode to change after the first header
...
Fixes out of array accesses.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-16 04:58:46 +01:00
Clément Bœsch
8f42b09604
swr/resample: fix SSSE3 included unconditionally.
...
10l Regression since 8ea88339 .
2012-11-15 23:52:44 +01:00
Clément Bœsch
5cd567cfb4
pp: fix typo in avg() comment.
2012-11-15 21:54:18 +01:00
Clément Bœsch
4c0aece192
pp: use av_clip_uint8 instead of a custom implementation.
2012-11-15 21:54:13 +01:00
Clément Bœsch
c4f317e7fe
pp: fix a few typo in the internal header.
2012-11-15 21:54:07 +01:00
Clément Bœsch
b3bf9b1d97
lavfi/geq: fix GPL license header.
...
100l: original code is GPL, header miscopied. LICENSE file and configure
dependency are fine.
2012-11-15 21:48:39 +01:00
Clément Bœsch
5e68bf9b92
swr/rematrix: move templating parameters to template itself.
2012-11-15 21:24:49 +01:00
Clément Bœsch
8ea8833979
swr/resample: move templating parameters to template itself.
...
It has various benefits such as allowing some refactoring, clarifying
the code in the inclusion part, and making the template understandable
in standalone.
This commit is based on the templating method used by Justin Ruggles for
libavresample.
2012-11-15 21:24:49 +01:00
Michael Niedermayer
e31b1938ac
zmbv: avoid use of uninitialized data
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-15 20:58:36 +01:00
Michael Niedermayer
c2409a7c5b
vmdav: more complete check for block_align, prevent out of array access.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-15 20:58:36 +01:00
Michael Niedermayer
ea3eaa37b1
flashsv: only realloc blocks for version 2
...
Fixes 10l regression introducing a memleak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-15 20:58:35 +01:00
Janne Grunau
566de8cde2
avserver: replace av_read_packet with av_read_frame
2012-11-15 18:04:53 +01:00
Janne Grunau
39c4afd926
avserver: fix constness casting warnings
...
Use a different char* for extracting info string from the URL. The
other pointer can be made const then which elimates the need for a
cast and fixes the following warnings:
warning: to be safe all intermediate pointers in cast from ‘char **’ to
‘const char **’ must be ‘const’ qualified [-Wcast-qual]
2012-11-15 18:04:53 +01:00
Janne Grunau
bf5f46b4cc
APIChanges: add entry for av_read_packet deprecation
2012-11-15 17:49:53 +01:00
Janne Grunau
c84cce5a99
mxfdec: fix typo in mxf_read_seek()
...
Check the number of index tables before using byte offset based seeking
instead of the index_tables pointer.
Found by Måns Rullgård <mans@mansr.com >.
2012-11-15 17:37:09 +01:00
Janne Grunau
a4cd2ad89a
avserver: use freopen to redirect stdin/out/err to /dev/null
2012-11-15 17:36:38 +01:00
Mans Rullgard
ada51a334a
avserver: remove daemon mode
...
This code spews a multitude of warnings with glibc (unchecked
return values), some of them possibly warranted. Furthermore,
the deamonisation is not suitable for use with typical startup
scripts as it does not provide the PID of the daemon in any way.
Users wishing to run avserver as a daemon can still do so using
start-stop-daemon or equivalent tools.
Signed-off-by: Mans Rullgard <mans@mansr.com >
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2012-11-15 17:36:14 +01:00
Martin Storsjö
9eded0fe41
configure: Check for -Werror parameters on clang
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-11-15 18:22:03 +02:00
Janne Grunau
116ae7285e
doxygen: remove obsolete options from Doxyfile
...
The options USE_INLINE_TREES, SHOW_DIRECTORIES and HTML_ALIGN_MEMBERS
became obsolete with doxygen 1.8.1 (releaded 2012-05-19). The generated
outpu for older doxygen versions should not change since they were set
to the default value.
2012-11-15 17:18:37 +01:00
Paul B Mahol
eca2eb2dfa
pcm: give more descriptive name to codec
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-15 16:04:35 +00:00
Michael Niedermayer
c0d68be555
pgssubdec: check RLE size before copying. Fix out of array accesses
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-15 16:46:51 +01:00
Michael Niedermayer
bc08ca841e
flashsv: reallocate block array independant of frame type.
...
Fixes NULL pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-15 16:46:42 +01:00
Carl Eugen Hoyos
850e5c041d
Read QuickTime version 1 audio fields in broken mov files.
...
Matrox XMIO capture boards write files with major brand "JUNK"
and compatible brand "qt " that contain QuickTime version 1
audio fields.
Fixes ticket #1881 .
2012-11-15 14:38:19 +01:00
Michael Niedermayer
d53f447130
swr: move if() block into the only branch where it can be true.
...
This should make the code a tiny tiny bit faster.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-15 12:33:40 +01:00
Michael Niedermayer
17da2d9eee
swr: reorder/redesign operations to avoid integer overflow.
...
This fixes a out of array read.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-15 12:33:40 +01:00
Clément Bœsch
0e482a8e49
ffserver: fix streams and priv_data memleaks when closing a connection.
2012-11-15 11:52:44 +01:00
Michael Niedermayer
a9b1536a01
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
bgmc: Fix av_malloc checks in ff_bgmc_init()
rtp: set the payload type as stream id
Conflicts:
libavformat/rtpenc_chain.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-15 11:31:13 +01:00
Michael Niedermayer
4d941eac16
Merge commit '3b4296f41473a5b39e84d7a49d480624c9c60040'
...
* commit '3b4296f41473a5b39e84d7a49d480624c9c60040':
avformat: clarify stream id for muxing
fate: Add dependencies for aac, alac, amrnb, amrwb, atrac tests
ppc: do not pass redundant compiler flags
avutil: change GET_UTF8 to not use av_log2()
segment: fix NULL pointer dereference in seg_write_header()
Conflicts:
tests/fate/aac.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-15 11:12:25 +01:00
Michael Niedermayer
62006b539d
ituh263dec: more complete w/h check.
...
Fixes a division by 0
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-15 02:44:03 +01:00
Michael Niedermayer
caa2fa2c69
rv10: always check image size not just in some cases.
...
Fixes division by 0
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-15 02:17:26 +01:00
Michael Niedermayer
a3cb7f992f
xwma: check bytes_per_sample, fix division by 0.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-15 00:56:54 +01:00
Michael Niedermayer
12eb2fd539
dxa: dont try to use the previous frame if there is none.
...
Fixes null pointer dereference.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-15 00:43:30 +01:00
Michael Niedermayer
e70144cba1
bink: check quant_index, fix out of array read
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 23:54:00 +01:00
Diego Biurrun
e28b7553ae
configure: Add option to disable all command line programs
2012-11-14 23:03:36 +01:00
Xi Wang
b74dbdd5e9
bgmc: Fix av_malloc checks in ff_bgmc_init()
...
Signed-off-by: Xi Wang <xi.wang@gmail.com >
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-11-14 23:03:36 +01:00
Michael Niedermayer
612ecfbbbb
gifdec: check ff_lzw_decode_init() return value, fix out of array reads
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 23:00:11 +01:00
Michael Niedermayer
50f0a6b4e6
wmaprodec: check num_sfb for validity. Fix out of array accesses
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 21:15:08 +01:00
Luca Barbato
3b4296f414
avformat: clarify stream id for muxing
2012-11-14 20:38:51 +01:00
Luca Barbato
8034130e06
rtp: set the payload type as stream id
...
Support multiple video/audio streams with different format in the
same session.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2012-11-14 20:38:51 +01:00
Michael Niedermayer
30bce34b67
vpriv_adx_decode_header: avoid underreading the array.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 19:16:08 +01:00
Michael Niedermayer
ab8517b891
vc1dec: require a minimum of 2x2 for the edge pos. Avoid assertion failure
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 19:16:08 +01:00
Paul B Mahol
dbc44667ce
Add missing dependency for avr demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-14 18:02:28 +00:00
Michael Niedermayer
ccce723c6d
vc1dec: check first field slices, fix out of array read.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 17:35:01 +01:00
Diego Biurrun
a3138ebfa8
fate: Add dependencies for aac, alac, amrnb, amrwb, atrac tests
2012-11-14 15:09:59 +01:00
Mans Rullgard
7f1fcaf0e6
ppc: do not pass redundant compiler flags
...
The -mpowerpc64 and -mpowerpc-gfxopt flags are implicitly set by
-mcpu as needed. Passing them explicitly is redundant and can
conflict with user-supplied flags.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-11-14 13:50:43 +00:00
Mans Rullgard
7ba0c1b390
avutil: change GET_UTF8 to not use av_log2()
...
This removes an inter-library dependency on ff_log2_tab causing
linking errors in some configurations.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-11-14 13:50:42 +00:00
Michael Niedermayer
87d073eacc
mov: Dont try to calculate with unknown durations, fix division by 0
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 14:08:44 +01:00
Michael Niedermayer
a1b5c9634e
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
x86: mmx2 ---> mmxext in asm constructs
Conflicts:
libavcodec/x86/h264_chromamc_10bit.asm
libavcodec/x86/h264_deblock.asm
libavcodec/x86/h264dsp_init.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 12:34:30 +01:00
Michael Niedermayer
b0c543b1de
Merge commit 'da39cac8def7ea73cad2fa2b611209663c7abe2c'
...
Not merged, its not broken
* commit 'da39cac8def7ea73cad2fa2b611209663c7abe2c':
Drop broken and unused CABAC test program.
Conflicts:
libavcodec/Makefile
libavcodec/cabac.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 12:31:28 +01:00
Michael Niedermayer
d4e74d5d6d
Remove deprecation of avcodec_get_chroma_sub_sample.
...
Add explanations what the difference between the 2 functions are and
when either should be used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 12:04:39 +01:00
Michael Niedermayer
e13d5e9a4b
Merge commit '5e9c6ef8f3beb9ed7b271654a82349ac90fe43f2'
...
* commit '5e9c6ef8f3beb9ed7b271654a82349ac90fe43f2':
x86: h264_weight_10bit: port to cpuflags
libtheoraenc: add missing pixdesc.h header
avcodec: remove ff_is_hwaccel_pix_fmt
pixdesc: add av_pix_fmt_get_chroma_sub_sample
hlsenc: stand alone hls segmenter
Conflicts:
doc/muxers.texi
libavcodec/ffv1enc.c
libavcodec/imgconvert.c
libavcodec/mpegvideo_enc.c
libavcodec/tiffenc.c
libavformat/Makefile
libavformat/allformats.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 11:59:20 +01:00
Xi Wang
e8769b37fe
segment: fix NULL pointer dereference in seg_write_header()
...
Since the pointer `oc' is NULL, oc->oformat->name will cause a null
pointer dereference. This patch changes it to seg->oformat->name.
Signed-off-by: Xi Wang <xi.wang@gmail.com >
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-11-14 12:33:27 +02:00
Clément Bœsch
26afdbcfc0
ffserver: fix NULL dereference with quoted Stream name.
2012-11-14 10:09:57 +01:00
Clément Bœsch
a9ba9268d7
ffserver: prefer av_asprintf over malloc+snprintf for Launch setting.
2012-11-14 10:09:51 +01:00
Michael Niedermayer
66ff90f4a3
8bps: check index against buffer size before reading line length pointer.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 03:34:01 +01:00
Michael Niedermayer
7acee6654c
mpeg12data: increase size of ff_mpeg1_default_intra_matrix to prevent harmless overreads from crashing
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 03:17:52 +01:00
Michael Niedermayer
e1631f8ebe
aasc: check before reading the first 4 byte, fix overread
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 03:03:35 +01:00
Michael Niedermayer
39c5cd601e
vmnc: check input size before reading chunk header, fix overread
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 02:51:38 +01:00
Michael Niedermayer
b61658829b
Merge remote-tracking branch 'lippit/master'
...
* lippit/master:
Update iec61883 to handle multiple devices, and allow selection of DV device by its GUID
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 02:24:17 +01:00
Michael Niedermayer
9f088712d4
ffmpeg: fix double ;;
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 02:06:50 +01:00
Michael Niedermayer
9406d6be55
ffmpeg: fix audio timestamps on stream copy with -ss
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 01:42:33 +01:00
Diego Biurrun
26301caaa1
x86: mmx2 ---> mmxext in asm constructs
2012-11-14 00:58:51 +01:00
Diego Biurrun
da39cac8de
Drop broken and unused CABAC test program.
2012-11-14 00:36:17 +01:00
Michael Niedermayer
2f74f8d7dc
imc: sanity check scalefactors.
...
This fixes undefined behavior
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 00:03:42 +01:00
Michael Niedermayer
1f1960519a
lxfdec: fix "no audio stream" check. avoid null ptrs deref
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-14 00:03:42 +01:00
Stefano Sabatini
334a0d15c6
lavfi/frei0r: add additional trailing slash in FREI0R_PATH paths
...
Allow to accept paths with no ending trailing slash.
Based on a patch by rogerdpack <rogerpack2005@gmail.com >.
2012-11-13 22:54:29 +01:00
Stefano Sabatini
9a2028d4f4
lavfi/frei0r: correctly handle paths longer than 1023 chars
2012-11-13 22:41:01 +01:00
Michael Niedermayer
af9ec3dd1d
av_probe_input_format3: support NULL as buffer. Fixes null ptr deref
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 22:21:10 +01:00
Michael Niedermayer
001af703c6
alac: check channel count more completely, fix out of array read
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 22:08:09 +01:00
Michael Niedermayer
b119133136
avrndec: calculate true_height only when used.
...
Fixes division by 0
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 22:03:21 +01:00
Michael Niedermayer
7373b3ad04
pcmdec: consistently use codec_id, fixes out of array reads
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 21:45:53 +01:00
Michael Niedermayer
eab022d863
mpegts: prevent freeing ones own section in pat_cb
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 21:45:53 +01:00
Michael Niedermayer
4392e69ad4
mov: check stps correctly, avoid overreading 1 element.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 21:45:53 +01:00
Michael Niedermayer
3669915e93
dvdec: check ipcm more completely, avoid assert failure.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 21:45:53 +01:00
Clément Bœsch
41ebbb3b04
lavf/wtvenc: fix s[tp]_pairs memleak.
2012-11-13 20:02:43 +01:00
Georg Lippitsch
15b02ddee0
Update iec61883 to handle multiple devices, and allow
...
selection of DV device by its GUID
2012-11-13 19:44:21 +01:00
Michael Niedermayer
7c76eaeca2
mpeg4video_parser: init static tables before use, fix nulll ptr deref
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 19:21:59 +01:00
Michael Niedermayer
1bd024ec77
mpeg4videodec: split static decoder table init out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 19:20:59 +01:00
Diego Biurrun
5e9c6ef8f3
x86: h264_weight_10bit: port to cpuflags
2012-11-13 19:07:09 +01:00
Michael Niedermayer
c74cd99986
rv10: consider B frames in low delay streams invalid.
...
Fix assertion failure
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 18:00:00 +01:00
Luca Barbato
83f9ed42ec
libtheoraenc: add missing pixdesc.h header
...
Was left out from c1a02e884a .
2012-11-13 17:42:13 +01:00
Michael Niedermayer
a0212ecf84
dcadec: check layout & channel count for consistency.
...
Fixes out of array accesses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 17:33:38 +01:00
Luca Barbato
cc085993f4
avcodec: remove ff_is_hwaccel_pix_fmt
...
It is used only in one place and is unlikely it would be needed
elsewhere.
2012-11-13 16:21:47 +01:00
Luca Barbato
c1a02e884a
pixdesc: add av_pix_fmt_get_chroma_sub_sample
...
Deprecate avcodec_get_chroma_sub_sample.
2012-11-13 16:14:55 +01:00
Michael Niedermayer
4facddd568
mpegts: dont set stream info when a decoder has already been opened.
...
Fixes assertion failure.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 15:44:13 +01:00
Michael Niedermayer
327cd0d09b
mpegts: prevent freeing ones own section in pmt_cb
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 15:44:13 +01:00
Paul B Mahol
09a0392341
paf: set channel layout
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-13 13:25:19 +00:00
Paul B Mahol
1acd2f6ba7
Replace rest of libavutil/audioconvert.h with libavutil/channel_layout.h
...
Also remove it in once case when it is not needed.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-13 13:21:21 +00:00
Michael Niedermayer
e97a24109c
avcodec.h: update audioconvert.h header after rename
...
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 13:30:52 +01:00
Stefano Sabatini
7945665200
lavfi: store and propagate number of channels information in audio buffer properties
...
The channels field is required since the channel layout is not always
available.
2012-11-13 12:15:27 +01:00
Stefano Sabatini
9d2a7c0481
doc/encoders: document libtheora encoder
2012-11-13 12:15:23 +01:00
Stefano Sabatini
8cb76ef275
lavc/libtheoraenc: return proper error codes
2012-11-13 11:37:48 +01:00
Michael Niedermayer
799d749c77
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (24 commits)
yop: set channel layout
wtv: set channel layout for mpeg audio
westwood_aud: set channel layout
wc3movie: set channel layout
tmv: set channel layout
tiertexseq: set channel layout
swfdec: set channel layout
sol: set channel layout
smacker: set channel layout
siff: set channel layout
sierravmd: set channel layout
rtpdec_amr: set channel layout
rsodec: set channel layout
rmdec: set channel layout for RA version 3
qcp: set channel layout
psxstr: set channel layout
omadec: set channel layout
oggparsespeex: validate channel count and set channel layout
nuv: set channel layout
mxg: set channel layout
...
Conflicts:
libavformat/swfdec.c
libavformat/wtv.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 11:09:38 +01:00
Michael Niedermayer
7eb40d85f2
Merge commit 'ef1b23ad21e3f12fc4ff2a73a6d4d4cd9d630c4b'
...
* commit 'ef1b23ad21e3f12fc4ff2a73a6d4d4cd9d630c4b': (21 commits)
jvdec: set channel layout
iss: set channel layout
ipmovie: set channel layout
iff: set channel layout
idroqdec: set channel layout
gxfdec: set channel layout when applicable
gsmdec: set channel layout
flvdec: set channel layout
dv: set channel layout
dsicin: set channel layout
daud: set channel layout
cdxl: set channel layout
bmv: set channel layout
bink: set channel layout
bfi: set channel layout
bethsoftvid: set channel layout
apc: set channel layout
amr: set channel_layout
ppc: replace pointer casting with AV_COPY32
ppc: fix some unused variable warnings
...
Conflicts:
libavformat/amr.c
libavformat/iff.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 10:55:07 +01:00
Michael Niedermayer
a8f2420e06
remove tests/asynth1.sw
...
This file appears to have been commited by 100l mistake.
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 10:36:25 +01:00
Clément Bœsch
f6f52936be
fate/avfilter: honor GPL dependency.
2012-11-13 09:16:26 +01:00
Luca Barbato
22a0827dff
hlsenc: stand alone hls segmenter
...
Simplifies usage but has higher latency.
2012-11-13 01:37:05 +01:00
Michael Niedermayer
d8a1eb11b7
wavpack: check the blocks sample count, fix out of array accesses
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 01:13:07 +01:00
Michael Niedermayer
580021cfc4
wavpack: check ch_offset
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 01:11:59 +01:00
Michael Niedermayer
e9cb533fbb
flashv: check if keyframe is available, fix null deref.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 00:22:24 +01:00
Michael Niedermayer
4b2f696d6e
flashv: use avcodec_set_dimensions()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-13 00:21:45 +01:00
Michael Niedermayer
0a373c31cb
svq1dec: dont export the qscale table.
...
SVQ1 has no qscales so the table is of no use, and it triggers a bug as
SVQ1 does not maintain the size of the table properly causing a crash.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 23:01:42 +01:00
Michael Niedermayer
7ab690bf5f
indeo4: more complete check for the scan vs block sizes.
...
Fixes out of array reads
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 23:01:42 +01:00
Clément Bœsch
7581ad24a9
lavc/aac: fix shared build failures with MSVC.
...
This is a workaround until a better solution is found.
2012-11-12 22:28:57 +01:00
Michael Niedermayer
0e239b22db
xan: check size_segment before reading, fixes out of array read.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 20:50:13 +01:00
Michael Niedermayer
a9456c7c5c
mjpegdec: tighten unescaped_buf_size size check, prevent null ptr deref
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 20:27:57 +01:00
Michael Niedermayer
abe68364a3
swfdec: check space before copy
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 19:29:27 +01:00
Michael Niedermayer
d1493d2ce5
theora: check that pix fmt is valid, fix null ptr deref
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 18:12:17 +01:00
Michael Niedermayer
9eef41b848
lagarith: always allocate for 4 planes. Fixes out of array accesses
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 18:05:08 +01:00
Paul B Mahol
87c113f4b3
wv: use right function to read block_samples
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-12 15:50:04 +00:00
Justin Ruggles
b9629acb6b
yop: set channel layout
2012-11-12 10:33:23 -05:00
Justin Ruggles
935fbb66ef
wtv: set channel layout for mpeg audio
2012-11-12 10:33:23 -05:00
Justin Ruggles
7b48d93e8a
westwood_aud: set channel layout
2012-11-12 10:33:22 -05:00
Justin Ruggles
2ce7f820d4
wc3movie: set channel layout
2012-11-12 10:33:22 -05:00
Justin Ruggles
a94b0267f2
tmv: set channel layout
2012-11-12 10:33:22 -05:00
Justin Ruggles
7f348bd764
tiertexseq: set channel layout
2012-11-12 10:33:22 -05:00
Justin Ruggles
a3949fe11f
swfdec: set channel layout
2012-11-12 10:33:22 -05:00
Justin Ruggles
1c7587728c
sol: set channel layout
2012-11-12 10:33:22 -05:00
Justin Ruggles
bfccd76adb
smacker: set channel layout
2012-11-12 10:33:22 -05:00
Justin Ruggles
57e590e4b8
siff: set channel layout
2012-11-12 10:33:22 -05:00
Justin Ruggles
a634896cf8
sierravmd: set channel layout
2012-11-12 10:33:21 -05:00
Justin Ruggles
c1ac602d53
rtpdec_amr: set channel layout
2012-11-12 10:33:21 -05:00
Justin Ruggles
ce842029ce
rsodec: set channel layout
2012-11-12 10:33:21 -05:00
Justin Ruggles
60a585304c
rmdec: set channel layout for RA version 3
2012-11-12 10:33:21 -05:00
Justin Ruggles
444b79c18a
qcp: set channel layout
2012-11-12 10:33:21 -05:00
Justin Ruggles
b5e3e77711
psxstr: set channel layout
2012-11-12 10:33:21 -05:00
Justin Ruggles
c9759eb426
omadec: set channel layout
2012-11-12 10:33:21 -05:00
Justin Ruggles
ef1b23ad21
jvdec: set channel layout
2012-11-12 10:33:20 -05:00
Justin Ruggles
d4088efbe2
oggparsespeex: validate channel count and set channel layout
2012-11-12 10:33:20 -05:00
Justin Ruggles
4371131283
iss: set channel layout
2012-11-12 10:33:20 -05:00
Justin Ruggles
232e9c4c4b
nuv: set channel layout
2012-11-12 10:33:20 -05:00
Justin Ruggles
cc57228e31
mxg: set channel layout
2012-11-12 10:33:20 -05:00
Justin Ruggles
66d7ceb4aa
mvi: set channel layout
2012-11-12 10:33:20 -05:00
Justin Ruggles
f6c6e5aac1
mpc7: set channel layout
2012-11-12 10:33:20 -05:00
Justin Ruggles
f24b0b1b6c
mmf: set channel layout
2012-11-12 10:33:20 -05:00
Justin Ruggles
87199d34db
mm: set channel layout
2012-11-12 10:33:20 -05:00
Justin Ruggles
41a2d9590d
ipmovie: set channel layout
2012-11-12 10:33:19 -05:00
Justin Ruggles
024e03701c
iff: set channel layout
2012-11-12 10:33:19 -05:00
Justin Ruggles
73e2007f3d
idroqdec: set channel layout
2012-11-12 10:33:19 -05:00
Justin Ruggles
f6c3adde41
gxfdec: set channel layout when applicable
2012-11-12 10:33:19 -05:00
Justin Ruggles
d4a105ae5c
gsmdec: set channel layout
2012-11-12 10:33:19 -05:00
Justin Ruggles
644d8d2e5a
flvdec: set channel layout
2012-11-12 10:33:19 -05:00
Justin Ruggles
d5ca70b103
dv: set channel layout
2012-11-12 10:33:19 -05:00
Justin Ruggles
49e7af06f2
dsicin: set channel layout
2012-11-12 10:33:19 -05:00
Justin Ruggles
a05a63785c
daud: set channel layout
...
Update FATE reference due to WAVE channel mask now being set correctly.
2012-11-12 10:33:18 -05:00
Justin Ruggles
0d09a5848f
cdxl: set channel layout
2012-11-12 10:33:18 -05:00
Justin Ruggles
e8088d6e4b
bmv: set channel layout
2012-11-12 10:33:18 -05:00
Justin Ruggles
2fe804f316
bink: set channel layout
2012-11-12 10:33:18 -05:00
Justin Ruggles
ff50d27a63
bfi: set channel layout
2012-11-12 10:33:18 -05:00
Justin Ruggles
b5d1a15d1b
bethsoftvid: set channel layout
2012-11-12 10:33:18 -05:00
Justin Ruggles
39f0e9b8c6
apc: set channel layout
2012-11-12 10:33:18 -05:00
Justin Ruggles
5595368bcc
amr: set channel_layout
2012-11-12 10:33:18 -05:00
Michael Niedermayer
c433823750
4xmdec: test version for cfrms, fix out of array accesses
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 14:56:33 +01:00
Michael Niedermayer
be818df547
wavpack: fix out of array access
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 14:43:05 +01:00
Paul B Mahol
0cbb31a264
adpcm: reindent after previous commit
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-12 11:46:22 +00:00
Paul B Mahol
e8a9b1a1a0
adpcm: ADPCM IMA SMJPEG stereo decoding
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-12 11:46:22 +00:00
Paul B Mahol
0baec57d09
anm: return meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-12 11:46:12 +00:00
Michael Niedermayer
4d60e5051e
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
binkaudio: set channel layout
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 12:18:58 +01:00
Michael Niedermayer
8c0a14d221
Merge commit '2b479bcab0a8365a7c094c5fa44b8cb6da9810d0'
...
These patches have not been merged at the request of Carl
* commit '2b479bcab0a8365a7c094c5fa44b8cb6da9810d0':
build: Drop AVX assembly ifdefs
x86: Require an assembler able to cope with AVX instructions
Conflicts:
libavcodec/x86/fft.asm
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 12:18:26 +01:00
Michael Niedermayer
03b078721c
Merge commit '97bf7c03b1338a867da52c159a2afecbdedcfa88'
...
* commit '97bf7c03b1338a867da52c159a2afecbdedcfa88':
doc: git-howto: Leave reviewers time to react before pushing patches
Include libavutil/channel_layout.h instead of libavutil/audioconvert.h
lavu: rename audioconvert.* to channel_layout.* and deprecate audioconvert.h
Conflicts:
doc/APIchanges
doc/examples/decoding_encoding.c
doc/git-howto.texi
ffmpeg_filter.c
libavcodec/flacdec.c
libavcodec/imc.c
libavcodec/mpegaudiodec.c
libavcodec/utils.c
libavfilter/asrc_anullsrc.c
libavfilter/audio.c
libavfilter/avfilter.c
libavfilter/avfilter.h
libavfilter/avfiltergraph.c
libavfilter/buffer.c
libavutil/Makefile
libavutil/audioconvert.h
libavutil/channel_layout.c
libavutil/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 11:32:11 +01:00
Mans Rullgard
a384f6a7f7
ppc: replace pointer casting with AV_COPY32
...
This removes warnings about strict aliasing violations.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-11-12 10:31:31 +00:00
Mans Rullgard
031aac9861
ppc: fix some unused variable warnings
...
The third argument of OP_U8_ALTIVEC is evaluated at most once so
there is no need for a potentially unused temporary variable.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-11-12 10:31:31 +00:00
Mans Rullgard
9eda2a85c6
configure: remove support for -n flag in print_enabled()
...
This flag is no longer used.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-11-12 10:30:02 +00:00
Michael Niedermayer
da501ea857
Merge commit '802713c4e7b41bc2deed754d78649945c3442063'
...
* commit '802713c4e7b41bc2deed754d78649945c3442063':
mss2: prevent potential uninitialized reads
mss2: reindent after last commit
mss2: fix handling of unmasked implicit WMV9 rectangles
configure: add lavu dependency to lavr/lavfi .pc files
x86inc: Set program_name outside of x86inc.asm
Conflicts:
configure
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 10:57:06 +01:00
Justin Ruggles
faf340f60c
binkaudio: set channel layout
2012-11-12 00:41:02 -05:00
Michael Niedermayer
3a04c18d89
vc1dec: prevent null ptr dereferences.
...
The added checks are in line with existing checks but should
probably be replaced by more advanced error concealment at some
point.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 01:43:12 +01:00
Michael Niedermayer
8e749733c1
vc1dec: factorize srcU/V offseting out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 01:43:12 +01:00
Michael Niedermayer
b5f4836f8c
vc1: check image height, fix division by 0
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 01:43:12 +01:00
Michael Niedermayer
8824a9ed22
mpeg12: clean current picture ptr.
...
This avoids having a stray pointer left that may not represent the current picture
and state.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-12 01:43:11 +01:00
Clément Bœsch
3a7f00810c
lavfi: remove mp=geq filter.
...
Native geq video filter is now available.
2012-11-11 23:18:12 +01:00
Clément Bœsch
8eecbaf5e4
lavfi: add geq filter.
2012-11-11 23:12:54 +01:00
Clément Bœsch
3704804c8f
lavf/assenc: add non strict ts flag.
...
ASS can have several events at the same time.
2012-11-11 22:58:56 +01:00
Clément Bœsch
2b3597f0d1
lavfi: remove mp=fixpts filter.
...
lavfi/f_setpts.c should allow everything mp=fixpts supports, with a lot
of additional control.
2012-11-11 22:49:53 +01:00
Clément Bœsch
84aed3faf0
lavfi: remove mp=tile filter.
...
The native tile video filter is now feature equivalent.
2012-11-11 22:43:18 +01:00
Clément Bœsch
a8afb0830e
fate/lavfi: increase vf tile coverage.
2012-11-11 22:43:18 +01:00
Clément Bœsch
11ed12c256
doc/filters: complete tile documentation.
2012-11-11 22:43:18 +01:00
Clément Bœsch
7582012058
lavfi/tile: extend shorthand parameters.
...
This makes the syntax similar to mp=tile.
2012-11-11 22:43:18 +01:00
Clément Bœsch
4a90e7124d
lavfi/tile: add nb_frames option.
2012-11-11 22:43:18 +01:00
Clément Bœsch
ecfaff350f
lavfi/tile: add margin and padding options.
2012-11-11 22:43:17 +01:00
Clément Bœsch
aa5a029091
lavfi/tile: allow named arguments.
2012-11-11 22:43:17 +01:00
Michael Niedermayer
5aedee4fac
gxf: avoid null ptr deref without streams.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 20:58:04 +01:00
Michael Niedermayer
c871244306
proresdec: check input size before reading qmats, prevent overreading.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 20:52:01 +01:00
Diego Biurrun
2b479bcab0
build: Drop AVX assembly ifdefs
...
An assembler able to cope with AVX instructions is now required.
2012-11-11 20:43:28 +01:00
Diego Biurrun
97bf7c03b1
doc: git-howto: Leave reviewers time to react before pushing patches
2012-11-11 20:43:28 +01:00
Diego Biurrun
b8e8a07c6c
x86: Require an assembler able to cope with AVX instructions
...
All modern assemblers have this capability. Older NASM versions
that lack the capability produce code that crashes at runtime,
so it's better to error out during the build process instead.
CC: libav-stable@libav.org
2012-11-11 20:43:28 +01:00
Michael Niedermayer
7faa17764a
dsicinav: update bitmap_frame_size, avoid out of array reads.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 19:47:01 +01:00
Justin Ruggles
a903f8f087
Include libavutil/channel_layout.h instead of libavutil/audioconvert.h
...
Also reorder some other #include when applicable.
2012-11-11 13:35:12 -05:00
Justin Ruggles
5980f5dd18
lavu: rename audioconvert.* to channel_layout.* and deprecate audioconvert.h
2012-11-11 13:35:12 -05:00
Michael Niedermayer
26452e24ed
snow: fix edge emu switch
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 19:02:31 +01:00
Michael Niedermayer
b7b7e2348c
msmpeg4dec: check w/h, prevent assert failure later
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 18:46:22 +01:00
Michael Niedermayer
192db16b9c
segafilm: fix division by 0
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 18:32:46 +01:00
Michael Niedermayer
f1d6f013b2
omadec: fix len check in nprobe() prevent out of array access
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 18:16:48 +01:00
Michael Niedermayer
44c23aa1b8
zmbvdec: check decompression buffer size.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 18:09:11 +01:00
Michael Niedermayer
3ba58433e1
diracdec: check wavelet depth, prevent out of array read.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 17:20:36 +01:00
Michael Niedermayer
8c4145343d
libvorbisdec: dont try to update an empty que
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 16:43:53 +01:00
Michael Niedermayer
0a4087b893
diracdec: Use only one frame per reference
...
Prevents null ptr dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 16:43:53 +01:00
Alberto Delmás
802713c4e7
mss2: prevent potential uninitialized reads
...
The alternative to zeroing on init is setting the corrupted flag in
all cases where pal_pic is not fully written, at the cost of added
complexity.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com >
2012-11-11 16:07:50 +01:00
Kostya Shishkov
6d93308c0c
mss2: reindent after last commit
2012-11-11 16:07:42 +01:00
Alberto Delmás
b077eb0780
mss2: fix handling of unmasked implicit WMV9 rectangles
...
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com >
2012-11-11 16:07:36 +01:00
Anton Khirnov
e5e1a06e44
configure: add lavu dependency to lavr/lavfi .pc files
2012-11-11 15:45:18 +01:00
Stefano Sabatini
c0aff4064d
doc/Makefile: generate library headers with the correct section number
2012-11-11 14:06:27 +01:00
Peter Ross
6f78ba8b0b
electronic arts: support rare samples containing adpcm_ea_r1 audio
...
Fixes ticket #1549 .
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 12:52:02 +01:00
Peter Ross
d168fcb68f
electronicarts: use av_log_ask_for_sample
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 12:51:16 +01:00
Michael Niedermayer
039f4ff4c2
h264: 2nd try at getting sm2v working
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 12:50:03 +01:00
Michael Niedermayer
def8588fb5
dwt_yasm/vertical_compose: fix width witdth argument.
...
Fixes out of array accesses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 12:41:35 +01:00
Michael Niedermayer
bec37935ec
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
x86: h264_qpel_10bit: drop unused parameter from MC10/MC20/MC30 macros
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 12:18:05 +01:00
Stefano Sabatini
514910fb2d
doc: add libavfilter.texi
...
With some re-wording by Alexander Strasser <eclipse7@gmx.net >.
2012-11-11 11:15:53 +01:00
Stefano Sabatini
598546e1df
doc: add libavutil.texi
...
With some fixes and better wording by Alexander Strasser
<eclipse7@gmx.net >.
2012-11-11 11:15:53 +01:00
Diego Biurrun
f0d124f005
x86inc: Set program_name outside of x86inc.asm
...
This reduces the local difference to the x264 upstream version.
2012-11-11 11:06:19 +01:00
Paul B Mahol
c1947015b2
smackaud: return meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-11 10:05:20 +00:00
Paul B Mahol
2a374f06c4
targa: return more meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-11 09:44:36 +00:00
Michael Niedermayer
7dab48bb73
diracdec: allocate enough space for blocks
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 04:01:39 +01:00
Michael Niedermayer
dca2fa10d3
diracdec: fix edge emulation check, fixes out of array reads
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 03:34:40 +01:00
Michael Niedermayer
991f6bf93d
h264: Support SMV2
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 02:51:23 +01:00
Michael Niedermayer
a39d36146a
h264_refs: Print default in case we are missing a reference.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 02:51:23 +01:00
Michael Niedermayer
d7da4d47a6
mxfdec: avoid double free and leaks.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 02:20:04 +01:00
Michael Niedermayer
c2ca0163af
matroskadec: check h in generic rm packet shuffler
...
Fixes crash
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 01:19:44 +01:00
Michael Niedermayer
1f41cffe1e
mjpegdec: check SE.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-11 01:19:44 +01:00
Clément Bœsch
e56b098410
lavf/srtenc: ignore invalid timed packets instead of failing.
...
This way we don't abort in the middle of remuxing, just warn about an
event ignored. The index increment is moved to make sure the output
numbers still make sense.
2012-11-10 22:43:27 +01:00
Michael Niedermayer
a1e093a6fb
alac: fix bps check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-10 21:54:30 +01:00
Michael Niedermayer
47ca2487ae
lavfi/avcodec: check that injected avframes use a supported channel layout
...
This fixes out of array accesses.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-10 21:45:34 +01:00
Michael Niedermayer
a150bad406
lavfi/avcodec: check avfilter_copy_frame_props() return code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-10 21:37:40 +01:00
Nedeljko Babic
304a1ed1e8
mips: Add dependencies on HAVE_INLINE_ASM
...
Add dependencies on HAVE_INLINE_ASM for files and parts of code
where it is necessary.
Signed-off-by: Nedeljko Babic <nbabic@mips.com >
Reviewed-by: Vitor Sessak <vitor1001@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-10 19:55:54 +01:00
Michael Niedermayer
2d71f31df2
lag_read_prob_header: fix out of array access
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-10 19:39:05 +01:00
Michael Niedermayer
b53f89710b
alac: Check channel indexes more completely, fix out of array accesses.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-10 18:22:47 +01:00
Michael Niedermayer
3920d13878
alac: fix integer overflow leading to subsequent out of array accesses.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-10 17:42:35 +01:00
Michael Niedermayer
fd4f4923cc
alac: fix nb_samples < order case
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-10 17:14:04 +01:00
Diego Biurrun
6cd796049d
x86: h264_qpel_10bit: drop unused parameter from MC10/MC20/MC30 macros
2012-11-10 14:49:09 +01:00
Michael Niedermayer
eb3dc23705
mov: Make sure no streams after the header lack a timescale.
...
Fixes division by 0
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-10 13:29:23 +01:00
Piotr Bandurski
cc5c2ef09d
riff: add SMV2 FourCC for H264
...
sample:
http://samples.mplayerhq.hu/V-codecs/smv2.avi
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-10 13:16:14 +01:00
Michael Niedermayer
2ce64413e2
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
x86: PALIGNR: port to cpuflags
x86: h264_qpel_10bit: port to cpuflags
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-10 12:44:39 +01:00
Carl Eugen Hoyos
b56ff0b261
Allow forcing a frame size in bytes for image2pipe.
...
This allows decoding of concatenated frames encoded in
uncompressed formats like v210.
The frame size cannot be generally calculated, FFmpeg
also supports broken encoders.
Fixes ticket #1869 .
2012-11-10 02:25:17 +01:00
Carl Eugen Hoyos
f91f049a22
Add yuv4xxp12 and yuv4xxp14 pixel formats to y4m encoder and decoder.
...
Reviewed-by: Paul B Mahol
2012-11-10 02:19:55 +01:00
Peter Ross
8b67ec77f0
pictordec: fill any unset portion of the image
...
Fixes ticket #1710
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-10 02:02:35 +01:00
Piotr Bandurski
49c2f2d57e
riff: add GXVE FourCC for WMV2
...
sample:
http://samples.mplayerhq.hu/V-codecs/ViVD/vivd.avi
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-10 01:58:51 +01:00
Michael Niedermayer
dab70c62d2
ivi_common: check ref_tile size, fix out of array accesses
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-10 01:52:14 +01:00
Michael Niedermayer
a93c7ca6ef
ivi_common: more MV Checks, fixes out of array reads
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 23:39:41 +01:00
Michael Niedermayer
c63e76ba35
ebml_read_binary: use fast_padded_malloc()
...
Fixes out of array accesses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 23:35:58 +01:00
Diego Biurrun
4b60fac419
x86: PALIGNR: port to cpuflags
2012-11-09 21:31:31 +01:00
Michael Niedermayer
98b377004d
twinvq: make ibps check unsigned
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 21:22:12 +01:00
Diego Biurrun
4d1f69f244
x86: h264_qpel_10bit: port to cpuflags
2012-11-09 21:17:05 +01:00
Michael Niedermayer
2fbb37b51b
iff/ilbm: check remaining buffer size.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 21:06:01 +01:00
Michael Niedermayer
b8551f8ea7
pcmdec: check that channels is valid.
...
Prevents a division by 0
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 21:06:01 +01:00
Michael Niedermayer
ac7ff0963b
aacdec: fix temporary array size
...
Avoids out of array accesses.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 21:05:43 +01:00
Michael Niedermayer
623cfc93d9
pngdec: check that format matches too not just dimensions
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 19:59:05 +01:00
Michael Niedermayer
02a325cb6f
tiffdec: check rps, fix infinite loop.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 19:28:57 +01:00
Michael Niedermayer
b8dc5f8bb3
twinvq: check bitrate for validity avoid division by 0
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 18:46:17 +01:00
Michael Niedermayer
e481ba2ed7
vqf: check samplerate, avoid division by 0.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 18:05:19 +01:00
Michael Niedermayer
fb6a72cde5
iff: avoid out of array reads, due to too many planes.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 17:47:51 +01:00
Michael Niedermayer
7989f7e0b5
xmv: Fix integer overflow
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 17:18:01 +01:00
Michael Niedermayer
9195377bc5
vp56dec: Fix handling of alpha configuration changes.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 17:03:47 +01:00
Michael Niedermayer
7ec1fe1f47
lavf: Dont compare absolute to relative timestamps in duration gcd
...
This prevents a division by 0
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 14:59:43 +01:00
Michael Niedermayer
4c6e7c2d4d
ivi_common: dont dereference null pointers.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 14:17:42 +01:00
Michael Niedermayer
13451f5520
atrac3dec: Check coding mode against channels.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 13:26:20 +01:00
Michael Niedermayer
5ee008e01d
qdm2: check that coding_method is valid before using it.
...
Fixes out of array reads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 13:13:50 +01:00
Michael Niedermayer
909a18f73b
mjpegbdec: dont return a picture when there is no picture.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 12:44:26 +01:00
Michael Niedermayer
6d1c5ea04a
tiffdec: check count in metadata reading.
...
Fixes out of array access
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 12:14:28 +01:00
Michael Niedermayer
ce1ebb31a9
tiffdec: use checked reads for tget*()
...
Fixes out of array reads
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 12:05:03 +01:00
Michael Niedermayer
1b5a6d3c49
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
flacenc: ensure the order is within the min/max range in LPC order search
avconv: rescale packet duration to muxer time base when flushing encoders
add 24-bit FLAC encoding to Changelog
rtpenc_aac: Fix calculation of the header size
x86: h264_intrapred: port to cpuflags
Conflicts:
Changelog
libavformat/rtpenc_aac.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 10:29:51 +01:00
Michael Niedermayer
769354348a
PRINT_CODEC_SUPPORTED: fix used variable
...
Reviewed-by: Stefano Sabatini <stefasab@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-09 03:08:29 +01:00
Nicolas George
aeb4d27dec
doc/faq: explain libfoo-dev packages.
2012-11-08 21:05:10 +01:00
Justin Ruggles
3a2731cbd3
flacenc: ensure the order is within the min/max range in LPC order search
...
This fixes use of uninitialized values when the FLAC encoder uses the
2-level, 4-level, and 8-level search methods. Fixes failure of the
fate-flac-24-comp-8 test when run using valgrind.
2012-11-08 13:57:34 -05:00
Justin Ruggles
3ba416408a
avconv: rescale packet duration to muxer time base when flushing encoders
...
Fixes Bug 385
2012-11-08 13:57:34 -05:00
Justin Ruggles
00f8ad41c7
add 24-bit FLAC encoding to Changelog
...
Also move a misplaced line from the 9_beta2 section to <next>
2012-11-08 13:57:34 -05:00
Luca Abeni
e004d175fe
rtpenc_aac: Fix calculation of the header size
...
Previously the high end byte was always set to zero. Also get
rid of an unnecessary multiplication (which in practice couldn't
overflow) before shifting.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-11-08 19:48:32 +02:00
Michael Niedermayer
3affcc99a8
frame_thread_encoder: silence integer to pointer without cast warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-08 18:25:24 +01:00
Diego Biurrun
6ca60d4ddd
x86: h264_intrapred: port to cpuflags
2012-11-08 18:05:23 +01:00
Michael Niedermayer
5ff43ec72d
sctp: silence const warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-08 16:06:04 +01:00
Michael Niedermayer
60e028958c
ffmdec: remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-08 15:54:14 +01:00
Michael Niedermayer
4a28962454
libopencore-amr: fix av_log() argument
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-08 15:46:51 +01:00
Michael Niedermayer
bc17a6f5c0
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
libvpxenc: Allow enabling constrained quality (CQ) mode
Conflicts:
configure
libavcodec/libvpxenc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-08 08:07:05 +01:00
Luca Abeni
78e08fd340
rtpenc_aac: Fix 10l bug
...
Fixes CID602564
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-08 01:54:16 +01:00
Nicolas George
d55911adc8
doc/faq: replace @file by @command for "ffmpeg".
2012-11-07 23:45:12 +01:00
Alexander Strasser
4ccfcc8a0b
doc/libavcodec: hint to where to find the Git history
...
Signed-off-by: Alexander Strasser <eclipse7@gmx.net >
2012-11-07 23:33:31 +01:00
Stefano Sabatini
58d1d7024d
doc/Makefile: change DOCLIBS check
...
More consistent with the rest of the build system, and more compact.
2012-11-07 23:18:11 +01:00
Stefano Sabatini
1c6962dc20
lavu: remove disabled FF_API_OLD_EVAL_NAMES code
2012-11-07 23:18:05 +01:00
Stefano Sabatini
ef4dc3e55b
lavu/opt: show valid range in case of out-of-range value
...
Improve feedback.
2012-11-07 23:17:57 +01:00
James Zern
12776d5d2a
libvpxenc: Allow enabling constrained quality (CQ) mode
...
The CQ mode was introduced in libvpx 0.9.6.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-11-08 00:01:54 +02:00
Thierry Foucu
98cbbabadb
Fix the packet duration when flushing the encoder.
...
A similar patch was posted by Justin Ruggles <justin.ruggles@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-07 22:29:11 +01:00
Michael Niedermayer
9dfe07a1fb
fate-rsync: replace -a by -rlt
...
This remove the owner, group and permission preservation on fatesample checkouts
These caused problems for durandal_1707
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-07 18:33:52 +01:00
Michael Niedermayer
4d2f83f8ac
gsm_parser: fix infinite loop
...
Fixes Ticket1894
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-07 18:08:23 +01:00
Paul B Mahol
08101e62cb
adpcm: improve smjpeg decoding
...
Previous version had significant artifacts.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-07 13:03:50 +00:00
Peter Ross
a373f35272
wtvenc: produce seekable files
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-07 13:59:03 +01:00
Peter Ross
b89cd2a028
wtvenc: simplify write_timestamp
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-07 13:51:38 +01:00
Peter Ross
3e65134326
wtvenc: output third video pts in timestamp chunk (this is what Microsoft Windows Media Center expects)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-07 13:45:01 +01:00
Peter Ross
0d9435048c
wtvenc: indent fixup
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-07 13:44:50 +01:00
Peter Ross
b50759cd6b
wtvenc: do not emit stream2 and DSATTRIB_TRANSPORT_PROPERTY chunks; these are not required for playback
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-07 13:42:01 +01:00
Michael Niedermayer
fdfbb793c3
ffv1dec: propagate return code from ffv1_common_init()
...
Fixes Ticket1824
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-07 13:27:01 +01:00
Michael Niedermayer
dd11615bbc
ffv1dec: more completely check slice count
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-07 13:26:37 +01:00
Michael Niedermayer
cb395929e3
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
libopencore-amr: Check the return value of amr_decode_fix_avctx
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-07 10:26:40 +01:00
Paul B Mahol
7c2cfaac6a
smjpegenc: use bits_per_coded_sample instead of calling function
...
Final result is same and this allows support of multiple values per codec.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-07 01:31:39 +00:00
Michael Niedermayer
de0aa9e5a4
kgv1dec: fix end condition
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-07 01:51:24 +01:00
Martin Storsjö
ad961726dc
libopencore-amr: Check the return value of amr_decode_fix_avctx
...
This allows getting rid of redundant checks later in the codec
specific init functions.
Move the check to before actually initializing the decoder lib,
to simplify error handling.
This fixes a case of returning a value from a void function, present since
d40dab907 .
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-11-07 00:48:50 +02:00
Stefano Sabatini
2b442ff5f5
lavfi/movie: return proper error code in case of av_get_token() allocation failure
...
Also slightly clarify logic, and should fix coverity issue CID 717771.
2012-11-06 23:31:16 +01:00
Stefano Sabatini
29d46d7bce
ffprobe: fix potential NULL pointer dereference
...
Found by Coverity, should fix CID 733741.
2012-11-06 22:59:24 +01:00
Stefano Sabatini
b5436f4b5d
lavfi/showwaves: return error in case of allocation failure in filter_samples()
2012-11-06 22:48:54 +01:00
Stefano Sabatini
5f634480d1
lavfi/showwaves: simplify check in filter_samples()
...
Also fix Coverity issue CID 733743: Dereference after null check
2012-11-06 22:48:17 +01:00
Nicolas George
e9b8523d52
sbgdec: dont set slide to a uninitialized value
...
Fixed CID703833
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-06 21:46:22 +01:00
Michael Niedermayer
44e9d7f182
vf_drawbox: dont move uninitialized and then unused colors around
...
Fixes CID741419
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-06 21:40:23 +01:00
Michael Niedermayer
2ca649f177
utils: fix integer overflow with DURATION_MAX_READ_SIZE
...
Fixes CID703746
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-06 18:44:14 +01:00
Paul B Mahol
1c445f4b93
fate: add PMP demuxer test
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-06 16:18:30 +00:00
Paul B Mahol
4744f67d4f
wavpack: check if number of samples is not too big
...
Wavpack format documentation mentions that 131072 is
max number of samples.
This fixes huge memory allocations in sample from ticket #1889 .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-06 16:15:19 +00:00
Peter Ross
e6ef628b1e
wtv: move duplicated guids into wtv.c
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-06 15:52:33 +01:00
Peter Ross
1701a22fce
wtv: rename ff_stream_guid to ff_SBE2_STREAM_DESC_EVENT
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-06 15:51:41 +01:00
Peter Ross
9632f5efcf
wtvenc: fix typo
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-06 15:50:36 +01:00
Michael Niedermayer
1e4e497911
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
fate: atrac: Place atrac1 and atrac3 tests in different groups
fate: aac: cosmetics: Group AAC LATM tests together
x86: avresample: Add missing colons to assembly labels
Conflicts:
tests/fate/aac.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-06 15:11:53 +01:00
Paul B Mahol
0fe8c9f458
wavpack: use more meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-06 12:56:44 +00:00
Diego Biurrun
e6c4c0f7cf
fate: atrac: Place atrac1 and atrac3 tests in different groups
2012-11-06 13:47:53 +01:00
Diego Biurrun
06c7b33831
fate: aac: cosmetics: Group AAC LATM tests together
2012-11-06 13:37:36 +01:00
Stefano Sabatini
f6b39376ce
.gitignore: ignore *.3 files as well
2012-11-06 12:24:12 +01:00
Stefano Sabatini
a1934daeb4
doc/Makefile: remove .3 file with make clean
2012-11-06 12:23:13 +01:00
Diego Biurrun
352e18b766
x86: avresample: Add missing colons to assembly labels
...
YASM accepts labels without colons, but NASM issues warnings.
2012-11-06 12:07:35 +01:00
Alexander Strasser
98506e16c7
doc/libavcodec: do not say multimedia streams in the title
...
The mention of multimedia stream sounds more like multiple
elementary media streams like video and audio multiplexed
into a multimedia container format.
Signed-off-by: Alexander Strasser <eclipse7@gmx.net >
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2012-11-06 11:55:37 +01:00
Alexander Strasser
23b57b0203
doc/libavcodec: improve wording in description
...
Signed-off-by: Alexander Strasser <eclipse7@gmx.net >
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2012-11-06 11:55:29 +01:00
Stefano Sabatini
d658f9a1cb
doc/ffserver: fix typos/reword paragraphs about FFM versions
2012-11-06 11:35:14 +01:00
Stefano Sabatini
e8c0b6710c
examples/muxing: fix typo: allocated -> allocate
2012-11-06 11:28:28 +01:00
Michael Niedermayer
6a302331dd
Merge remote-tracking branch 'cus/stable'
...
* cus/stable:
ffplay: adjust external clock speed based on buffer fullness for realtime sources
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-06 04:02:42 +01:00
Michael Niedermayer
2a0dfc51ea
img2enc: support 16bit per sample yuv in split planes.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-06 02:27:04 +01:00
Michael Niedermayer
52c40a0e52
MAINTAINERS: fix entry for img2
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-06 01:46:21 +01:00
Michael Niedermayer
2c87565147
img2enc: support storing alpha planes too in split plane mode
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-06 01:42:26 +01:00
Michael Niedermayer
db012e161e
img2enc: Fix yuva with yuv split planes.
...
Previously the chroma planes where corrupted in this case.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-06 01:31:41 +01:00
Michael Niedermayer
67ee2d2f6d
img2enc: check pix_fmt for split planes mode.
...
Found-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-06 01:31:41 +01:00
Michael Niedermayer
6dfcc7abdd
img2enc: ensure that the codec is rawvideo for split planes mode.
...
Found-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-06 01:31:41 +01:00
Stefano Sabatini
7f6f8f642c
examples/demuxing: fix braino
...
s/video/audio/ in a log message.
2012-11-06 01:10:12 +01:00
Stefano Sabatini
794cea588c
examples/demuxing: dump input information *after* trying to open audio stream
...
Implement more logical code flow.
2012-11-06 01:10:12 +01:00
Paul B Mahol
c99564492c
fate: add more pix_fmt tests for xwd
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-05 22:31:24 +00:00
Michael Niedermayer
6493842900
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
FATE: add a 24-bit FLAC encoding test
FATE: rename FLAC tests from flac-* to flac-16-*
flacenc: use RICE2 entropy coding mode for 24-bit
flacenc: add 24-bit encoding
flacdsp: move lpc encoding from FLAC encoder to FLACDSPContext
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-05 23:01:34 +01:00
Michael Niedermayer
7d26be63c2
Merge commit '5ff998a233d759d0de83ea6f95c383d03d25d88e'
...
* commit '5ff998a233d759d0de83ea6f95c383d03d25d88e':
flacenc: use uint64_t for bit counts
flacenc: remove wasted trailing 0 bits
lavu: add av_ctz() for trailing zero bit count
flacenc: use a separate buffer for byte-swapping for MD5 checksum on big-endian
fate: aac: Place LATM tests and general AAC tests in different groups
build: The A64 muxer depends on rawenc.o for ff_raw_write_packet()
Conflicts:
doc/APIchanges
libavutil/version.h
tests/fate/aac.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-05 22:51:20 +01:00
Michael Niedermayer
e859339e7a
Merge commit '930e26a3ea9d223e04bac4cdde13697cec770031'
...
* commit '930e26a3ea9d223e04bac4cdde13697cec770031':
x86: h264qpel: Only define mmxext QPEL functions if H264QPEL is enabled
x86: PABSW: port to cpuflags
x86: vc1dsp: port to cpuflags
rtmp: Use av_strlcat instead of strncat
Conflicts:
libavcodec/x86/h264_qpel.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-05 22:36:05 +01:00
Martin Storsjö
f0615557e0
rtmpproto: Use av_strlcat instead of strncat
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Fixes: [FFmpeg-devel] rtmpproto compile error
Similar patch: [FFmpeg-devel] [PATCH] call to strncat replaced with av_strlcat to avoid compile issue with systems implementing strncat via strcat.
2012-11-05 21:47:43 +01:00
Paul B Mahol
10ac70d249
avrndec: use more meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-05 20:47:22 +00:00
Paul B Mahol
70727e8774
lavf/avr: make .long_name consistent with others
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-05 20:47:22 +00:00
Paul B Mahol
efbe162f7d
cljr: use meaningful error code
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-05 20:47:13 +00:00
Justin Ruggles
8a58894fc6
FATE: add a 24-bit FLAC encoding test
2012-11-05 15:32:30 -05:00
Justin Ruggles
5ff998a233
flacenc: use uint64_t for bit counts
...
Needed to avoid integer overflows for 24-bit encoding.
2012-11-05 15:32:30 -05:00
Justin Ruggles
31c3b9c95e
FATE: rename FLAC tests from flac-* to flac-16-*
...
This will distinguish FLAC 16-bit tests from FLAC tests with other bit
depths.
2012-11-05 15:32:30 -05:00
Justin Ruggles
e783316322
flacenc: remove wasted trailing 0 bits
2012-11-05 15:32:30 -05:00
Justin Ruggles
2e76f34387
flacenc: use RICE2 entropy coding mode for 24-bit
2012-11-05 15:32:30 -05:00
Justin Ruggles
13e1ee6c84
flacenc: add 24-bit encoding
2012-11-05 15:32:30 -05:00
Justin Ruggles
799e232490
flacdsp: move lpc encoding from FLAC encoder to FLACDSPContext
...
Also, templatize the functions for 16-bit and 32-bit sample range. This will
be used for 24-bit FLAC encoding.
2012-11-05 15:32:30 -05:00
Justin Ruggles
dfde8a34e5
lavu: add av_ctz() for trailing zero bit count
2012-11-05 15:32:29 -05:00
Justin Ruggles
6a744d2619
flacenc: use a separate buffer for byte-swapping for MD5 checksum on big-endian
...
This is much faster than calculating the MD5 one sample at a time.
2012-11-05 15:32:29 -05:00
Michael Niedermayer
282a6308bf
udp: check ff_socket_nonblock() return code
...
Fixes CID733719
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-05 21:21:04 +01:00
Diego Biurrun
2253df76c1
fate: aac: Place LATM tests and general AAC tests in different groups
2012-11-05 20:48:50 +01:00
Diego Biurrun
92fec47d69
build: The A64 muxer depends on rawenc.o for ff_raw_write_packet()
2012-11-05 20:48:50 +01:00
Diego Biurrun
930e26a3ea
x86: h264qpel: Only define mmxext QPEL functions if H264QPEL is enabled
...
This fixes compilation with --disable-everything and components enabled.
2012-11-05 20:48:43 +01:00
Michael Niedermayer
30d27685b1
segment: fix null ptr deref
...
Fixes CID732220
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-05 20:26:10 +01:00
Paul B Mahol
962314fe27
AVR demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-05 17:31:22 +00:00
Piotr Bandurski
8d88920578
dpcm: use AV_LOG_ERROR for error message.
2012-11-05 17:44:24 +01:00
Piotr Bandurski
461797f6aa
riff: add "lsvm" FourCC for H263.
2012-11-05 17:43:01 +01:00
Michael Niedermayer
b2b67fd610
docs/ffserver: document ffm/ffm2
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-05 16:36:44 +01:00
Michael Niedermayer
9829ec1a9c
ffm: redesign header format to make it extensible
...
Currently FFM files generated with one versions of ffmpeg generally
cannot be read by another.
By spliting data into chunks, more fields can saftely be appended to
chunks as well as new chunks added.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-05 16:36:44 +01:00
Paul B Mahol
2a2d39c721
fate: add more pix_fmt tests for pam
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-05 14:59:31 +00:00
Diego Biurrun
dbb37e7711
x86: PABSW: port to cpuflags
2012-11-05 14:51:10 +01:00
Diego Biurrun
6c104826bd
x86: vc1dsp: port to cpuflags
2012-11-05 14:51:10 +01:00
Martin Storsjö
d578f94746
rtmp: Use av_strlcat instead of strncat
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-11-05 15:37:09 +02:00
Paul B Mahol
e870a7dd4a
lavfi: stop using -1 instead use AV_PIX_FMT_NONE/AV_SAMPLE_FMT_NONE
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-05 13:34:08 +00:00
Michael Niedermayer
f4aaf987a5
frame_thread_encoder: fix handling of case where the encoder does not output a packet.
...
This case could cause a deadlock
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-05 13:30:08 +01:00
Paul B Mahol
17e67c5321
fate: add smjpegenc test
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-05 11:22:53 +00:00
Clément Bœsch
a8b3130181
lavf/srtdec: recognize subtitles starting at event index 0.
2012-11-05 07:37:45 +01:00
Carl Eugen Hoyos
c673ef1288
Write tiff tag YCbCrPositioning if chroma_sample_location is top-left.
2012-11-05 04:43:17 +01:00
Michael Niedermayer
b015cd7eda
fate: try to fix mxpeg failures
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-05 02:20:52 +01:00
Paul B Mahol
cc5bcaa48e
pnm: cosmetics: reindent
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-04 23:35:09 +00:00
Paul B Mahol
ae5ecb8e60
pnm: remove duplicated check for maxval > 255
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-04 23:33:17 +00:00
Michael Niedermayer
e82afa3e2d
filmstripenc: fix rounding that caused fate failure
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-05 00:28:21 +01:00
Michael Niedermayer
a147c1b2b1
oggenc: remove unneeded null check.
...
The code would have segfaulted before if it where null
Fixes CID732218
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-05 00:28:21 +01:00
Michael Niedermayer
1ba0d9b5d1
oss: warn when non block mode cannot be enabled.
...
Fixes CID732183
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-05 00:28:21 +01:00
Paul B Mahol
a0348d0966
pnm: remove nonsense code
...
If maxval is more than 255 than each value takes 2 bytes with most
significant byte first.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-04 23:17:12 +00:00
Paul B Mahol
bf8f4db413
fate: add MxPEG test
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-04 22:23:43 +00:00
Paul B Mahol
992a6a53ef
cdxl: add read_probe function
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-04 20:19:43 +00:00
Paul B Mahol
6e625d4198
fate: add some missing dependencies
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-04 19:11:26 +00:00
Michael Niedermayer
5eaeb4237b
ivi_common: dc_transform is needed for intra
...
Fixes CID90582 CID90536
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-04 19:27:15 +01:00
Michael Niedermayer
712287ef45
ff_ac3_apply_rematrixing: set flags to NULL
...
This makes the code more robust
Related to CID703820
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-04 19:26:54 +01:00
Marton Balint
747c749d42
ffplay: adjust external clock speed based on buffer fullness for realtime sources
...
This provides a means to synchronize the player clock to the clock of the
encoder.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-11-04 18:29:49 +01:00
Stefano Sabatini
74a50e75a8
lavu: drop disabled FF_API_OLD_TC_ADJUST_FRAMENUM code
2012-11-04 18:10:39 +01:00
Stefano Sabatini
008ace3524
doc/libavcodec: apply misc minor typo fixes
2012-11-04 18:01:16 +01:00
Stefano Sabatini
1ba2459fbb
lavfi/scale: declare the filter private class
...
Allow to show the supported options in the ffmpeg -h full output.
2012-11-04 18:01:16 +01:00
Paul B Mahol
1b3dbe3f75
lcldec: fix decoding of uncompressed rgb24 sample
...
Sample from ticket #1216 does not use any compression but bitstream
claims it is. Reference decoder decodes sample just fine.
Fixes #1216 .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-04 16:58:14 +00:00
Paul B Mahol
c4dd4f19f3
smush: improve probing
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-04 16:50:58 +00:00
Michael Niedermayer
a15adabdd3
aacsbr: fix integer overflow
...
Fixes CID603186
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-04 17:37:28 +01:00
Carl Eugen Hoyos
b5d496f3a4
Support new transparency colour-spaces with libopenjpeg.
...
Reviewed-by: Michael Bradshaw
2012-11-04 17:32:31 +01:00
Paul B Mahol
b0428741c6
indeo3: move get_buffer() above decode_plane() calls
...
This ensure that decode_plane() mmx code like AV_COPY64()
does not interfere with possible float instructions in
release_buffer/get_buffer.
Found-by: Carl Eugen Hoyos
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-04 14:42:32 +00:00
Michael Niedermayer
a04698c4a9
ffserver: zero dest_addr
...
Fixes CID733838
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-04 13:00:20 +01:00
Michael Niedermayer
bbd7b46b94
sab_diamond_search: add assert to double check the minima_count
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-04 13:00:20 +01:00
Stefano Sabatini
617d0d41a2
doc: add libavcodec.texi
...
The option chapter is based on the avoptions_codec.texi auto-generated
file.
2012-11-04 11:54:57 +01:00
Nicolas George
1fa47f8dea
cmdutils: allow to set the report file name.
...
The file name can be set by setting the FFREPORT environment
variable to "file=something".
Fix trac ticket #1823 .
2012-11-04 10:52:43 +01:00
Nicolas George
3bdf4971ba
lavu/opt: implement av_opt_get_key_value().
...
This function does the low-level work of av_opt_set_from_string()
but can be used when there is no option context or when a generic
handling of unknown keys is needed.
av_opt_set_from_string() is changed to make use of it.
2012-11-04 10:47:52 +01:00
Nicolas George
e021eeb9f0
lavu/opt: parse key into a mallocated buffer.
...
It removes the hardcoded limit on the key size without making
the code much more complex, and it makes for a more versatile API.
2012-11-04 10:47:52 +01:00
Michael Niedermayer
4e6fa5be3c
Revert "cmdutils: allow specifying the file for -report"
...
This reverts commit 841bf0ef24 .
This does not fully work as the file is used before the filename is parsed
so not all information is written in the specified file.
2012-11-04 10:47:52 +01:00
Paul B Mahol
50d3a1a962
vocenc: fix 10l regression
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-04 04:46:10 +00:00
Paul B Mahol
1c5b56eec7
vocenc: abort if unsupported codec is used
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-04 03:59:08 +00:00
Michael Niedermayer
4a2599b0e6
transform: give avfilter_transform() a return value for returning an error
...
Fixes CID703674
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-04 01:30:16 +01:00
Michael Niedermayer
5f53138621
movenc: remove unneeded check
...
Fixes CID741417
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-04 01:03:52 +01:00
Michael Niedermayer
c9e4554329
cook: fix use of uninitialized variable
...
Fixes CID741418
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-04 01:03:52 +01:00
Stefano Sabatini
d034847f7a
lavfi/earwax: add missing NULL check in filter_samples()
2012-11-04 00:17:27 +01:00
Stefano Sabatini
3af7919be4
add tools/fourcc2pixfmt to .gitignore
2012-11-03 23:40:28 +01:00
Stefano Sabatini
aa48446c9a
lavc/xfaceenc: prefer do{}while() over for(){} construct in xface_encode_frame() loop
...
Slightly simplify readability, since the initial check is unnecessary.
2012-11-03 23:35:50 +01:00
Michael Niedermayer
33d54af427
fate: add filmstrip test
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 22:47:14 +01:00
Xidorn Quan
0ecef3a0ef
amr_decode_fix_avctx should not return value
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 21:38:37 +01:00
Stefano Sabatini
6450c05ba5
lswr/swresample: adopt globally consistent rules for options help message
...
The help text tells what the option does, not what the accepted parameter
is. Thus convert strings of the kind:
Bikeshed Color
to
set bikeshed color
2012-11-03 20:38:02 +01:00
Stefano Sabatini
0372ecfa48
lavc/options_table: force non-negative bitrate range
...
It does not make sense to set a negative bitrate.
2012-11-03 20:38:02 +01:00
Michael Niedermayer
930226cf52
crystalhd: fix missing braces warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 20:22:53 +01:00
Michael Niedermayer
ab796ded75
avstring: fix compiler warning about freeing const pointers
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 20:22:53 +01:00
Nicolas George
73180ecd0a
doc/faq: make the -sameq question more explicit.
...
Wording suggested by Stefano Sabatini, should have been
merged with the previous commit.
2012-11-03 17:13:44 +01:00
Nicolas George
8cf6377ac1
doc/faq: explain why -sameq is gone.
2012-11-03 17:03:13 +01:00
Paul B Mahol
94f224516c
westwood_aud: remove stale comment
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-03 14:54:17 +00:00
Michael Niedermayer
2581d9bcbb
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
doc: add apidoc target for doxygen API documentation
matroskadec: do not use avpacket internals
Conflicts:
doc/Makefile
libavformat/matroskadec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 14:48:51 +01:00
Michael Niedermayer
37e81996dc
Merge commit '9221efef7968463f3e3d9ce79ea72eaca082e73f'
...
* commit '9221efef7968463f3e3d9ce79ea72eaca082e73f':
lavf: fix av_interleaved_write_frame() doxy.
lavf: clarify the lifetime of demuxed packets.
avconv: do not free muxed packet on streamcopy.
crc: move doxy to the header
vf_drawtext: do not use deprecated av_tree_node_size
x86: Refactor PSWAPD fallback implementations and port to cpuflags
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 14:24:11 +01:00
Michael Niedermayer
1885ffb03d
Merge commit '9a07c1332cfe092b57b5758f22b686ca58806c60'
...
* commit '9a07c1332cfe092b57b5758f22b686ca58806c60':
parser: Move Doxygen documentation to the header files
PGS subtitles: Expose forced flag
x86: PMINUB: port to cpuflags
Conflicts:
libavcodec/avcodec.h
libavcodec/pgssubdec.c
libavcodec/version.h
libavcodec/x86/ac3dsp.asm
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 14:13:45 +01:00
Stefano Sabatini
b91fa5fcca
lavu/opt: set sample format default value, and accept NULL value
...
Fix commit c9eaa98a3e .
+10l.
2012-11-03 13:53:49 +01:00
Michael Niedermayer
1dad486714
Merge commit '9ce02e14f01de50fcc6f7f459544b140be66d615'
...
* commit '9ce02e14f01de50fcc6f7f459544b140be66d615':
x86: ac3dsp: port to cpuflags
x86util: Add cpuflags_mmxext alias for cpuflags_mmx2
x86inc: Only define program_name if the macro is unset
Conflicts:
libavcodec/x86/ac3dsp.asm
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 13:38:38 +01:00
Stefano Sabatini
1c755f7667
lavc/options_table: make "request_sample_fmt" an AV_OPT_TYPE_SAMPLE_FMT option
...
Simplify, increase robustness in case a new sample format is added.
2012-11-03 12:15:42 +01:00
Stefano Sabatini
ca11f6b240
lavu/opt: prefer if(){}else{} over if()else{} construct
...
Improve consistency.
2012-11-03 12:14:53 +01:00
Stefano Sabatini
481fdeeecf
lavu/opt: add AV_OPT_SAMPLE_FMT option
2012-11-03 12:14:26 +01:00
Stefano Sabatini
7be09a91c2
lswr/swresample.h: use consistent inclusion guard header name
2012-11-03 12:06:43 +01:00
Stefano Sabatini
a62242678f
ffmpeg: complain loudly and exit in case removed -sameq option is specified
...
This is better than silently ignoring the option, which results in
unexpected quality results.
2012-11-03 12:05:43 +01:00
Stefano Sabatini
c9eaa98a3e
doc/ffmpeg: remove -debug option description
...
The option belongs to libavcodec, so it results duplicated in the file.
2012-11-03 11:01:48 +01:00
Michael Niedermayer
b7280cff9a
asfdec: check stream_index for validity
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 05:58:12 +01:00
Michael Niedermayer
e5927910c2
asfdec: flip the interpretation of the header aspect back
...
This reverts 2de8877689
Fixes Ticket 1883
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 05:49:07 +01:00
Michael Niedermayer
343c73e252
asfdec: parse aspect ratio payload extension
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 05:49:07 +01:00
Michael Niedermayer
8c93269e42
asfdec: correctly parse payload extensions
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 05:37:18 +01:00
Michael Niedermayer
2d8c76eb1f
asfdec: parse payload extension list
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 05:35:35 +01:00
Michael Niedermayer
ac2a3a7a05
vf_tinterlace: check av_image_get_linesize() return value
...
Fixes CID703717
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 02:38:30 +01:00
Michael Niedermayer
03764f6735
af_earwax: remove unused pointer value
...
Fixes CID703849
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 02:38:23 +01:00
Michael Niedermayer
d3dfe99bc5
libgsmdec: fix decoding of non 8khz gsm files
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 00:50:22 +01:00
Michael Niedermayer
6e6033b793
gsmdec: fix decoding of non 8khz gsm files
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-03 00:50:22 +01:00
Paul B Mahol
20ac916e6d
indeo3: release buffer before calling decode_plane
2012-11-02 23:43:23 +00:00
Paul B Mahol
b02116cc4a
Revert "Partly revert f174fba: indeo3 decoder does not support direct rendering."
...
f174fba did not introduce DR1 flag it was already available before that.
This reverts commit 8bf44d5c96 .
2012-11-02 23:36:57 +00:00
Michael Niedermayer
4ad6ef00a2
libvo-amrwbenc: allow sampling rates other than 16khz
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-02 23:47:58 +01:00
Michael Niedermayer
b30f4510d8
libopencore-amr: allow sampling rates other than 8khz
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-02 23:47:58 +01:00
Michael Niedermayer
0aaf0a07d4
libopencore-amrdec: allow sampling rates other than 8khz
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-02 23:47:58 +01:00
Michael Niedermayer
2c1e9383a2
amrwbdec: allow sample rates other than 16khz
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-02 23:47:58 +01:00
Michael Niedermayer
d8aaec38fc
amrnbdec: allow sample rates other than 8khz
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-02 23:47:58 +01:00
Paul B Mahol
f58f600c68
lclenc: make compression level user selectable
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-02 22:14:14 +00:00
Heesuk Jung
25b7aa980b
Fix bit_rate in MPEG1/2 Video
...
In ISO/IEC 13818-2, bit rate is differently determined according to video type
1) MPEG1 Video
Bit_rate and vbv_delay are set to 3FFFF and FFFF respectively
to indicate variable bitrate. Other values are for constant bitrate.
VBV is only defined for constant bit rate operation.
Ths STD supersedes the VBV model for vbr.
2) MPEG2 Video
Even if the bitrate is constant, the value of bit_rate may not be the actual bitrate
since bit_rate need only be an upper bound to that actual bitrate.
VBV is only defined for variable bit rate operation.
Constant bit rate is viewed as a special case of vbr.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-02 22:27:17 +01:00
Paul B Mahol
77d89a5b16
apedec: consume packet after it has been fully decoded
...
Timestamp handling of decoded frames are much simpler now.
Fixes #1675 .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-02 19:44:49 +00:00
Janne Grunau
b3fab1f2cd
doc: add apidoc target for doxygen API documentation
...
Documentation includes only the externally visible API of the installed
headers.
Based on a patch by Anton Khirnov <anton@khirnov.net >.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-11-02 18:28:56 +01:00
Anton Khirnov
9221efef79
lavf: fix av_interleaved_write_frame() doxy.
...
A sentence was mistakenly inserted in the middle of another sentence.
2012-11-02 18:28:56 +01:00
Anton Khirnov
34871beb5e
matroskadec: do not use avpacket internals
2012-11-02 18:28:56 +01:00
Anton Khirnov
717a450993
lavf: clarify the lifetime of demuxed packets.
2012-11-02 18:28:56 +01:00
Anton Khirnov
c8977f6d26
avconv: do not free muxed packet on streamcopy.
...
The packet belongs to lavf, the caller must not free it or access it in
any other way.
No change in practice, since destruct is set to NULL anyway.
2012-11-02 18:28:56 +01:00
Anton Khirnov
b4dc6dccba
crc: move doxy to the header
2012-11-02 18:28:56 +01:00
Anton Khirnov
b68aac7ea3
vf_drawtext: do not use deprecated av_tree_node_size
2012-11-02 18:28:55 +01:00
Paul B Mahol
c39fb30816
smjpegdec: set nb_frames for video stream
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-02 16:32:51 +00:00
Diego Biurrun
0a7a94f2e5
x86: Refactor PSWAPD fallback implementations and port to cpuflags
2012-11-02 17:05:29 +01:00
Diego Biurrun
9a07c1332c
parser: Move Doxygen documentation to the header files
2012-11-02 16:44:23 +01:00
John Stebbins
85f67c4865
PGS subtitles: Expose forced flag
...
Useful for detection of subtitles displayed during foreign language
scenes.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-11-02 16:13:35 +01:00
Diego Biurrun
26f01bd106
x86: PMINUB: port to cpuflags
2012-11-02 15:38:15 +01:00
Diego Biurrun
9ce02e14f0
x86: ac3dsp: port to cpuflags
2012-11-02 15:24:50 +01:00
Diego Biurrun
61bc2bc7d4
x86util: Add cpuflags_mmxext alias for cpuflags_mmx2
...
"mmxext" is a more sensible name and more common in outside projects.
2012-11-02 15:22:34 +01:00
Nicolas George
805b57001f
lavc/pngdec: decode textual data (tEXt and zTXt).
...
Requested in trac ticket #1857 .
2012-11-02 15:12:29 +01:00
Nicolas George
483c1aa5f1
lavu/bprint: add av_bprint_get_buffer().
...
It is useful to use bprint to handle a growing buffer
used with another API.
2012-11-02 15:12:29 +01:00
Michael Niedermayer
8551c6bec0
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
dv1394: Swap the min and max values of the 'standard' option
rtpdec_vp8: Don't parse fields that aren't used
lavc: add some AVPacket doxy.
audiointerleave: deobfuscate a function call.
rtpdec: factorize identical code used in several handlers
a64: remove interleaved mode.
doc: Point to the new location of the c99-to-c89 tool
decode_audio3: initialize AVFrame
ws-snd1: set channel layout
wmavoice: set channel layout
wmapro: use AVCodecContext.channels instead of keeping a private copy
wma: do not keep private copies of some AVCodecContext fields
Conflicts:
libavcodec/wmadec.c
libavcodec/wmaenc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-02 14:57:36 +01:00
Diego Biurrun
012f73e271
x86inc: Only define program_name if the macro is unset
...
This allows overriding the value from outside of the file.
2012-11-02 14:38:00 +01:00
Michael Niedermayer
6788350281
Merge commit '50a65e7a540ce6747f81d6dbf6a602ad35be77ff'
...
* commit '50a65e7a540ce6747f81d6dbf6a602ad35be77ff': (24 commits)
vmdaudio: set channel layout
twinvq: validate sample rate code
twinvq: set channel layout
twinvq: validate that channels is not <= 0
truespeech: set channel layout
sipr: set channel layout
shorten: validate that the channel count in the header is not <= 0
ra288dec: set channel layout
ra144dec: set channel layout
qdm2: remove unneeded checks for channel count
qdm2: make sure channels is not <= 0 and set channel layout
qcelpdec: set channel layout
nellymoserdec: set channels to 1
libopencore-amr: set channel layout for amr-nb or if not set by the user
libilbc: set channel layout
dpcm: use AVCodecContext.channels instead of keeping a private copy
imc: set channels to 1 instead of validating it
gsmdec: always set channel layout and sample rate at initialization
libgsmdec: always set channel layout and sample rate at initialization
g726dec: do not validate sample rate
...
Conflicts:
libavcodec/dpcm.c
libavcodec/qdm2.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-02 14:20:33 +01:00
Michael Niedermayer
00aa7fa786
pcm: fix handling of more than 8 channels for planar
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-02 14:00:23 +01:00
Michael Niedermayer
db9f426cab
Merge commit '8ac0f6767bf63d3e6b308ee6648ff02598b81e03'
...
* commit '8ac0f6767bf63d3e6b308ee6648ff02598b81e03':
dcadec: allow the decoder to change the channel layout mid-stream
cook: use av_dlog() for debug logging instead of av_log() with AV_LOG_ERROR
cook: move samples_per_frame from COOKSubpacket to where it is used
cook: use av_get_channel_layout_nb_channels() instead of cook_count_channels()
cook: reverse a condition so that the code makes more sense
cook: remove unneeded COOKContext variable, sample_rate
cook: remove unneeded COOKContext variable, bit_rate
cook: use AVCodecContext.channels instead of keeping a private copy
bmvaudio: set channel layout at init() rather than validating it
atrac1: do not keep a copy of channel count in the private context
dsicinaudio: set channels and channel layout
g722dec: set channel layout at initialization instead of validating it
amrwbdec: set channels, channel_layout, and sample_rate
amrnbdec: set channels, channel_layout, and sample_rate
dca_parser: allow the parser to change the sample rate
lavc: check channel count after decoder init
lavc: move SANE_NB_CHANNELS to internal.h and use it in the PCM decoders
Conflicts:
libavcodec/dcadec.c
libavcodec/pcm.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-02 13:43:57 +01:00
Michael Niedermayer
e1c804d883
dv1394: Swap the min and max values of the 'standard' option
...
DV1394_NTSC has a lower value than DV1394_PAL.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-11-02 11:25:48 +02:00
Martin Storsjö
2b831a59d9
rtpdec_vp8: Don't parse fields that aren't used
...
This avoids warnings about unused variables.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-11-02 10:59:17 +02:00
Anton Khirnov
0876c28080
lavc: add some AVPacket doxy.
2012-11-02 07:58:38 +01:00
Anton Khirnov
fdc8672886
audiointerleave: deobfuscate a function call.
...
right above there is if (pkt) {<do stuff>; pkt = NULL}, so pkt is just a
fancy name for NULL at this point.
2012-11-02 07:58:38 +01:00
Anton Khirnov
179a5c37e0
rtpdec: factorize identical code used in several handlers
2012-11-02 07:58:37 +01:00
Anton Khirnov
f70381ab9d
a64: remove interleaved mode.
...
It has been disabled since it was added two years ago.
2012-11-02 07:58:37 +01:00
Jason
a5f6720f13
Add QT CC track mux support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-02 05:00:27 +01:00
Michael Niedermayer
ebfc212b02
dv1394: fix order of AVOption fields
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-02 02:07:15 +01:00
Alexis Ballier
1475815a1a
Apply again [ 916352f282] that got lost in the merges.
...
Do not quote second argument to filter{,_out} in check_ld. We want to keep/remove all the space-separated words matching the -l* pattern, not keep everything if the whole argument begins with -l and remove it otherwise.
This also fixes errors like:
./configure: eval: line 418: syntax error near unexpected token `-l*'
./configure: eval: line 418: `case in -l*) ;; *) echo ;; esac'
when run with ./configure --enable-openal
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-02 00:28:25 +01:00
Michael Niedermayer
099786a638
Merge remote-tracking branch 'cus/stable'
...
* cus/stable:
ffplay: remove redundant !codec check
ffplay: only initialize codec opts before using it
ffplay: always free buffersink_params in configure_video_filters
ffplay: remove uneeded format filter, buffersink format is set
ffplay: check for buffersink_params allocation success
ffplay: always free inputs and outputs in configure_filtergraph
ffplay: fill the unused part of the window with black
ffplay: add update parameter to fill_rectangle
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-01 22:09:02 +01:00
Martin Storsjö
c19e9d00a7
doc: Point to the new location of the c99-to-c89 tool
...
This location contains prebuilt binaries as well.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-11-01 22:47:50 +02:00
Michael Niedermayer
f742c7b2ce
lavf: fix integer overflow in rfps calculation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-01 21:37:29 +01:00
Michael Niedermayer
bacebe1f95
avienc: force a valid timebase for video
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-01 20:26:59 +01:00
Ilkka Ollakka
6d1270a0f9
decode_audio3: initialize AVFrame
...
Same fix and issue as in a25d912dca
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-11-01 19:43:05 +01:00
Stefano Sabatini
7669144ada
doc/platform: Comply With All Capitalized Words Convention
2012-11-01 19:37:41 +01:00
Michael Niedermayer
4695ee71b0
lavfi/fifo: add assert to ensure request was successfull.
...
We would crash a moment later anyway if this fails.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-01 18:02:23 +01:00
Michael Niedermayer
304ebed586
mpegts_probe: detect files with garbage at the begin.
...
Fixes Ticket1811
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-01 17:22:04 +01:00
Justin Ruggles
5459848b14
ws-snd1: set channel layout
2012-11-01 11:30:04 -04:00
Justin Ruggles
f7b8506573
wmavoice: set channel layout
2012-11-01 11:30:04 -04:00
Justin Ruggles
50a65e7a54
vmdaudio: set channel layout
2012-11-01 11:29:19 -04:00
Justin Ruggles
002097a00b
wmapro: use AVCodecContext.channels instead of keeping a private copy
2012-11-01 11:29:19 -04:00
Justin Ruggles
b5f628e227
twinvq: validate sample rate code
...
A large invalid value could cause undefined behavior when left-shifted
by 8 later in the function.
2012-11-01 11:29:19 -04:00
Justin Ruggles
2ed40608e9
wma: do not keep private copies of some AVCodecContext fields
...
channels, sample_rate, bit_rate, and block_align can be used directly from
the AVCodecContext
2012-11-01 11:29:19 -04:00
Justin Ruggles
335826cf5f
twinvq: set channel layout
2012-11-01 11:29:19 -04:00
Justin Ruggles
8cc72ce5a0
twinvq: validate that channels is not <= 0
...
This could occur due to integer overflow when reading the channel count from
the extradata.
2012-11-01 11:29:19 -04:00
Justin Ruggles
cebea00c8a
truespeech: set channel layout
2012-11-01 11:29:18 -04:00
Justin Ruggles
523734eb6a
sipr: set channel layout
2012-11-01 11:29:18 -04:00
Justin Ruggles
4c53f4aed3
shorten: validate that the channel count in the header is not <= 0
2012-11-01 11:29:18 -04:00
Justin Ruggles
4e13e50432
ra288dec: set channel layout
2012-11-01 11:29:18 -04:00
Justin Ruggles
6159f64364
ra144dec: set channel layout
2012-11-01 11:29:18 -04:00
Justin Ruggles
eb38d8fe92
qdm2: remove unneeded checks for channel count
2012-11-01 11:29:18 -04:00
Justin Ruggles
be2ab8b75a
qdm2: make sure channels is not <= 0 and set channel layout
2012-11-01 11:29:18 -04:00
Justin Ruggles
e3d6ab5704
qcelpdec: set channel layout
2012-11-01 11:29:18 -04:00
Justin Ruggles
d26701ce2f
nellymoserdec: set channels to 1
2012-11-01 11:29:17 -04:00
Justin Ruggles
d40dab907a
libopencore-amr: set channel layout for amr-nb or if not set by the user
2012-11-01 11:29:17 -04:00
Justin Ruggles
30f8da29bf
libilbc: set channel layout
2012-11-01 11:29:17 -04:00
Justin Ruggles
0fd1ddf155
dpcm: use AVCodecContext.channels instead of keeping a private copy
2012-11-01 11:29:17 -04:00
Justin Ruggles
1c7a016153
imc: set channels to 1 instead of validating it
2012-11-01 11:29:17 -04:00
Justin Ruggles
32c7769e5c
gsmdec: always set channel layout and sample rate at initialization
...
Only mono 8kHz is supported.
2012-11-01 11:29:17 -04:00
Justin Ruggles
8ac0f6767b
dcadec: allow the decoder to change the channel layout mid-stream
2012-11-01 11:29:16 -04:00
Justin Ruggles
c5b8acad73
libgsmdec: always set channel layout and sample rate at initialization
...
Only mono 8kHz is supported.
2012-11-01 11:29:16 -04:00
Justin Ruggles
a346aaf148
g726dec: do not validate sample rate
...
For decoding it does not really matter what the sample rate is.
2012-11-01 11:29:16 -04:00
Justin Ruggles
e00eb03cd8
g726dec: set channel layout at initialization instead of validating it
2012-11-01 11:29:16 -04:00
Justin Ruggles
99d8686357
flacdec: do not warn on sample rate change
2012-11-01 11:29:16 -04:00
Justin Ruggles
90fcac0e95
flacdec: allow mid-stream channel layout change
...
Although the libFLAC decoder cannot handle such a change, it is allowed by the
spec and could potentially occur with live streams.
2012-11-01 11:29:16 -04:00
Justin Ruggles
268f8ba112
flacdec: use av_samples_* functions for sample buffer allocation
...
Also, return an error on allocation failure.
2012-11-01 11:29:16 -04:00
Justin Ruggles
93e27f86f1
cook: use av_dlog() for debug logging instead of av_log() with AV_LOG_ERROR
2012-11-01 11:29:15 -04:00
Justin Ruggles
8f173ef019
cook: move samples_per_frame from COOKSubpacket to where it is used
2012-11-01 11:29:15 -04:00
Justin Ruggles
7efbba2e36
cook: use av_get_channel_layout_nb_channels() instead of cook_count_channels()
2012-11-01 11:29:15 -04:00
Justin Ruggles
d21b2e4726
cook: reverse a condition so that the code makes more sense
2012-11-01 11:29:15 -04:00
Justin Ruggles
926e9d28f1
cook: remove unneeded COOKContext variable, sample_rate
2012-11-01 11:29:15 -04:00
Justin Ruggles
8aa5b8c5c8
cook: remove unneeded COOKContext variable, bit_rate
2012-11-01 11:29:15 -04:00
Justin Ruggles
3509eee19c
cook: use AVCodecContext.channels instead of keeping a private copy
2012-11-01 11:29:14 -04:00
Justin Ruggles
a3145d0335
bmvaudio: set channel layout at init() rather than validating it
2012-11-01 11:29:14 -04:00
Justin Ruggles
a38eadf7ed
atrac1: do not keep a copy of channel count in the private context
2012-11-01 11:29:14 -04:00
Justin Ruggles
4f56f9c48f
dsicinaudio: set channels and channel layout
2012-11-01 11:29:14 -04:00
Justin Ruggles
ec2694d259
g722dec: set channel layout at initialization instead of validating it
2012-11-01 11:29:14 -04:00
Justin Ruggles
ee0e9678e7
amrwbdec: set channels, channel_layout, and sample_rate
...
Only mono 16kHz is supported.
2012-11-01 11:29:14 -04:00
Justin Ruggles
b24a4449a5
amrnbdec: set channels, channel_layout, and sample_rate
...
Only mono 8kHz is supported.
2012-11-01 11:29:14 -04:00
Justin Ruggles
a4202003b2
dca_parser: allow the parser to change the sample rate
2012-11-01 11:29:13 -04:00
Justin Ruggles
0366664ef9
lavc: check channel count after decoder init
...
Ensures the decoder did not set channel count to an insanely high value
during initialization, which could cause large memory usage when it tries to
get a buffer during decoding.
2012-11-01 11:29:13 -04:00
Justin Ruggles
bb6941af2a
lavc: move SANE_NB_CHANNELS to internal.h and use it in the PCM decoders
2012-11-01 11:29:13 -04:00
Tomas Härdin
84e7d368d6
mxfdec: Fix inferred misuses of enums
...
This fixes CID 700457, 700458 and 703705.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-01 16:21:12 +01:00
Marton Balint
fec39d99d6
ffplay: remove redundant !codec check
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-11-01 15:46:18 +01:00
Marton Balint
fdb933444a
ffplay: only initialize codec opts before using it
...
Fixes Coverity CID 733793.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-11-01 15:46:18 +01:00
Marton Balint
8cb740245d
ffplay: always free buffersink_params in configure_video_filters
...
Fixes Coverity CID 733792.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-11-01 15:46:18 +01:00
Marton Balint
09214f494b
ffplay: remove uneeded format filter, buffersink format is set
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-11-01 15:46:18 +01:00
Marton Balint
afd9e705de
ffplay: check for buffersink_params allocation success
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-11-01 15:46:18 +01:00
Marton Balint
abd49a7524
ffplay: always free inputs and outputs in configure_filtergraph
...
Fixes Coverity CID 733791.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-11-01 15:46:18 +01:00
Marton Balint
65f6c42a9f
ffplay: fill the unused part of the window with black
...
Should fix ticket #1667 .
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-11-01 15:46:18 +01:00
Marton Balint
00b70f8d29
ffplay: add update parameter to fill_rectangle
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-11-01 15:46:18 +01:00
Michael Niedermayer
e5cf100d3d
mpegvideo_probe: check slice order
...
Fixes: Enrique.mp3
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-01 15:08:03 +01:00
Michael Niedermayer
7fd9d49ba7
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
fate: add ac3/eac3 tests to FATE_SAMPLES_AVCONV
avconv_opt, cmdutils: Add missing function parameter Doxygen
x86: Move optimization suffix to end of function names
Conflicts:
cmdutils.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-01 13:25:46 +01:00
Michael Niedermayer
add7513e64
Merge commit 'fa8fcab1e0d31074c0644c4ac5194474c6c26415'
...
* commit 'fa8fcab1e0d31074c0644c4ac5194474c6c26415':
x86: h264_chromamc_10bit: drop pointless PAVG %define
x86: mmx2 ---> mmxext in function names
swscale: do not forget to swap data in formats with different endianness
Conflicts:
libavcodec/x86/dsputil_mmx.c
libavfilter/x86/gradfun.c
libswscale/input.c
libswscale/utils.c
libswscale/x86/swscale.c
tests/ref/lavfi/pixfmts_scale
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-01 13:11:51 +01:00
Stefano Sabatini
14f1fa56b2
doc/filters: add "Notes on filtergraph escaping" section
...
Should help to clarify escaping issues in the filtergraph syntax. In
particular, should address trac ticket #1813 .
2012-11-01 11:47:35 +01:00
Michael Niedermayer
6204ea17f1
rational: test add/sub too
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-01 02:59:44 +01:00
Michael Niedermayer
841bf0ef24
cmdutils: allow specifying the file for -report
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-01 02:59:44 +01:00
Carl Eugen Hoyos
7139f0e6be
Fix typo in platform documentation.
2012-11-01 01:45:53 +01:00
Paul B Mahol
bb9bc1fc98
flicvideo: return more meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-11-01 00:29:05 +00:00
Michael Niedermayer
6a712e7f62
sws: bump micro for range bugfix
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-01 00:32:15 +01:00
Michael Niedermayer
25a21c587c
eval-test: add some otherwise untested functions.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-11-01 00:32:15 +01:00
Clément Bœsch
54a48d2f04
lavfi: fix references to avfilter_* functions that don't exist anymore.
2012-10-31 20:54:59 +01:00
Paul B Mahol
010f1ce954
ffv1: assert that there is at least one slice
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-31 19:42:07 +00:00
Janne Grunau
6b07830a77
fate: add ac3/eac3 tests to FATE_SAMPLES_AVCONV
...
Fixes typo in 2cbdd7c929 .
2012-10-31 20:01:08 +01:00
Clément Bœsch
fd6707ed0e
lavfi/hue: add missing GPL dependency.
2012-10-31 19:28:02 +01:00
Clément Bœsch
5b4cae50c9
LICENSE: update GPL filter list.
2012-10-31 19:28:02 +01:00
Clément Bœsch
f53112b665
lavfi: remove hqdn3d libmpcodecs wrapper.
...
The native filter was ported from the MPlayer project when the mp
wrapper didn't even exist, and when mp=hqdn3d was added, it was already
obsolete.
2012-10-31 19:28:02 +01:00
Michael Niedermayer
adc39b28a5
av_image_copy: check for av_image_get_linesize() failure.
...
Fixes CID703722
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-31 19:12:48 +01:00
Michael Niedermayer
6992b0bfc2
utils: fix rounding of micro seconds
...
Found-by: Johan Wessfeldt <johan.wessfeldt@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-31 19:12:47 +01:00
Diego Biurrun
fa8fcab1e0
x86: h264_chromamc_10bit: drop pointless PAVG %define
...
It is only used in one place so there is no need for the abstraction.
2012-10-31 18:21:55 +01:00
Diego Biurrun
02e4275180
avconv_opt, cmdutils: Add missing function parameter Doxygen
2012-10-31 18:21:55 +01:00
Diego Biurrun
c37322e68c
x86: Move optimization suffix to end of function names
...
This simplifies cpuflags porting.
2012-10-31 18:21:55 +01:00
Diego Biurrun
d8eda37080
x86: mmx2 ---> mmxext in function names
2012-10-31 17:53:57 +01:00
Kostya Shishkov
38fdf72580
swscale: do not forget to swap data in formats with different endianness
...
Otherwise during scaling it will try to interpret input in the wrong way and
that leads to the test results disagreeing on different platforms and with
different optimizations.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-10-31 17:53:57 +01:00
Michael Niedermayer
3a34ac6541
file: typo
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-31 17:01:52 +01:00
Michael Niedermayer
31bf820a26
av_tempfile: document umask() issue
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-31 16:24:04 +01:00
Stefano Sabatini
1b21642149
lavfi/scale: avoid to print a NULL value in log message
...
Fix possible crash occurring when libc does not support NULL printing.
2012-10-31 15:46:46 +01:00
Nick Brereton
09ea482d5d
Fix #1827 , segfault with XXCH samples when downsampling.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-31 14:49:46 +01:00
Stefano Sabatini
be0b37c649
lavf/avienc: fix/extend error message, in case of too large number of skipped frames
2012-10-31 14:46:40 +01:00
Stefano Sabatini
f35d5f966f
lavf/avienc: enable debug log
2012-10-31 14:46:24 +01:00
Stefano Sabatini
29a9e4d5c9
lavfi/mp: drop the mp=rectangle filter
...
All the rectangle features have been ported to the native drawbox filter,
which has an equivalent syntax.
2012-10-31 14:46:18 +01:00
Stefano Sabatini
9d478f38cd
lavfi/drawbox: add "width" and "height" aliases for "w" and "h" options
2012-10-31 14:43:47 +01:00
Stefano Sabatini
93399e9381
lavfi/drawbox: add thickness option
2012-10-31 14:43:47 +01:00
Michael Niedermayer
84833b028b
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
aacdec: Drop some unused function arguments
x86: Fix assembly with NASM
x86: fmtconvert: Refactor cvtps2pi emulation through cpuflags
Conflicts:
libavcodec/aacdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-31 14:27:11 +01:00
Michael Niedermayer
28c0678eb7
Merge commit 'be923ed659016350592acb9b3346f706f8170ac5'
...
* commit 'be923ed659016350592acb9b3346f706f8170ac5':
x86: fmtconvert: port to cpuflags
x86: MMX2 ---> MMXEXT in macro names
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-31 14:16:18 +01:00
Michael Niedermayer
4b874fc4fc
Merge commit 'a65bdceb060628881578afb29df4eb222421381f'
...
* commit 'a65bdceb060628881578afb29df4eb222421381f':
x86: mmx2 ---> mmxext in variable names
Conflicts:
libswscale/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-31 14:08:49 +01:00
Michael Niedermayer
78ec407d5a
Merge commit '652f5185945c8405fc57aed353286858df8d066f'
...
* commit '652f5185945c8405fc57aed353286858df8d066f':
x86: mmx2 ---> mmxext in comments and messages
Conflicts:
libswscale/x86/swscale_template.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-31 14:02:35 +01:00
Michael Niedermayer
9766d9c985
Merge commit '04581c8c77ce779e4e70684ac45302972766be0f'
...
* commit '04581c8c77ce779e4e70684ac45302972766be0f':
x86: yasm: Use complete source path for macro helper %includes
Conflicts:
Makefile
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-31 13:57:09 +01:00
Dave Yeo
264f12342c
x86: Fix assembly with NASM
...
Unlike YASM, NASM only looks for include files in the current
directory, not in the directory that included files reside in.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-10-31 13:50:01 +01:00
Michael Niedermayer
3174616f59
Merge commit '6860b4081d046558c44b1b42f22022ea341a2a73'
...
* commit '6860b4081d046558c44b1b42f22022ea341a2a73':
x86: include x86inc.asm in x86util.asm
cng: Reindent some incorrectly indented lines
cngdec: Allow flushing the decoder
cngdec: Make the dbov variable have the right unit
cngdec: Fix the memset size to cover the full array
cngdec: Update the LPC coefficients after averaging the reflection coefficients
configure: fix print_config() with broke awks
Conflicts:
libavcodec/x86/ac3dsp.asm
libavcodec/x86/dct32.asm
libavcodec/x86/deinterlace.asm
libavcodec/x86/dsputil.asm
libavcodec/x86/dsputilenc.asm
libavcodec/x86/fft.asm
libavcodec/x86/fmtconvert.asm
libavcodec/x86/h264_chromamc.asm
libavcodec/x86/h264_deblock.asm
libavcodec/x86/h264_deblock_10bit.asm
libavcodec/x86/h264_idct.asm
libavcodec/x86/h264_idct_10bit.asm
libavcodec/x86/h264_intrapred.asm
libavcodec/x86/h264_intrapred_10bit.asm
libavcodec/x86/h264_weight.asm
libavcodec/x86/vc1dsp.asm
libavcodec/x86/vp3dsp.asm
libavcodec/x86/vp56dsp.asm
libavcodec/x86/vp8dsp.asm
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-31 13:43:33 +01:00
Michael Niedermayer
976175fbe5
probetest: fix possible use of uninitialized data
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-31 13:16:52 +01:00
Stefano Sabatini
755038d07d
lavfi/drawbox: remove some unnecessary parentheses
2012-10-31 12:20:50 +01:00
Stefano Sabatini
003bd88d99
lavfi/drawbox: reindent after previous commit
2012-10-31 12:14:21 +01:00
Stefano Sabatini
1b3fdd9731
lavfi/drawbox: implement color=invert mode
...
Based on a libmpcodecs/vf_rectangle.c feature.
2012-10-31 12:14:21 +01:00
Stefano Sabatini
652fab5996
lavfi/mp: drop wrapped field filter
...
The filter has been ported to a native libavfilter filter.
2012-10-31 12:14:09 +01:00
Stefano Sabatini
3c4aa50620
lavfi: add field filter
...
The filter is a port of libmpcodecs/vf_field.c, since there is no common
code I relicensed it as LGPL, while keeping the original author
copyright.
2012-10-31 12:07:11 +01:00
Diego Biurrun
5707af8d0b
aacdec: Drop some unused function arguments
2012-10-31 10:54:52 +01:00
Dave Yeo
9c167914a1
x86: Fix assembly with NASM
...
Unlike YASM, NASM only looks for include files in the current
directory, not in the directory that included files reside in.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-10-31 10:20:35 +01:00
Paul B Mahol
dc239b3b40
av_get_audio_frame_duration: add IAC
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-31 03:44:37 +00:00
Michael Niedermayer
0e4d34e087
pix_fmt_info: add 9/10 bit YUVA formats
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-31 03:10:35 +01:00
Michael Niedermayer
6c49562d79
tree-test: fix printf() types
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-31 03:10:35 +01:00
Michael Niedermayer
370e397256
sws: fix handling of big endian alpha
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-31 03:10:35 +01:00
Diego Biurrun
be923ed659
x86: fmtconvert: port to cpuflags
2012-10-31 01:05:03 +01:00
Diego Biurrun
be2c456e96
x86: fmtconvert: Refactor cvtps2pi emulation through cpuflags
2012-10-31 01:05:03 +01:00
Diego Biurrun
588fafe7f3
x86: MMX2 ---> MMXEXT in macro names
2012-10-31 01:04:55 +01:00
Diego Biurrun
a65bdceb06
x86: mmx2 ---> mmxext in variable names
2012-10-31 00:37:42 +01:00
Diego Biurrun
652f518594
x86: mmx2 ---> mmxext in comments and messages
2012-10-31 00:37:42 +01:00
Diego Biurrun
04581c8c77
x86: yasm: Use complete source path for macro helper %includes
...
This is more consistent with the way we handle C #includes and
it simplifies the build system.
2012-10-31 00:37:42 +01:00
Diego Biurrun
6860b4081d
x86: include x86inc.asm in x86util.asm
...
This is necessary to allow refactoring some x86util macros with cpuflags.
2012-10-31 00:37:42 +01:00
Stefano Sabatini
1730dcf093
doc/filters: fix typo in drawbox section
2012-10-30 23:48:24 +01:00
Stefano Sabatini
b6248299f6
doc/filters: itemize examples for drawbox, add an example, fix grammar
2012-10-30 23:38:50 +01:00
Stefano Sabatini
2ed7e6cce5
lavfi/drawbox: extend syntax, accept named options
2012-10-30 23:36:36 +01:00
Stefano Sabatini
b420b87848
lavfi/tinterlace: remove poll_frame() callback
...
That interface is deprecated, and apparently useless.
2012-10-30 23:32:20 +01:00
Paul B Mahol
7adc600219
av_get_audio_frame_duration: add G723_1
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-30 21:53:38 +00:00
Paul B Mahol
7b378c2fb7
lavfi: remove yuvcsp and yvu9 libmpcodecs wrappers
...
Same functionality is provided by libswscale.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-30 21:24:29 +00:00
Michael Niedermayer
f7a9a99661
wavenc: fix curruption of metadata
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 21:48:39 +01:00
Michael Niedermayer
2f84f13806
fate: remove typo, reenable AC3 tests
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 20:53:30 +01:00
Michael Niedermayer
28bcca46ed
av_get_audio_frame_duration: fix IMC
...
Fixes Ticket1658
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 20:31:06 +01:00
Paul B Mahol
b90d7840df
lavc: const correctness for avpicture_fill()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-30 18:40:24 +00:00
Clément Bœsch
03179c2426
lavfi/smartblur: add missing draw slice call.
...
This fixes output with filtergraphs such as 'split[a][b];
[a]pad=iw*2[src]; [b]smartblur=1:1:1[filt]; [src][filt]overlay=w'
2012-10-30 19:37:20 +01:00
Michael Niedermayer
5cac0656a3
af_ashowinfo: integrate config_input() in filter_samples.
...
This is simpler and also should allow the code to function when the
channel number changes.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 19:26:07 +01:00
Mans Rullgard
674c4a11cb
configure: fix print_config() with broke awks
...
Some awk versions do not treat the result of unary + on a (numeric)
string as numeric, giving wrong results when used in a boolean context
Using unary - instead is logically equivalent works as expected.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-30 19:26:07 +01:00
Michael Niedermayer
4d2f1d8c93
swscale.c:remove fill_plane9or10() use fillPlane16()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 18:51:21 +01:00
Michael Niedermayer
70c25c6205
sws: move fillPlane16() to header so it can be used from more than 1 place
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 18:51:21 +01:00
Michael Niedermayer
89d2f014bc
sws_unscaled: drop fill_plane9or10()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 18:51:21 +01:00
Tomas Härdin
a44c3ae3b0
Change my GPG fingerprint
...
The old key expired
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 18:51:21 +01:00
Michael Niedermayer
65e0a3ccd8
sws: fix BE/LE handling for fillPlane16()
...
Based on fill_plane9or10() by luca barbato
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 18:51:15 +01:00
Michael Niedermayer
a201639a01
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
pixfmt: support more yuva formats
swscale: support gray to 9bit and 10bit formats
configure: rewrite print_config() function using awk
FATE: fix (AD)PCM test dependencies broken in e519990
Use ptrdiff_t instead of int for intra pred "stride" function parameter.
x86: use PRED4x4/8x8/8x8L/16x16 macros to declare intrapred prototypes.
Conflicts:
libavcodec/h264pred.c
libavcodec/h264pred_template.c
libavutil/pixfmt.h
libswscale/swscale_unscaled.c
tests/ref/lavfi/pixdesc
tests/ref/lavfi/pixfmts_copy
tests/ref/lavfi/pixfmts_null
tests/ref/lavfi/pixfmts_scale
tests/ref/lavfi/pixfmts_vflip
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 17:47:36 +01:00
Paul B Mahol
788afee86e
lavfi: remove palette libmpcodecs wrapper
...
The filter is useless, swscale should be used instead.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-30 16:21:33 +00:00
Paul B Mahol
8a4284adbf
ff: fix case where image does not have alpha channel
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-30 15:28:13 +00:00
Martin Storsjö
ab9545a290
cng: Reindent some incorrectly indented lines
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-30 16:51:29 +02:00
Martin Storsjö
6b68223d31
cngdec: Allow flushing the decoder
...
After a flush, don't average the output envelope and energy with
previous iterations.
Also start directly from the target values for the first iteration
at startup.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-30 16:51:25 +02:00
Martin Storsjö
036e6c37d3
cngdec: Make the dbov variable have the right unit
...
Previously the unit of the variable was Bov, not dBov.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-30 16:51:21 +02:00
Martin Storsjö
cafefd889b
cngdec: Fix the memset size to cover the full array
...
This was a leftover from previous iterations of the code, where the
refl coef arrays were statically allocated.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-30 16:51:16 +02:00
Martin Storsjö
9b50d20cd2
cngdec: Update the LPC coefficients after averaging the reflection coefficients
...
I somehow messed up the placement of this one.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-30 16:51:12 +02:00
Michael Niedermayer
6f5f7f705d
Merge commit '08b028c18dc31b6de741861b9555669dcca4d12a'
...
* commit '08b028c18dc31b6de741861b9555669dcca4d12a':
Remove INIT_AVX from x86inc.asm.
Remove usage of INIT_AVX in h264_intrapred_10bit.asm.
dv: fix indentation
Conflicts:
libavformat/dv.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 15:28:24 +01:00
Michael Niedermayer
e79c3858b3
Merge commit '14f031d7ecfabba0ef02776d4516aa3dcb7c40d8'
...
* commit '14f031d7ecfabba0ef02776d4516aa3dcb7c40d8':
dv: use AVStream.index instead of abusing AVStream.id
lavfi: add ashowinfo filter
avcodec: Add a RFC 3389 comfort noise codec
lpc: Add a function for calculating reflection coefficients from samples
lpc: Add a function for calculating reflection coefficients from autocorrelation coefficients
lavr: document upper bound on number of output samples.
lavr: add general API usage doxy
indeo3: remove duplicate capabilities line.
fate: ac3: Add dependencies
Conflicts:
Changelog
doc/filters.texi
libavcodec/Makefile
libavcodec/allcodecs.c
libavcodec/avcodec.h
libavcodec/codec_desc.c
libavcodec/version.h
libavfilter/Makefile
libavfilter/af_ashowinfo.c
libavfilter/allfilters.c
libavfilter/version.h
libavutil/avutil.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 14:40:22 +01:00
Mans Rullgard
d16c4aebba
configure: fix print_config() with broke awks
...
Some awk versions do not treat the result of unary + on a (numeric)
string as numeric, giving wrong results when used in a boolean context
Using unary - instead is logically equivalent works as expected.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-30 13:33:29 +00:00
Michael Niedermayer
cd37963684
Merge commit '381dc1a5ec0925b281c573457c413ae643567086'
...
* commit '381dc1a5ec0925b281c573457c413ae643567086':
fate: ac3: Place E-AC-3 tests and AC-3 tests in different groups
fate: Add shorthands for acodec PCM and ADPCM tests
avconv: Drop unused function argument from do_video_stats()
cmdutils: Conditionally compile libswscale-related bits
aacenc: Drop some unused function arguments
rtsp: Avoid a cast when calling strtol
nut: support textual data
nutenc: verbosely report unsupported negative pts
Conflicts:
cmdutils.c
ffmpeg.c
libavformat/nut.c
libavformat/nutenc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 13:52:03 +01:00
Michael Niedermayer
60e957476e
rawdec: check avpicture_get_size() return value
...
Fixes CID205019
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 13:18:57 +01:00
Carl Eugen Hoyos
d3de3a16d1
Partly revert f174fba: yop decoder does not support direct rendering.
2012-10-30 12:09:25 +01:00
Luca Barbato
7658295ba3
pixfmt: support more yuva formats
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2012-10-30 12:02:42 +01:00
Luca Barbato
26b5ad2543
swscale: support gray to 9bit and 10bit formats
...
With the input of Kostya and Ronald.
2012-10-30 12:02:41 +01:00
Carl Eugen Hoyos
8bf44d5c96
Partly revert f174fba: indeo3 decoder does not support direct rendering.
2012-10-30 11:51:58 +01:00
Mans Rullgard
f454e87923
configure: rewrite print_config() function using awk
...
This is much faster with slow shells and noticeably faster even
with bash on a fast Linux system.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-30 10:28:25 +00:00
Paul B Mahol
5f614bcf2c
vqavideo: return more meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-30 03:29:08 +00:00
Anton Khirnov
02e6364259
FATE: fix (AD)PCM test dependencies broken in e519990
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-10-30 03:13:41 +01:00
Michael Niedermayer
4b7f34a34e
mpeg12videodec: dont pass mpeg1 VBR special case value on as bitrate.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 02:27:50 +01:00
Heesuk Jung
c349177b8c
mpeg12video_parser: Wrong bit rate in MPEG2 video file (Ticket #1862 )
...
mpegvideo parser sometime get wrong stream bit rate which is 0x3FFFF*400.
But maximum bit rate of MPEG2 video is up to 80 Mbps in case 1920x1080 resolution.
When bit rate is 0x3FFFF*400, set bit rate zero.
* Problematic link
https://docs.google.com/open?id=0B6r7ZfWFIypCUkhPa0dyTGdFSE0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 02:19:52 +01:00
Michael Niedermayer
740959fdbf
mpeg12parser: cleanup bitrate parsing.
...
This fixes several bugs in the code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-30 02:19:21 +01:00
Ronald S. Bultje
95c89da36e
Use ptrdiff_t instead of int for intra pred "stride" function parameter.
...
This way, SIMD-optimized functions don't have to sign-extend their
stride argument manually to be able to do pointer arithmetic.
2012-10-29 17:49:13 -07:00
Ronald S. Bultje
bad8e33dc9
x86: use PRED4x4/8x8/8x8L/16x16 macros to declare intrapred prototypes.
2012-10-29 17:48:23 -07:00
Ronald S. Bultje
08b028c18d
Remove INIT_AVX from x86inc.asm.
2012-10-29 14:51:14 -07:00
Michael Niedermayer
11d695d120
x11grab: fix mixed declaration and code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-29 22:24:10 +01:00
Michael Niedermayer
977cb54f94
tree: fix type used for testing the tree
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-29 22:21:25 +01:00
Michael Niedermayer
1838961357
qt-faststart: fix signedness of variable used to hold return code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-29 22:11:22 +01:00
Michael Niedermayer
91295f03d4
mp3dec: remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-29 22:11:21 +01:00
Michael Niedermayer
ba8adf9be5
truemotion2: remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-29 22:11:19 +01:00
Ronald S. Bultje
c285edd06e
Remove usage of INIT_AVX in h264_intrapred_10bit.asm.
...
Replace INIT_AVX by INIT_XMM avx. Port the whole file to use cpuflag
based function declarations. Remove (now unused) cputype argument in
function declaration macros. Change function prototypes to have mmx2
instead of mmxext as suffix, since that's required by cpuflags.
2012-10-29 14:10:51 -07:00
Anton Khirnov
ede4cedf47
dv: fix indentation
2012-10-29 21:35:09 +01:00
Anton Khirnov
14f031d7ec
dv: use AVStream.index instead of abusing AVStream.id
2012-10-29 21:34:05 +01:00
Piotr Bandurski
bf0d098a98
pictordec: decode 1bpp / 4bpp images when extra header marker is missing
...
based on 56f6628bca
samples:
http://www.datafilehost.com/download-94b5bc1b.html
Reviewed-and-Tested-by: Peter Ross <pross@xvid.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-29 21:32:03 +01:00
Anton Khirnov
20dd41af85
lavfi: add ashowinfo filter
...
It can be useful for debugging.
Based on a patch by Stefano Sabatini <stefano.sabatini-lala@poste.it >
2012-10-29 21:29:58 +01:00
Piotr Bandurski
a29ed50ed7
avuidec: correct long_name
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-29 21:13:50 +01:00
Paul B Mahol
9051025102
lavc: remove duplicated .capabilities
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-29 20:06:52 +00:00
Martin Storsjö
9b500b8f6c
avcodec: Add a RFC 3389 comfort noise codec
...
This isn't too useful as a normal codec, but can be used in
voip style applications. The decoder updates the noise
generator parameters when a packet is given to it for decoding,
but if called with an empty packet, it generates more noise
according to the last parameters.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-29 22:00:43 +02:00
Martin Storsjö
8b25a20efb
lpc: Add a function for calculating reflection coefficients from samples
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-29 21:53:16 +02:00
Justin Ruggles
39ef66f530
lpc: Add a function for calculating reflection coefficients from autocorrelation coefficients
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-29 21:53:13 +02:00
Anton Khirnov
dc5793062e
lavr: document upper bound on number of output samples.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-10-29 20:05:47 +01:00
Anton Khirnov
01b760190d
lavr: add general API usage doxy
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-10-29 20:05:41 +01:00
Anton Khirnov
bff5e5f8b3
indeo3: remove duplicate capabilities line.
2012-10-29 20:04:56 +01:00
Diego Biurrun
381dc1a5ec
fate: ac3: Place E-AC-3 tests and AC-3 tests in different groups
2012-10-29 19:07:58 +01:00
Diego Biurrun
2cbdd7c929
fate: ac3: Add dependencies
2012-10-29 19:07:58 +01:00
Diego Biurrun
e519990ced
fate: Add shorthands for acodec PCM and ADPCM tests
2012-10-29 19:07:58 +01:00
Diego Biurrun
70478746a9
avconv: Drop unused function argument from do_video_stats()
2012-10-29 19:07:58 +01:00
Diego Biurrun
ab79966475
cmdutils: Conditionally compile libswscale-related bits
...
This fixes compilation with libswscale disabled.
2012-10-29 19:02:12 +01:00
rogerdpack
c1804dc4ce
lavfi/frei0r: allow for Windows style paths
...
Update path handling against the latest Frei0r specification changes.
Signed-off-by: rogerdpack <rogerpack2005@gmail.com >
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2012-10-29 18:50:48 +01:00
Stefano Sabatini
7691860c73
lavfi/frei0r: update link to spec
...
Fri0r project moved from piksel.org to frei0r.dyne.org.
2012-10-29 18:48:00 +01:00
Diego Biurrun
72c758f1fd
aacenc: Drop some unused function arguments
2012-10-29 18:27:54 +01:00
Stefano Sabatini
19add3224f
lavfi/scale: implement clever/insane parsing heuristic, and add a size option
...
If the first argument can be read as a video size, set that output size
in the scale. This allows to specify in a filtergraph scale=qcif or
scale=320x240.
This is not completely safe, for example in case of a typo in the video
size string the first argument will be read as the input width
expression, giving rise to a confusing comment.
2012-10-29 17:44:53 +01:00
Stefano Sabatini
d4604d10fe
lavu/parseutils: add trailing characters check in av_parse_video_size()
...
Return an error in case the video size specifications contains spurious
trailing chars, like in "320x240foobar".
2012-10-29 17:39:26 +01:00
Stefano Sabatini
adf0cd1456
doc/filters: itemize scale examples, and create a dedicated subsection for them
2012-10-29 17:39:26 +01:00
Stefano Sabatini
c2428ada71
lavfi/scale: return error code in case of failed reconfiguration in start_frame()
...
Avoid an assert, since now the function supports error code return.
2012-10-29 17:39:26 +01:00
Stefano Sabatini
83938c3d4c
lavfi/scale: accept named options, make parsing more robust
...
Also update documentation accordingly.
2012-10-29 17:39:26 +01:00
Martin Storsjö
f21d5c905d
rtsp: Avoid a cast when calling strtol
...
This gets rid of this warning:
libavformat/rtsp.c: In function ‘rtsp_parse_transport’:
libavformat/rtsp.c:794: warning: cast discards qualifiers from pointer target type
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-29 17:47:25 +02:00
Tim Nicholson
8a9b48bfa9
movenc: Add required 'prof' atom to 'tapt' atom set.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-29 16:45:37 +01:00
Michael Niedermayer
67420b3de5
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavc: add CODEC_CAP_DR1 to all video decoders missing them
rtpdec: Cosmetic cleanup
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-29 13:15:27 +01:00
Luca Barbato
d4bff9f1ab
nut: support textual data
...
Plain text (utf8 encoded) data can be muxed and demuxed in nut.
2012-10-29 12:03:28 +01:00
Stefano Sabatini
7d1e003abd
doc/syntax: add a "Quoting and escaping" section
2012-10-29 11:56:15 +01:00
Luca Barbato
07585ffa62
nutenc: verbosely report unsupported negative pts
...
Additionally use the correct error number.
2012-10-29 10:52:13 +01:00
Anton Khirnov
f174fbac3c
lavc: add CODEC_CAP_DR1 to all video decoders missing them
2012-10-29 09:51:23 +01:00
Michael Niedermayer
b4e6265136
dcadec: skip QMF on unused channels
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-29 05:21:47 +01:00
Michael Niedermayer
a3886ea3c5
smoothstreamingenc: check return value of mkdir()
...
Fixes CID732188
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-29 03:34:17 +01:00
Michael Niedermayer
b399816d9c
smoothstreamingenc: fix integer overflow
...
Fixes CID732248
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-29 03:17:08 +01:00
Michael Niedermayer
224afddc7c
ismindex: check return value of avio_open_dyn_buf()
...
Fixes CID733723
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-29 02:53:43 +01:00
Leon van Stuivenberg
c5be6192f0
cmdutils: avoid using cpp directives within printf macro arguments
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
It appears such construct has undefined behavior
2012-10-29 01:03:02 +01:00
Paul B Mahol
c2e2b3029e
cafdec: fix parsing of chunks which may have unused data
...
Specification mentions 'strg', 'mark', 'regn', 'info', .. chunks
to have data section size larger than chunk's current meaningful
content in order to reserve room for additional data.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-28 20:33:29 +00:00
Clément Bœsch
3d6a246b4b
lavf/srtenc: add AVFMT_TS_NONSTRICT flag.
...
There is not really a problem in having two events at the same time.
Even if it's not perfectly correct, it helps remuxing more files
(typically our FATE sample).
2012-10-28 20:45:58 +01:00
Martin Storsjö
48f01398ba
rtpdec: Cosmetic cleanup
...
Mainly clean up the RTP statistics code, plus a few other obviously
misindentend lines.
Remove some useless comments, de-doxygenize some comments,
add spacing around operators and fix a typo.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-28 20:50:01 +02:00
Michael Niedermayer
d41c019da0
fate/scalenorm: unbreak fate
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-28 18:26:11 +01:00
Stefano Sabatini
74e81b4de1
tests: do not set bogus scale sws_flags option in the scalenorm test
...
sws_flags is not a valid scale option, and thus is ignored.
2012-10-28 17:20:50 +01:00
Michael Niedermayer
f472d01c25
frame_thread_encode: fix context memleak
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-28 17:04:11 +01:00
Michael Niedermayer
991db63951
frame_thread_encoder: fix packet memleak
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-28 16:47:23 +01:00
Michael Niedermayer
d8246d475c
vc1dec: mark by assert that the default path cannot occur
...
Fixes CID703827, CID703828
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-28 16:11:14 +01:00
Paul B Mahol
07ed191b15
parse ID3v2 chapters
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-28 15:10:28 +00:00
Carl Eugen Hoyos
3f44809415
Synchronize libmpcodecs: Support 16bit yuv in telecine filter.
...
Fixes ticket 1782.
2012-10-28 15:46:35 +01:00
Carl Eugen Hoyos
96fac764fa
Add an additional AAC TwoCC.
...
Mentioned on http://msdn.microsoft.com/en-us/library/dd341376%28prot.20%29.aspx
Originally committed to vlc by Jean-Baptiste.
2012-10-28 14:50:11 +01:00
bbraun
d72aef4e92
movenc: add more metadata types
...
Fixes Ticket1052
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-28 14:36:57 +01:00
Michael Niedermayer
ac090fa68c
lavu: keep context size variables
...
They are essential to be able to use the utils without av_malloc()
That is for example use with malloc(), memalign(), some other
private allocation function, on the stack or others.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-28 14:33:41 +01:00
Michael Niedermayer
c73fcc8de3
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
yuv4mpeg: reject unsupported codecs
nutenc: K&R formatting cosmetics
assdec: fix qsort() callback signature
configure: detect sparc64 automatically
vp8: fix memset() crossing array boundary
h264: fix invalid pointer arithmetic
amrwbdec: fix invalid pointer arithmetic
Conflicts:
libavformat/nutenc.c
libavformat/yuv4mpeg.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-28 14:24:27 +01:00
Michael Niedermayer
8943ad4014
Merge commit '4521645b1aee9e9ad8f5cea7b2392cd5f6ffcd26'
...
* commit '4521645b1aee9e9ad8f5cea7b2392cd5f6ffcd26':
avio: fix pointer type mismatches in avio_enum_protocols()
avserver: use socklen_t where appropriate
udp: use socklen_t where appropriate
network: use HAVE_THREADS instead of local hack
af_channelmap: remove stray enum declaration
buffersink: remove stray semicolon after function definition
Conflicts:
libavformat/avio.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-28 13:19:11 +01:00
Michael Niedermayer
f9f79cb0ec
fate: make sure the global sws flags are set to be bitexact for scalenorm
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-28 13:05:35 +01:00
Nicolas George
14f69a0516
fate: add a test for scale with variable input format.
2012-10-28 09:59:03 +01:00
Nicolas George
b0e2f4a757
lavfi/concat: implement unsafe mode.
2012-10-28 09:14:34 +01:00
Luca Barbato
424b1e7642
yuv4mpeg: reject unsupported codecs
...
The muxer already rejects unsupported pixel formats, reject also
unsupported codecs to prevent dangerous misuses.
2012-10-28 05:07:55 +01:00
Luca Barbato
fce4450dec
nutenc: K&R formatting cosmetics
2012-10-28 05:07:55 +01:00
Michael Niedermayer
c4a36b6f70
lpc: check that lpc_type is valid in ff_lpc_calc_coefs
...
Fixes CID700759
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-28 03:27:16 +01:00
Michael Niedermayer
8edf9b1fa4
sws: rgb has no range, avoid random results if the user tries to mess with it anyway.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-28 02:46:56 +02:00
Michael Niedermayer
d23e8f53ad
swr: use 64bit index/len for x86_64 mix
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-28 02:09:08 +02:00
Michael Niedermayer
2aecfd4f20
vf_showinfo: check return code of av_image_get_linesize()
...
Fixes CID703716
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-28 00:40:28 +02:00
Michael Niedermayer
0f943ed3c8
swfenc: zero fifo after freeing
...
Fixes CID602000
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 23:03:07 +02:00
Michael Niedermayer
189fbcede8
tak_parser: check ff_combine_frame() return code
...
Fixes CID733706
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 23:03:07 +02:00
Clément Bœsch
6078bd8024
lavf/showspectrum: fix unaligned rdft data.
2012-10-27 22:59:05 +02:00
Piotr Bandurski
2ef26b5e73
riff: support 0xa100 TwoCC
...
fixes decoding of file "4790b7f1c44f98e35f3b806468fa615f5930a5b3.wav" from ticket #1856
(0xa100 = Comverse Infosys Ltd. G723 1)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 21:41:59 +02:00
Michael Niedermayer
6c8d259ab1
msmpeg4dec: fix init code to not fail when called from 2 threads at the same time.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 21:39:06 +02:00
Michael Niedermayer
f44be0da94
ff_h263_decode_init_vlc: fix order of operations to avoid failure with 2 threads
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 21:31:49 +02:00
Mans Rullgard
4cbae57cef
assdec: fix qsort() callback signature
...
This changes the event_cmp() function to the correct signature,
avoiding an ugly cast.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-27 18:26:28 +01:00
Mans Rullgard
4cd217c065
configure: detect sparc64 automatically
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-27 18:24:55 +01:00
Mans Rullgard
4471a24207
vp8: fix memset() crossing array boundary
...
Indexing across array boundaries is not allowed by C99.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-27 17:02:46 +01:00
Mans Rullgard
c4cccc8d3f
h264: fix invalid pointer arithmetic
...
Subtracting a (positive) value from the address of an array violates
C99 section 6.5.6:
If both the pointer operand and the result point to elements of the
same array object, or one past the last element of the array object,
the evaluation shall not produce an overflow; otherwise, the
behavior is undefined.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-27 17:02:46 +01:00
Mans Rullgard
50be207759
amrwbdec: fix invalid pointer arithmetic
...
Subtracting a (positive) value from the address of an array violates
C99 section 6.5.6:
If both the pointer operand and the result point to elements of the
same array object, or one past the last element of the array object,
the evaluation shall not produce an overflow; otherwise, the
behavior is undefined.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-27 17:02:45 +01:00
Reimar Döffinger
5f9cbad603
Port MPlayer fixes for coverity issues in libmpcodecs.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2012-10-27 17:52:41 +02:00
Michael Niedermayer
425c30ddae
sws: loose the minimum dimension checks
...
A few quick tests show no fundamental problem with such diemnsions
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 16:54:31 +02:00
Michael Niedermayer
733f85b7ae
sws: improve error messages
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 16:54:05 +02:00
Michael Niedermayer
7de2196029
sws: fix extreem downscaling
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 16:29:24 +02:00
Michael Niedermayer
95760b33e7
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
configure: fix tests for 2-arg math functions
doc: git-howto: Clarify comment about pushing series of commits
ivi_common: Drop unused function parameter from decode_band()
cook: Remove some silly Doxygen comments
cook: Remove senseless maybe_reformat_buffer32() function
cook: cosmetics: Better names for joint_decode() function parameters
cook: cosmetics: Better name for ccpl COOKSubpacket member
doxygen: Add av_alloc_size to list of predefined macros
doxygen: Drop some pointless entries from PREDEFINED macros list
h263: avoid memcpys over array bound in motion vector caching for obmc
Conflicts:
configure
doc/git-howto.texi
libavcodec/cook.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 15:02:35 +02:00
Mans Rullgard
4521645b1a
avio: fix pointer type mismatches in avio_enum_protocols()
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-27 13:43:44 +01:00
Mans Rullgard
cc64ec570c
avserver: use socklen_t where appropriate
...
Various socket functions expect a pointer to socklen_t which is not
necessarily int.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-27 13:11:49 +01:00
Mans Rullgard
be2efe0c7b
udp: use socklen_t where appropriate
...
getsockname() takes a pointer to socklen_t which is not necessarily
int.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-27 13:11:46 +01:00
Mans Rullgard
9efbfe57e0
network: use HAVE_THREADS instead of local hack
...
HAVE_THREADS is set in config.h if pthreads or w32threads is
available, which presumably the proper condition here.
Also fixes undefined behaviour in preprocessor directives.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-27 13:11:17 +01:00
Mans Rullgard
67a68dcec2
af_channelmap: remove stray enum declaration
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-27 13:06:43 +01:00
Mans Rullgard
6b776c61da
buffersink: remove stray semicolon after function definition
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-27 13:06:27 +01:00
Xidorn Quan
c25e9292ba
fix a compiling error with llvm-gcc
...
Move some #include in vda.h down to prevent libavutil headers
from interfering with system headers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 04:32:40 +02:00
Michael Niedermayer
1909dbf11d
ffmpeg: use av_rescale_delta() for audio stream copy
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 04:01:31 +02:00
Michael Niedermayer
2bcbdd8456
lavu: add more doxy to av_rescale_delta
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 02:58:09 +02:00
Michael Bradshaw
c430cb49fd
Update my email address
...
Signed-off-by: Michael Bradshaw <mjbshaw@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 02:06:21 +02:00
Michael Niedermayer
e823e73677
sws_getGaussianVec: check variance and quality
...
Found-by: Reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 01:25:00 +02:00
Michael Niedermayer
fe573d1a9b
sws_allocVec: check length validity
...
Found-by: Reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 01:24:51 +02:00
Michael Niedermayer
a9d97e1b0a
ffmpeg: use av_rescale_delta() on the audio filter input
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 00:26:35 +02:00
Michael Niedermayer
8766ad9eb1
lavu: add av_rescale_delta()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 00:26:35 +02:00
Michael Niedermayer
03e44bcb3f
ffmpeg: trivial simplification
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 00:26:35 +02:00
Michael Niedermayer
90d4b07063
mathemathics: update copyright years
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 00:26:35 +02:00
Michael Niedermayer
ae52eb7fc7
lavu: add av_clip64()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-27 00:26:35 +02:00
Mans Rullgard
1aa07aa21c
configure: fix tests for 2-arg math functions
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-26 22:50:42 +01:00
Clément Bœsch
5f0105b820
lavf/srtenc: allow zero duration events.
...
This is useful when you want to remux events with zero (or too small)
durations.
2012-10-26 21:48:27 +02:00
Clément Bœsch
eb36ee1ee1
lavc/srtenc: fix invalid read in case of SubRip.
...
Regression since 6057de19b . The ptr-2 is used to eat the \r\n and add
the position information on the timing line. This can't be done in case
of SubRip where the timing isn't present in the payload.
Note that we can't use yet the side data to transmit the position
information since the encode subtitles API is still using buffer+size
instead AVPacket as input.
2012-10-26 21:48:27 +02:00
Diego Biurrun
ca7f59119b
doc: git-howto: Clarify comment about pushing series of commits
2012-10-26 18:28:38 +02:00
Diego Biurrun
87cdd7c694
ivi_common: Drop unused function parameter from decode_band()
2012-10-26 18:28:38 +02:00
Diego Biurrun
707f58f515
cook: Remove some silly Doxygen comments
2012-10-26 18:28:38 +02:00
Diego Biurrun
8a61ba0e81
cook: Remove senseless maybe_reformat_buffer32() function
2012-10-26 18:28:38 +02:00
Diego Biurrun
f23b4a0682
cook: cosmetics: Better names for joint_decode() function parameters
2012-10-26 18:28:38 +02:00
Diego Biurrun
20015379a4
cook: cosmetics: Better name for ccpl COOKSubpacket member
2012-10-26 18:28:38 +02:00
Diego Biurrun
13bbefd57e
doxygen: Add av_alloc_size to list of predefined macros
...
This avoids Doxygen believing the attribute is the function name.
2012-10-26 18:28:38 +02:00
Diego Biurrun
74e742d6ad
doxygen: Drop some pointless entries from PREDEFINED macros list
2012-10-26 18:28:38 +02:00
Michael Niedermayer
5b45b66220
cws2fws: check fstat return code.
...
Fixes CID733720
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-26 18:24:50 +02:00
Michael Niedermayer
86aba86b1b
cws2fws: check lseek() return
...
Fixes: CID733721
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-26 18:24:50 +02:00
Michael Niedermayer
59eae88429
cws2fws: check inflateInit return value
...
Fixes CID733722
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-26 18:24:50 +02:00
Janne Grunau
154ff81870
h263: avoid memcpys over array bound in motion vector caching for obmc
...
Fixes CID602232.
2012-10-26 17:38:07 +02:00
Paul B Mahol
adc61d68b0
bit: check av_new_packet() return value
...
Fixes CID703626.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-26 15:34:25 +00:00
Michael Niedermayer
ca28cb5f83
examples: fix doxy so they appear on the example page
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-26 16:32:32 +02:00
Michael Niedermayer
c01a462cda
rmdec: fix null derefercne
...
Fixes CID733714
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-26 16:18:09 +02:00
Michael Niedermayer
1bf5071104
rmdec: use av_assert for audio_pkt_cnt
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-26 16:13:16 +02:00
Michael Niedermayer
9aa630a520
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
configure: sanitise sparc vis check
configure: recognise more sparc variants as --cpu argument
build: Include HEADERS-yes in the HEADERS variable
pcm: change references to raw to pcm
ffv1: set the range coder state in decode_slice_header
pcmdec: change default of channels parameter to 1
Conflicts:
libavformat/pcmdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-26 15:20:48 +02:00
Mans Rullgard
6aa93689ab
configure: sanitise sparc vis check
...
It is wrong to force -mcpu=ultrasparc when checking for vis.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-26 12:29:03 +01:00
Michael Kostylev
eadfb0560a
configure: recognise more sparc variants as --cpu argument
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-26 12:29:03 +01:00
Paul B Mahol
7fe6f6e2b1
caf muxer: write metadata
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-26 03:12:45 +00:00
Michael Niedermayer
507f2940cc
Merge commit '1b891d17c531e8a63c2974aab4bf997ce70746f3'
...
* commit '1b891d17c531e8a63c2974aab4bf997ce70746f3':
avconv: fix bitrate report when writing to /dev/null
avfilter: fix graphparser memleaks on error paths
rawdec: remove ff_raw_read_header
pcmdec: remove dependency from rawdec
g722: refactor out of rawdec.c
rawvideo: use a specific read_header
Conflicts:
ffmpeg.c
libavformat/Makefile
libavformat/rawdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-26 14:24:57 +02:00
Michael Niedermayer
9f36ec6aa9
aacps: fix order of operands of ipdopd_reset().
...
With the current implementation this is purely cosmetic
Fixes CID732285
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-26 03:24:13 +02:00
Michael Niedermayer
0018aa9013
aacps: loose self assignment
...
Fixes CID604123
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-26 03:24:13 +02:00
Michael Niedermayer
f69f9b3876
aacenc: replace scale factor warning by assert
...
The code would crash after printing the warning
Fixes CID717903, CID717904
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-26 03:24:13 +02:00
Matthieu Bouron
cfb1c3c9f0
aiffdec: read ID3 attached pictures
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-26 01:52:40 +02:00
Paul B Mahol
73f9d2e887
cafenc: make .long_name match demuxer
...
While here reindent .codec_tag .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-25 23:04:13 +00:00
Stefano Sabatini
15f52e50fe
tools: add ffescape utility
2012-10-25 23:56:16 +02:00
Paul B Mahol
04a585f054
fraps: use meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-25 21:51:45 +00:00
Paul B Mahol
43f662d9bf
lvfdec: cosmetics: fix identation
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-25 20:57:40 +00:00
Clément Bœsch
13d26716fb
lavfi/showspectrum: add sliding mode.
2012-10-25 22:20:22 +02:00
Stefano Sabatini
b19bfd6c9f
lavd/lavfi: fix leak in case of failure
...
Jump to the common release code in case of failure.
2012-10-25 21:35:40 +02:00
Nicolas George
48ec8b25a7
lavfi/af_volumedetect: print stats in uninit().
...
If the stats are printed when request_frame on the input
returns EOF, then they are never printed if the filter is
not flushed, in particular when using the -t ffmpeg option.
Fix trac ticket #1727 .
2012-10-25 20:16:09 +02:00
Alexis Ballier
ce028ab9a7
Restore installation of libavutil/lzo.h after 2a91ada828
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-25 20:00:19 +02:00
Nicolas George
77a72d3485
lavfi/vf_fps: allow to set the rounding method.
...
By default, fps selects frames near PTS 0, 0.5, 1.5, 2.5, etc.
With round=down, it selects the frames near PTS 0, 1, 2, 3, etc.
2012-10-25 19:42:44 +02:00
Martin Ettl
cc72d52dc1
ffserver: fix printf argument type
2012-10-25 16:35:57 +00:00
Martin Storsjö
121604b024
build: Include HEADERS-yes in the HEADERS variable
...
This makes sure the previously always installed public header
lzo.h is installed if the LZO functionality is enabled.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-25 18:36:11 +03:00
Luca Barbato
254056c4ab
pcm: change references to raw to pcm
2012-10-25 17:08:58 +02:00
Paul B Mahol
d8245c3bcd
dsicinav: return proper error code in case of malloc failure
...
Fixes null pointer dereference.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-25 13:46:19 +00:00
Paul B Mahol
296f9c2b3b
dsicinav: return meaningful error code
...
While here remove redundant references in error message.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-25 13:10:23 +00:00
Janne Grunau
1b891d17c5
avconv: fix bitrate report when writing to /dev/null
...
avio_size() reports the filesize which returns 0 for /dev/null.
avio_tell() reports the current position.
Also handle errors from avio_tell().
2012-10-25 15:00:15 +02:00
Janne Grunau
285b706b55
avfilter: fix graphparser memleaks on error paths
...
Fixes CID700635, CID700636 and CID732274.
2012-10-25 15:00:15 +02:00
Luca Barbato
587874ef1c
rawdec: remove ff_raw_read_header
...
It is not used anymore and is a kludge.
2012-10-25 14:05:13 +02:00
Luca Barbato
2ef4d586d6
pcmdec: remove dependency from rawdec
...
The code shared is not actually shared with anything else.
2012-10-25 14:05:13 +02:00
Luca Barbato
5f0e161dd6
g722: refactor out of rawdec.c
2012-10-25 14:05:05 +02:00
Luca Barbato
42c26a4864
rawvideo: use a specific read_header
...
ff_raw_read_header is used only for this demuxer for video.
2012-10-25 14:04:18 +02:00
Tomas Härdin
5c108092a3
mxfenc: Write MultipleDescriptor ref in Preface
...
Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-25 13:56:24 +02:00
Michael Niedermayer
da4e4d65f4
aacdec: reorder multiuplications to make code safer against too large input values.
...
Fixes CID700697
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-25 13:45:26 +02:00
Michael Niedermayer
aa604e8e33
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avutil: Make LZO decoder code configure-time selectable
avutil: Move memcpy_backptr() to mem.c
configure: detect parisc64 automatically
configure: detect ppc64 automatically
configure: detect mips64 automatically
configure: generalise 64-bit test
smoothstreamingenc: Don't assume streams start from timestamp 0
Conflicts:
configure
libavutil/Makefile
libavutil/lzo.c
libavutil/lzo.h
libavutil/mem.c
libavutil/mem.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-25 13:15:58 +02:00
Diego Biurrun
2a91ada828
avutil: Make LZO decoder code configure-time selectable
2012-10-25 11:49:49 +02:00
Diego Biurrun
5bac2d0c30
avutil: Move memcpy_backptr() to mem.c
...
The function is used elsewhere and does not belong with the LZO code.
2012-10-25 11:36:57 +02:00
Michael Niedermayer
d312ffdd79
mpegvideo: fix lowres on field pictures
...
Fixes Ticket1846
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-25 04:03:58 +02:00
Michael Niedermayer
1a535fc477
fate: reenable some recently lost audio tests
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-25 03:13:32 +02:00
Michael Niedermayer
fa48da1ee9
ffmpeg: fix null ptr deref in psnr printing code
...
Fixes CID205005
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-25 01:38:15 +02:00
Michael Niedermayer
a1af505d66
roqaudioenc: remove dead code
...
Fixes CID703669
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-25 01:38:15 +02:00
Michael Niedermayer
4a2297294f
qt-faststart: check return of ftello()
...
Fixes CID739863
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-25 01:32:45 +02:00
Michael Niedermayer
ed68085104
asfdec: fixed signedness in comparission
...
Fixes CID739864
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-25 00:35:55 +02:00
Michael Niedermayer
0008e0d632
cmdutils: fix unclosed file on error
...
Fixes CID739865
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-25 00:32:34 +02:00
Michael Niedermayer
58c2c17f1d
mov_probe: use correct variable
...
Fixes CID739867
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-25 00:24:25 +02:00
Michael Niedermayer
aa47821344
cmdutils: remove writes in never read variable
...
Fixes CID739868
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-25 00:24:25 +02:00
Clément Bœsch
2ecf9492ff
lavf/srtenc: set codec to subrip by default.
...
We don't have a text encoder yet, so this commit makes automatic
encoding working with srt output.
2012-10-25 00:17:56 +02:00
Clément Bœsch
fd090a5d09
lavf/srtenc: simplify timing printing.
2012-10-25 00:17:46 +02:00
Clément Bœsch
c27b3816e4
srt: make the demuxer output SubRip packets.
...
The SRT format should never have outputted CODEC_ID_SRT packets in the
first place: SRT is a subtitle format containing SubRip text markup
events. The timing information is part of the format, not the codec, and
thus CODEC_ID_SRT should not exist.
Creating packets with the timing information within the payload only
leads to problem (such as remuxing with timing alteration not working),
especially when the SubRip markup is being used in container like
Matroska in addition to this standalone SRT format.
The main reason the timing line was included in those CODEC_ID_SRT
packets is likely because it contained extra information (the event
position) the codec actually needs. This issue is solved by using the
AV_PKT_DATA_SUBTITLE_POSITION side data type.
2012-10-25 00:09:36 +02:00
Clément Bœsch
4d46fd0b3e
lavc: add AV_PKT_DATA_SUBTITLE_POSITION side data type.
...
This commit introduces a new packet side data type for the subtitle
position information. This is meant to be used by the SRT format where
that information is stored along with the timing, which is not part of
the subrip packets.
2012-10-24 23:58:18 +02:00
Clément Bœsch
60d9ee1b75
lavc/utils: make sub decode consistent with A/V.
...
This allows side data to be transmitted properly with subtitles.
2012-10-24 23:56:43 +02:00
Clément Bœsch
a96b39de62
lavf/srtdec: simplify start/end computation.
...
Also fix potential overflow (CID733778)
2012-10-24 23:56:43 +02:00
Stefano Sabatini
a945607a78
ffprobe: add an array of section print buffers to the WriterContext
...
Allow to factorize buffers initialization/release, for all the writers
which use it. Simplify.
2012-10-24 23:40:21 +02:00
Stefano Sabatini
a161def1e4
Doxyfile: update examples path and patterns
2012-10-24 23:40:15 +02:00
Stefano Sabatini
ce875a613a
doc/texi2pod.pl: drop unnecessary rule, which was converting "\," to ","
...
I cannot find a reason for such a rule, which was resulting in badly
escaped filtergraph snippets.
Fix trac ticket #1610 .
2012-10-24 23:33:47 +02:00
Michael Niedermayer
f68ff2e0e7
fourcc2pixfmt: fix compilation
...
If someone finds a cleaner fix, dont hesitate to revert this!
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 22:25:43 +02:00
Michael Niedermayer
95d07f33dc
libavfilter: include needed header for AVDictionary
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 22:24:54 +02:00
Clément Bœsch
c01d1d4ddf
http: add -content_type user option.
2012-10-24 22:15:31 +02:00
Paul B Mahol
6ddb03caf0
pgmyuvenc: do not create files which are not supported
...
It is possible to support files with odd width and/or height
if real width and height are stored in header.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-24 18:38:31 +00:00
Paul B Mahol
e12cfd044c
lavf: const correctness for avformat_new_stream
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-24 17:55:35 +00:00
Tomas Härdin
e3ba817b95
mxfenc: Fix possible integer overflows
...
None of these are likely unless the user is writing a file with two billion
streams or a duration of around two months.
This fixes CIDs 700568, 700569, 700570, 700571, 700572 and 700573.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 17:46:27 +02:00
Tomas Härdin
fbb39f44f1
mxfdec: Fix potential leak in mxf_read_local_tags()
...
This fixes CID 733800.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 17:45:49 +02:00
Tomas Härdin
1d22d269f5
mxfdec: Fix a potential DoS vector in mxf_read_pixel_layout()
...
There's a a potential DoS problem in this function. Say an MXF file is
created with a PixelLayout with a long run of non-zeroes. Such a file could be
sent quickly (packed) over the net and would unpack quite fast. mxfdec would
then read it byte-by-byte, which would take considerable time.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 17:44:35 +02:00
Tomas Härdin
187630b244
mxfdec: Fix CID 732262
...
Coverity thinks ofs can end up 15, thus writing past the end of layout[]. This
is incorrect since it's always incremented by 2. Checking ofs <= 14 makes
Coverity happy and doesn't hurt.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 17:44:35 +02:00
Mans Rullgard
a6e9d64977
configure: detect parisc64 automatically
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-24 16:26:51 +01:00
Mans Rullgard
56203596ae
configure: detect ppc64 automatically
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-24 16:26:51 +01:00
Mans Rullgard
2acda282eb
configure: detect mips64 automatically
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-24 16:26:51 +01:00
Mans Rullgard
d4c99513f4
configure: generalise 64-bit test
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-24 16:26:51 +01:00
Stefano Sabatini
55c77a0ca3
doc/filters: escape special Texinfo character @ in overlay example
2012-10-24 17:22:00 +02:00
Stefano Sabatini
51467ee868
doc/filters: remove unnecessary and inconsistent double ',' escaping
2012-10-24 17:21:25 +02:00
Michael Niedermayer
7d0ca5b7e4
doxygen: disable header/footer/stylesheet
...
They dont work at all and trash the output totally
also they are unmaintained -> that is if you want to maintain them
contact us !
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 17:14:50 +02:00
Michael Niedermayer
8a34b85fa8
avio: detect implicit truncation by assert in avio_w*
...
This check is somewhat more lenient as would be ideal because we dont
know if the input is signed or unsigned
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 15:42:00 +02:00
Michael Niedermayer
a3fb3a670e
avio: avoid implicit truncation in avio_w*
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 15:27:03 +02:00
Michael Niedermayer
e377b50b2d
matroskaenc: avoid implicit truncation in avio_w*
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 15:27:01 +02:00
Michael Niedermayer
d0ab71ed11
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
asfdec: cosmetics, reformat ff_asf_parse_packet()
g.723.1: add missing CODEC_CAP_DR1
avconv: remove now unneeded calls to avcodec_get_frame_defaults().
lavc: initialize output AVFrame before decoding.
Conflicts:
libavformat/asfdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 14:26:13 +02:00
Michael Niedermayer
719fde47ca
Merge commit 'c68317ebbe4915035df0b08c23eea7a0b80ab881'
...
* commit 'c68317ebbe4915035df0b08c23eea7a0b80ab881':
lavc: fix documentation for AVCodecContext.delay
atrac3: return an error if extradata_size is not a specific known size
lavc: use the correct API version guard macro for avcodec_encode_audio()
Move Doxyfile into the doc/ subdirectory
doxygen: Build Doxygen documentation in the doc/ subdirectory
dfa: use av_memcpy_backptr() where previously impossible
av_memcpy_backptr: Drop no longer necessary malloc padding
Conflicts:
.gitignore
libavcodec/avcodec.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 14:18:17 +02:00
Michael Niedermayer
5cf794e0c1
Merge commit 'd82f188504410fdfa446c5682c128c31bb5851a4'
...
* commit 'd82f188504410fdfa446c5682c128c31bb5851a4':
Remove need for padding in av_memcpy_backptr()
Conflicts:
libavutil/lzo.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 14:10:44 +02:00
Michael Niedermayer
5555d2075a
Merge commit 'ceb754d041f5f6327fd9195a5f43575af9516daa'
...
* commit 'ceb754d041f5f6327fd9195a5f43575af9516daa':
lzo: Use AV_COPY*U macros where appropriate
prepare 9_beta2 release
dsputil: Replace AV_WNxx(AV_RNxx()) combinations by AV_COPYxxU
intreadwrite: Add AV_COPYxxU macros for copying to/from unaligned addresses
dxtory: Replace AV_WN16A(AV_RN16A()) combination by AV_COPY16
mp3: properly forward mp_decode_frame errors
Conflicts:
RELEASE
libavcodec/mpegaudiodec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 14:01:36 +02:00
Martin Storsjö
c44cef978b
smoothstreamingenc: Don't assume streams start from timestamp 0
...
Also use dts instead of pts for deciding where to split fragments.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-24 14:46:08 +03:00
Michael Niedermayer
f3b8096bc0
Merge commit '0c03cc68386443f1e96ab6fb358220faf67cd5ff'
...
* commit '0c03cc68386443f1e96ab6fb358220faf67cd5ff':
mp3: exit on parsing error in mp_decode_frame
rtmppkt: Avoid unescaped backslash in Doxygen comment
fate-lavfi: replace sed/grep/cut combos with awk
build: Plan 9 support
Conflicts:
configure
tests/lavfi-regression.sh
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 13:42:58 +02:00
Michael Niedermayer
42ee9f3981
build: fix detection of math functions with 2 parameters.
...
The code from libav seems to have been entirely untested.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 13:15:42 +02:00
Michael Niedermayer
2dbc93455c
Merge commit '80521c1997a23e148edf89e11b939ab8646297ca'
...
* commit '80521c1997a23e148edf89e11b939ab8646297ca':
build: allow targets to specify extra objects to link with executables
swscale: avoid pointless use of compound literals
libm: add fallbacks for various single-precision functions
network: use getservbyport() only if available
network: add fallbacks for INADDR_LOOPBACK and INET_ADDRSTRLEN
Include sys/time.h before sys/resource.h
Conflicts:
Makefile
configure
libavutil/libm.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 12:53:26 +02:00
Anton Khirnov
292a08cbab
asfdec: cosmetics, reformat ff_asf_parse_packet()
2012-10-24 08:46:45 +02:00
Anton Khirnov
5a9567631a
g.723.1: add missing CODEC_CAP_DR1
2012-10-24 08:46:45 +02:00
Anton Khirnov
8e84f2055c
avconv: remove now unneeded calls to avcodec_get_frame_defaults().
2012-10-24 08:46:45 +02:00
Anton Khirnov
1bc64c2814
lavc: initialize output AVFrame before decoding.
...
Avoids memleaks with audio when extended_data is nontrivial and the user
doesn't reset the frame.
Shouldn't have any effect for video for now, but might be useful in the
future.
2012-10-24 08:46:45 +02:00
Michael Niedermayer
cccb45751e
yuv2rgb: fix integer overflow in fill_gv_table()
...
Fixes CID703747
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 01:24:26 +02:00
Michael Niedermayer
a494792961
yuv2rgb: fix integer overflow in fill_table
...
Fixes CID703748
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 01:22:56 +02:00
Michael Niedermayer
6c87b2be72
swscale_unscaled: remove unused variables
...
Fixes CID739472
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 01:09:14 +02:00
Michael Niedermayer
3556e7ce73
mpegvideo enc: choose VBV buffer size for mpeg4 when none is specified instead of failing
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 00:40:18 +02:00
Michael Niedermayer
1856162caa
mpegvideo enc: choose VBV buffer size for mpeg1/2 when none is specified instead of failing
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-24 00:40:18 +02:00
Stefano Sabatini
33c4535db7
examples/decoding_encoding: add and use the decode_write_frame function
...
Allow to factorize code in video_decode_example(), simplify.
2012-10-24 00:29:37 +02:00
Stefano Sabatini
4a227a706d
lavc/utils: fix a few grammar/style nits in log messages
...
In avcodec_open2(), apply consistent casing and avoid "or" conjunction at
the beginning of a sentence, in the messages issued in case of
experimental codec usage.
2012-10-24 00:29:37 +02:00
Stefano Sabatini
5ffadec30a
lavc/utils: propagate or return meaningful error codes in avcodec_open2()
2012-10-24 00:29:37 +02:00
Carl Eugen Hoyos
2fdc6f355c
Do not detect mov with maximum score if the atom size is too small.
...
Fixes mpegts-in-mov, ticket #987 / issue 2223.
2012-10-23 22:41:15 +02:00
Stefano Sabatini
8b03cd3cd7
lavd/lavfi: add graph_file option
...
Allow to specify a filename where to put the filtergraph description.
This is useful to override limitations or glitches of particular shell
environments, and allows a level of indirection for specifying
filtergraphs.
2012-10-23 22:08:55 +02:00
Stefano Sabatini
bd6240e7e9
lavfi/sendcmd: move buf init() variable to internal scope where it is used
2012-10-23 22:08:55 +02:00
Stefano Sabatini
c7065f1f89
lavfi/sendcmd: release file in case of failed allocation
...
Avoid hanging file.
2012-10-23 22:08:55 +02:00
Isaac Dooley
469a65b150
x11: Fix x11grab BadCursor
...
Fixes Ticket1738
Based-on: A fix found in a perl module (http://ffmpeg.org/pipermail/ffmpeg-user/2012-August/008804.html )
Reviewed-by: Clemens Fruhwirth <clemens@endorphin.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 21:49:01 +02:00
Justin Ruggles
c68317ebbe
lavc: fix documentation for AVCodecContext.delay
2012-10-23 14:35:27 -04:00
Justin Ruggles
44d854a518
atrac3: return an error if extradata_size is not a specific known size
...
Also fixes 3 compiler warnings about using uninitialized variables.
2012-10-23 14:35:27 -04:00
Justin Ruggles
a5ef830b12
lavc: use the correct API version guard macro for avcodec_encode_audio()
2012-10-23 14:35:27 -04:00
Diego Biurrun
5e28e97433
Move Doxyfile into the doc/ subdirectory
2012-10-23 20:25:41 +02:00
Diego Biurrun
d7a39b3340
doxygen: Build Doxygen documentation in the doc/ subdirectory
2012-10-23 20:25:30 +02:00
Mans Rullgard
d82f188504
Remove need for padding in av_memcpy_backptr()
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-23 18:57:24 +01:00
Mans Rullgard
a153e45b95
dfa: use av_memcpy_backptr() where previously impossible
...
Since the requirement for output padding has been lifted, we can
use av_memcpy_backptr() here as well.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-23 18:57:24 +01:00
Diego Biurrun
e831b3b852
av_memcpy_backptr: Drop no longer necessary malloc padding
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-23 18:57:24 +01:00
Paul B Mahol
e2820d99f2
pnmdec: use more meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-23 17:25:38 +00:00
Diego Biurrun
ceb754d041
lzo: Use AV_COPY*U macros where appropriate
2012-10-23 18:45:50 +02:00
Reinhard Tartler
a9f0dce283
prepare 9_beta2 release
2012-10-23 18:30:36 +02:00
Michael Niedermayer
5442c6cce3
lavf: fix duration estimation for multi program TS
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 18:11:26 +02:00
Michael Niedermayer
31cdf6002a
lavf: increase retries to guess duration from pts by 1
...
This fixes finding the duration for one TS file
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 17:31:31 +02:00
Diego Biurrun
330b864cda
dsputil: Replace AV_WNxx(AV_RNxx()) combinations by AV_COPYxxU
2012-10-23 16:54:17 +02:00
Diego Biurrun
af6dd6de08
intreadwrite: Add AV_COPYxxU macros for copying to/from unaligned addresses
2012-10-23 16:54:08 +02:00
Diego Biurrun
aa91fe8091
dxtory: Replace AV_WN16A(AV_RN16A()) combination by AV_COPY16
2012-10-23 16:53:42 +02:00
Michael Niedermayer
d8f27eceaa
asfdec: ignore stored duration for truncated files
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 16:11:38 +02:00
Peter Ross
8469fc17e2
wtvdec: display warning for encrypted wtv files (instead of 'unsupported chunk' messages)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 15:26:57 +02:00
Michael Niedermayer
4d54ecf4b8
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
fate: check that dependencies actually exist
fate: fix ENCMUX macro
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 15:12:20 +02:00
Michael Niedermayer
79ec524ff5
Merge commit 'ec444c84cfd30ef34a4e7b4ec7ee77d7e5250d25'
...
* commit 'ec444c84cfd30ef34a4e7b4ec7ee77d7e5250d25':
mpegaudiodec: Fix buffer handling on random access
mpegaudio: Refactor mp3on4 flush function
fate: Add dependencies for audio tests
fate: cosmetics: Group idct8x8 test together with all other libavcodec tests
fate: More fine-grained dependencies for libavcodec test programs
Conflicts:
tests/fate/audio.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 15:08:55 +02:00
Michael Niedermayer
35ce42e070
Merge commit '8b8899ac3233b4f7af83ded0dc032fad8902d714'
...
* commit '8b8899ac3233b4f7af83ded0dc032fad8902d714':
fate: Declare avcodec/avformat deps in the respective Makefile snippets
fate: Add dependencies for WMA and WavPack tests
Improve wording and spelling of av_log_missing_feature messages.
lavu: remove disabled FF_API_AV_FIFO_PEEK cruft
Conflicts:
libavcodec/aacsbr.c
libavutil/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 15:00:27 +02:00
Michael Niedermayer
d0ac26a264
Merge commit 'c692957c4edd119920cd7f2121628dd183589e6a'
...
* commit 'c692957c4edd119920cd7f2121628dd183589e6a':
lavu: remove disabled avoptions cruft
lavu: remove disabled FF_API_GET_BITS_PER_SAMPLE_FMT cruft
Conflicts:
libavutil/opt.c
libavutil/opt.h
libavutil/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 14:50:31 +02:00
Luca Barbato
0c03cc6838
mp3: exit on parsing error in mp_decode_frame
...
Properly forward mp_decode_layer3 errors, mp_decode_layer1 and
mp_decode_layer2 do not return errors.
Based on a patch by Michael Niedermayer.
2012-10-23 14:22:16 +02:00
Luca Barbato
9ab0874ea8
mp3: properly forward mp_decode_frame errors
...
The function can return either a parsing error or a memory management
error.
2012-10-23 14:22:16 +02:00
Diego Biurrun
c2dac8ac7a
rtmppkt: Avoid unescaped backslash in Doxygen comment
2012-10-23 13:36:58 +02:00
Michael Niedermayer
a65bc2712d
Merge commit '468ea9d5b14f92fe61f47f034e67066f65163f5f'
...
* commit '468ea9d5b14f92fe61f47f034e67066f65163f5f':
Revert "avutil: make some tables visible again"
Revert "avutil: Add a copy of ff_sqrt_tab back into avutil to restore ABI compatibility"
Conflicts:
libavcodec/sqrt_tab.c
libavutil/libavutil.v
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 13:34:42 +02:00
Michael Niedermayer
c2a25e141e
Merge commit 'add3a6902ea4d459f36655656a1f8daa409118a7'
...
* commit 'add3a6902ea4d459f36655656a1f8daa409118a7':
lavu: bump major to 52
Conflicts:
libavutil/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 13:17:47 +02:00
Michael Niedermayer
af3fe43d84
Merge commit '2b8dd371e4d276ca0d342e82b8b4cc281be0630a'
...
* commit '2b8dd371e4d276ca0d342e82b8b4cc281be0630a':
lavu: postpone recent deprecations until the next major bump
APIchanges: update lavr bump date
avconv: only apply presets when we have an encoder.
atrac3: replace a calculation with FFALIGN()
atrac3: remove unused ATRAC3Context field, sample_rate
atrac3: use sizeof(variable) instead of sizeof(type)
atrac3: simplify MDCT window calculation
Conflicts:
doc/APIchanges
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 13:05:52 +02:00
Mans Rullgard
2a222a7255
fate-lavfi: replace sed/grep/cut combos with awk
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-23 12:01:18 +01:00
Mans Rullgard
4ebc6a7410
build: Plan 9 support
...
This adds support for building on Plan 9 x86-32. The compat/plan9
directory contains these items:
- replacements for the 'head' and 'printf' shell commands
- wrapper for main() to disable FPU exceptions
Larger required changes to the system are described in the
documentation.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-23 12:01:18 +01:00
Mans Rullgard
80521c1997
build: allow targets to specify extra objects to link with executables
...
This allows targets to include special objects when linking
executables without including them in (shared) libraries.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-23 12:00:22 +01:00
Mans Rullgard
a805cefd8b
swscale: avoid pointless use of compound literals
...
Some compilers (e.g. old gcc) have trouble with these.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-23 12:00:21 +01:00
Mans Rullgard
fab0a8b2c6
libm: add fallbacks for various single-precision functions
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-23 12:00:21 +01:00
Mans Rullgard
c3e73100af
network: use getservbyport() only if available
...
The absence of this function will only give a less informative
string back from our fallback implementation of getnameinfo().
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-23 12:00:21 +01:00
Mans Rullgard
da0d0ae9a4
network: add fallbacks for INADDR_LOOPBACK and INET_ADDRSTRLEN
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-23 12:00:21 +01:00
Mans Rullgard
3f65eff408
Include sys/time.h before sys/resource.h
...
Some systems require sys/time.h being explicitly included before
sys/resource.h. The configure check already does this.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-23 12:00:21 +01:00
Michael Niedermayer
7bc6631dd0
Merge commit '5d1007f74dd496d54b932242004382f44e3b22b4'
...
* commit '5d1007f74dd496d54b932242004382f44e3b22b4':
atrac3: initialize static tables in AVCodec.init_static_data()
atrac3: separate window initialization from IMDCT initialization
atrac3: move the 'frame_factor' field from ATRAC3Context to where it is used
atrac3: remove unused ATRAC3Context field, bit_rate
Conflicts:
libavcodec/atrac3.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 12:51:13 +02:00
Michael Niedermayer
8748472f39
Merge commit 'a2664c91fba15a1307f676ffad511f8f86fb3a27'
...
* commit 'a2664c91fba15a1307f676ffad511f8f86fb3a27':
atrac3: move the 'samples_per_frame' field from ATRAC3Context to where it is used
atrac3: remove unused ATRAC3Context field, samples_per_channel
atrac3: use AVCodecContext.block_align instead of keeping a private copy
atrac3: move the 'delay' field from ATRAC3Context to where it is used
atrac3: move the 'version' field from ATRAC3Context to where it is used
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 12:41:08 +02:00
Michael Niedermayer
dcb0d1193a
Merge commit '5ac673b5531d846b79a3d77e3e932e0cb1234c45'
...
* commit '5ac673b5531d846b79a3d77e3e932e0cb1234c45':
atrac3: use AVCodecContext.channels instead of keeping a private copy
atrac3: simplify some loop indexing
atrac3: cosmetics: pretty-printing and renaming
pcm: define AVCodec instances only for enabled codecs
libxvid: remove useless doxy comments.
lavc: remove stats_out from the options table.
Conflicts:
libavcodec/atrac3.c
libavcodec/pcm.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 12:36:16 +02:00
Mans Rullgard
a1f6ad69c7
fate: check that dependencies actually exist
...
This causes make to exit with an error message if a nonexistent
dependency is specified rather than silently dropping the test.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-23 11:12:24 +01:00
Mans Rullgard
6f9018fc5e
fate: fix ENCMUX macro
...
This matches how it is actually being called.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-23 11:12:24 +01:00
Michael Niedermayer
ec444c84cf
mpegaudiodec: Fix buffer handling on random access
2012-10-23 10:52:25 +02:00
Diego Biurrun
2f17f265ed
mpegaudio: Refactor mp3on4 flush function
2012-10-23 10:52:25 +02:00
Diego Biurrun
88bdec03b9
fate: Add dependencies for audio tests
2012-10-23 10:52:25 +02:00
Diego Biurrun
71f3eb4536
fate: cosmetics: Group idct8x8 test together with all other libavcodec tests
2012-10-23 10:52:15 +02:00
Diego Biurrun
8b8899ac32
fate: Declare avcodec/avformat deps in the respective Makefile snippets
2012-10-23 10:28:40 +02:00
Diego Biurrun
7d420a4294
fate: More fine-grained dependencies for libavcodec test programs
2012-10-23 10:28:40 +02:00
Diego Biurrun
e273a1a542
fate: Add dependencies for WMA and WavPack tests
2012-10-23 10:28:40 +02:00
Diego Biurrun
8f4c414df6
Improve wording and spelling of av_log_missing_feature messages.
2012-10-23 10:28:40 +02:00
Anton Khirnov
c692957c4e
lavu: remove disabled avoptions cruft
2012-10-23 07:33:05 +02:00
Anton Khirnov
468ea9d5b1
Revert "avutil: make some tables visible again"
...
This reverts commit def8c94699 .
After the major bump this is no longer necessary.
2012-10-23 07:33:05 +02:00
Anton Khirnov
add3a6902e
lavu: bump major to 52
...
In addition to the recent tables mess, the AVOption defaults behavior
changed, so an old lavc used with a new lavu will get completely messed
up defaults.
2012-10-23 07:33:05 +02:00
Anton Khirnov
2b8dd371e4
lavu: postpone recent deprecations until the next major bump
2012-10-23 07:33:05 +02:00
Anton Khirnov
00ed7f5958
lavu: remove disabled FF_API_AV_FIFO_PEEK cruft
2012-10-23 07:33:05 +02:00
Anton Khirnov
8207c67a24
lavu: remove disabled FF_API_GET_BITS_PER_SAMPLE_FMT cruft
2012-10-23 07:33:05 +02:00
Anton Khirnov
c6b25d1d5e
Revert "avutil: Add a copy of ff_sqrt_tab back into avutil to restore ABI compatibility"
...
This reverts commit d15c21e5fa .
After the major bump this is no longer necessary.
2012-10-23 07:33:05 +02:00
Anton Khirnov
9cac8a5199
APIchanges: update lavr bump date
2012-10-23 07:33:05 +02:00
Anton Khirnov
4e61a38aa0
avconv: only apply presets when we have an encoder.
...
Fixes a crash when using a preset with stream copy.
CC: libav-stable@libav.org
2012-10-23 07:30:58 +02:00
Michael Niedermayer
34ccb94796
g723_1: remove unneeded cliping
...
Fixes CID703731
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 03:03:59 +02:00
Michael Niedermayer
e9b61fffbe
g722dec: s/Libav/FFmpeg/ The copyright years predate the existence of Libav
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 03:03:53 +02:00
Michael Niedermayer
7770c0da07
fate/mapchan: add bitexact flag
...
fixes fate breakage
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 02:19:38 +02:00
Paul B Mahol
a57d560db3
LVF demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-22 23:22:39 +00:00
Michael Niedermayer
3318d6b940
ffmpeg: check avpicture_get_size() retuen value
...
Fixes CID205018
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 00:22:23 +02:00
Michael Niedermayer
da317efd92
j2k: reorder multiplications to avoid interger overflows related to precincts
...
Fixes CID703778, CID703777
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 00:03:49 +02:00
Michael Niedermayer
45ae9a8fc9
j2k: reorder multiplications to avoid interger overflows related to code blocks
...
Fixes CID703776, CID703775
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-23 00:03:49 +02:00
Clément Bœsch
7c2d5eec29
fate: quote file paths in movie/amovie filtergraphs.
...
This should avoid some nasty ':' escaping.
2012-10-22 23:13:54 +02:00
Clément Bœsch
2649b78384
fate: improve metadata filter deps readability.
2012-10-22 23:13:53 +02:00
Clément Bœsch
ae69c683e5
fate: add scale filter to the scene detect dependencies.
...
The select filter requires some conversion to rgb24 for the scene
detection.
2012-10-22 23:13:53 +02:00
Clément Bœsch
7be9c0c10f
fate: fix SAMPLES dependency for ffprobe.
...
FATE_SAMPLES_FFPROBE is a different list than FATE_FFPROBE, the same way
FATE_SAMPLES_FFMPEG is a different list than FATE_FFMPEG; these
FATE_SAMPLES_<tool> lists are in the FATE_EXTERN list, which is only
used when SAMPLES is set.
2012-10-22 23:13:53 +02:00
Michael Niedermayer
0de41ead6f
qt-faststart: check fseeko() return codes
...
Fixes CID733725
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-22 22:42:51 +02:00
Michael Niedermayer
250fe6eeb4
cmdutils: apply option to codec and format contexts if possible.
...
This is needed for setting both contexts -err_detect at once.
Reviewed-by: Clément Bœsch <ubitux@gmail.com >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-22 22:24:23 +02:00
Matthieu Bouron
c68a8a1340
lavf/aiffdec: don't stop parsing after SSND chunk
...
Some file has ID3 chunk placed after SSND.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-22 19:38:27 +02:00
Matthieu Bouron
d8173f264f
dv: fix a check on dv_extract_timecode return value
...
Fixes CID733808
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-22 19:09:47 +02:00
Michael Niedermayer
22793d7bb3
ffmpeg/lavc: move experimental warnings to libavcodec.
...
This way they are available to all applications and not just ffmpeg
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-22 17:58:33 +02:00
Justin Ruggles
5d1007f74d
atrac3: initialize static tables in AVCodec.init_static_data()
2012-10-22 10:10:08 -04:00
Justin Ruggles
a1f4cd371a
atrac3: replace a calculation with FFALIGN()
...
This allocates 4 bytes less than the previous code if avctx->block_align is
a multiple of 4, but the extra 4 bytes is not really needed.
2012-10-22 10:10:08 -04:00
Justin Ruggles
78edce3f19
atrac3: separate window initialization from IMDCT initialization
2012-10-22 10:10:08 -04:00
Justin Ruggles
808686fc1e
atrac3: remove unused ATRAC3Context field, sample_rate
2012-10-22 10:10:08 -04:00
Justin Ruggles
c51311b907
atrac3: move the 'frame_factor' field from ATRAC3Context to where it is used
2012-10-22 10:10:08 -04:00
Justin Ruggles
89a6c32bc1
atrac3: use sizeof(variable) instead of sizeof(type)
2012-10-22 10:10:08 -04:00
Justin Ruggles
327747de15
atrac3: simplify MDCT window calculation
2012-10-22 10:10:08 -04:00
Justin Ruggles
a2664c91fb
atrac3: move the 'samples_per_frame' field from ATRAC3Context to where it is used
2012-10-22 10:10:07 -04:00
Justin Ruggles
7e76f27081
atrac3: remove unused ATRAC3Context field, bit_rate
2012-10-22 10:10:07 -04:00
Justin Ruggles
7c1f93afe6
atrac3: remove unused ATRAC3Context field, samples_per_channel
2012-10-22 10:10:07 -04:00
Justin Ruggles
cdd0e0de81
atrac3: use AVCodecContext.block_align instead of keeping a private copy
2012-10-22 10:10:07 -04:00
Justin Ruggles
64ebbb8f89
atrac3: move the 'delay' field from ATRAC3Context to where it is used
2012-10-22 10:10:07 -04:00
Justin Ruggles
5ac673b553
atrac3: use AVCodecContext.channels instead of keeping a private copy
2012-10-22 10:10:06 -04:00
Justin Ruggles
56a9d2b44e
atrac3: move the 'version' field from ATRAC3Context to where it is used
2012-10-22 10:10:06 -04:00
Justin Ruggles
aefdb735c3
atrac3: simplify some loop indexing
2012-10-22 10:10:06 -04:00
Justin Ruggles
e55d53905f
atrac3: cosmetics: pretty-printing and renaming
...
also does some minor refactoring.
2012-10-22 10:10:06 -04:00
Mans Rullgard
abdee95224
pcm: define AVCodec instances only for enabled codecs
...
This defines an AVCodec only if the corresponding CONFIG option is
enabled instead of using the broad CONFIG_ENCODERS/DECODERS.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-22 14:40:57 +01:00
Anton Khirnov
5957aefc7c
libxvid: remove useless doxy comments.
2012-10-22 15:20:23 +02:00
Michael Niedermayer
f9cf14c8da
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
riff: remove a write-only variable
lavc: extend frame_size doxy.
alacdec: set bits_per_raw_sample
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-22 14:50:06 +02:00
Anton Khirnov
b691135d0c
lavc: remove stats_out from the options table.
...
Since it is declared as a string AVOption, the generic freeing code
attempts to free it on codec close. Some codecs might have already freed
it elsewhere (or didn't even allocate it with av_malloc() in the first
place), so this might lead to an invalid free.
There is no point in having this field accessible as an AVOption, so
remove it from the options table.
Fixes Bug 380.
CC: libav-stable@libav.org
2012-10-22 14:44:07 +02:00
Michael Niedermayer
e3a91c51f7
Merge commit 'c3e15f7b39aac2012f09ee4ca86d2bc674ffdbd4'
...
* commit 'c3e15f7b39aac2012f09ee4ca86d2bc674ffdbd4':
rtpdec: Don't pass a non-AVClass pointer as log context
rtsp: Update a comment to the current filename scheme
avcodec: handle AVERROR_EXPERIMENTAL
avutil: Add AVERROR_EXPERIMENTAL
avcodec: prefer decoders without CODEC_CAP_EXPERIMENTAL
Conflicts:
doc/APIchanges
ffmpeg.c
libavcodec/utils.c
libavformat/rtpdec.c
libavutil/error.c
libavutil/error.h
libavutil/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-22 14:39:12 +02:00
Michael Niedermayer
c3778df2d4
ffmpeg: fix negative array index
...
Fixes CID733808
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-22 13:58:19 +02:00
Michael Niedermayer
6182e0a6f6
vf_aspect: unbreak avoption system
...
This fixes ff* -h infinite looping
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-22 13:12:15 +02:00
Stefano Sabatini
6752aac6bc
lavfi/aspect: add max option
2012-10-22 10:46:43 +02:00
Stefano Sabatini
ccd6def9b3
lavfi/aspect: extend syntax for the setdar and setsar filters
...
Add support for named options, and deprecate old "num:den" ambiguous
syntax.
2012-10-22 10:46:34 +02:00
Stefano Sabatini
b6e36a4244
lavu/parseutils: remove unused gcd variable in av_parse_ratio()
...
Fix warning.
2012-10-22 10:41:51 +02:00
Paul B Mahol
cb0add3ce9
lavf/flacenc: disallow creation of invalid files with -c copy
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-22 08:07:09 +00:00
Anton Khirnov
6173a8fe5d
riff: remove a write-only variable
2012-10-22 08:49:58 +02:00
Anton Khirnov
d6f4fe68c8
lavc: extend frame_size doxy.
2012-10-22 08:49:58 +02:00
Justin Ruggles
46a86c6194
alacdec: set bits_per_raw_sample
2012-10-21 23:54:51 -04:00
Martin Storsjö
c3e15f7b39
rtpdec: Don't pass a non-AVClass pointer as log context
...
The log context is assumed to start with an AVClass pointer.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-22 01:46:33 +03:00
Martin Storsjö
e0d5ac6ae3
rtsp: Update a comment to the current filename scheme
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-22 01:46:10 +03:00
Michael Niedermayer
2d11ee4bfc
fate: fix fate-filter-metadata-scenedetect
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-22 00:07:53 +02:00
Michael Niedermayer
39747d87d0
avfilter_graph_parse: add support for parsing sws_flags
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-22 00:07:35 +02:00
Michael Niedermayer
248b1ff26b
Fix various uses of av_log_missing_feature()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 23:13:53 +02:00
Nathan Caldwell
c854102da7
avcodec: handle AVERROR_EXPERIMENTAL
...
Error out on init if a codec with CODEC_CAP_EXPERIMENTAL is requested
and strict_std_compliance is not FF_COMPLIANCE_EXPERIMENTAL.
Move the check from avconv to avcodec_open2() and return
AVERROR_EXPERIMENTAL accordingly.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2012-10-21 23:03:26 +02:00
Nathan Caldwell
a893655bda
avutil: Add AVERROR_EXPERIMENTAL
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2012-10-21 22:38:21 +02:00
Nathan Caldwell
a4aa20fbdb
avcodec: prefer decoders without CODEC_CAP_EXPERIMENTAL
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2012-10-21 22:27:58 +02:00
Stefano Sabatini
8f37a1e8dc
lavfi/avfiltergraph: avoid to print "(null)" in the scale args
...
Fix parsing.
2012-10-21 21:44:53 +02:00
Stefano Sabatini
2969abd908
lavfi/graphparser: fix parsing error in case of NULL sws_opts addition
...
If sws_opts was NULL it was resulting in the args being set to
"W:H:(null)", which with the new parsing code was generating a syntax
failure.
2012-10-21 21:44:45 +02:00
Stefano Sabatini
8c2dbc3805
lavc/utils: provide more feedback in case of experimental codec
2012-10-21 21:11:02 +02:00
Michael Niedermayer
5713091818
mpegaudiodec: Fix buffer handling on random access
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 20:59:08 +02:00
Clément Bœsch
e168165489
doc/muxers: document mov faststart option.
2012-10-21 20:23:09 +02:00
Clément Bœsch
c0d56bf8a4
fate: fix filter metadata dependency to ffprobe.
2012-10-21 20:10:37 +02:00
Carl Eugen Hoyos
fa190b3cd7
Improve MPEG-PS-in-MOV detection.
...
Fixes issue 1520.
2012-10-21 19:30:43 +02:00
Michael Niedermayer
747a00b688
Merge remote-tracking branch 'cus/stable'
...
* cus/stable:
ffplay: if there is no audio stream, use external clock by default
ffplay: use get_master_sync_type where necessary
ffplay: add get_master_sync_type function
ffplay: only check external clock if current frame serial matches the displayed frame serial
ffplay: add serial field to PacketQueue entry and populate it
ffplay: fix external time sync mode
ffplay: initialize audio and video pts drift
ffplay: fix nosync threshold check in synchronize_audio
ffplay: use framedrop by default when sync is not done to video
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 18:56:58 +02:00
Marton Balint
d6e9566949
h264: add support for AFD detection
...
Signed-off-by: Marton Balint <cus@passwd.hu >
Reviewed-by: Kieran Kunhya <kierank@ob-encoder.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 18:22:50 +02:00
Michael Niedermayer
40ceb6d49f
libavformat/oggenc: add {} to complex ifs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 18:05:23 +02:00
Michael Niedermayer
c2c066784f
libavformat/mxfenc: add {} to complex ifs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 18:05:23 +02:00
Michael Niedermayer
b8a64d69a9
libavformat/mpegvideodec: add {} to complex ifs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 18:05:23 +02:00
Michael Niedermayer
fefe9bd782
libavformat/movenc: add {} to complex ifs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 18:05:23 +02:00
Michael Niedermayer
217193facd
bavformat/mov: add {} to complex ifs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 18:05:23 +02:00
Michael Niedermayer
f72b735d41
libavcodec/vorbisenc: add {} to complex ifs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 18:05:22 +02:00
Michael Niedermayer
4ce9312d76
libavcodec/cook: add {} to complex ifs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 18:05:22 +02:00
Michael Niedermayer
38797dc31b
compat/getopt: add {} to complex ifs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 18:05:22 +02:00
Clément Bœsch
fbedce6b85
lavfi/silencedetect: export silence info to metadata.
2012-10-21 17:29:11 +02:00
Clément Bœsch
de23953de2
lavfi/select: store scene score in buf ref metadata.
2012-10-21 17:29:11 +02:00
Clément Bœsch
6fb2fd895e
lavc: add lavfi metadata support.
...
This commit introduces a new AVPacket side data type:
AV_PKT_DATA_STRINGS_METADATA. Its main goal is to provide a way to
transmit the metadata from the AVFilterBufferRef up to the AVFrame. This
is at the moment "only" useful for lavfi input from libavdevice:
lavd/lavfi only outputs packets, and the metadata from the buffer ref
kept in its context needs to be transmitted from the packet to the frame
by the decoders. The buffer ref can be destroyed at any time (along with
the metadata), and a duplication of the AVPacket needs to duplicate the
metadata as well, so the choice of using the side data to store them was
selected.
Making sure lavd/lavfi raises the metadata is useful to allow tools like
ffprobe to access the filters metadata (it is at the moment the only
way); ffprobe will now automatically show the AVFrame metadata in any
customizable output format for users. API users will also be able to
access the AVFrame->metadata pointer the same way ffprobe does
(av_frame_get_metadata).
All the changes are done in this single commit to avoid some memory
leaks: for instances, the changes in lavfi/avcodec.c are meant to
duplicate the metadata from the buffer ref into the AVFrame. Unless we
have an internal way of freeing the AVFrame->metadata automatically, it
will leak in most of the user apps. To fix this problem, we introduce
AVCodecContext->metadata and link avctx->metadata to the current
frame->metadata and free it at each decode frame call (and in the codec
closing callback for the last one). But doing this also means to update
the way the tiff decoder already handles the AVFrame->metadata (it's the
only one decoder with frame metadata at the moment), by making sure it
is not trying to free a pointer already freed by the lavc internals.
The lavfi/avcodec.c buffer ref code is based on an old Thomas Kühnel
work, the rest of the code belongs to the commit author.
Signed-off-by: Thomas Kühnel <kuehnelth@googlemail.com >
Signed-off-by: Clément Bœsch <ubitux@gmail.com >
2012-10-21 17:29:10 +02:00
Marton Balint
3166a6fc37
ffplay: if there is no audio stream, use external clock by default
...
Otherwise playing the video could be much slower than realtime if the system
can't decode or display the frames fast enough.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-10-21 17:18:12 +02:00
Marton Balint
d30c69251f
ffplay: use get_master_sync_type where necessary
...
We should make decisions based on the real sync type. This also simplifies
the code.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-10-21 17:18:12 +02:00
Marton Balint
fca16a1571
ffplay: add get_master_sync_type function
...
The real av_sync_type may be different to VideoState->av_sync_type, because the
required audio or video stream for audio or video clock may not be available.
We will use a function to query the real av_sync_type which is used for
determining the master clock.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-10-21 17:18:12 +02:00
Marton Balint
b2a8850969
ffplay: only check external clock if current frame serial matches the displayed frame serial
...
This way we avoid updating the external clocks with timestamps beloging to
frames before seek.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-10-21 17:18:12 +02:00
Marton Balint
2a4c7e6540
ffplay: add serial field to PacketQueue entry and populate it
...
The purpose of the serial field is to accompany the decoded data during the
decoding process to know if the decoded data belongs to the data stream after
the latest packet queue flush.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-10-21 17:18:12 +02:00
Marton Balint
77bd595ad2
ffplay: fix external time sync mode
...
We now initalize the external clock to 0 and, we use the system clock to
regulate the timings of audio and video in external clock sync mode. We
recover from external clock sync loss, when the delay to external clock is
bigger than AV_NOSYNC_THRESHOLD.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-10-21 17:18:12 +02:00
Marton Balint
66bb5b1bc9
ffplay: initialize audio and video pts drift
...
This makes sensible audio and video clock values even before displaying the
first frame.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-10-21 17:18:12 +02:00
Marton Balint
eaa91ed863
ffplay: fix nosync threshold check in synchronize_audio
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-10-21 17:18:12 +02:00
Marton Balint
da56955621
ffplay: use framedrop by default when sync is not done to video
...
When using external sync, framedrop is perfectly fine.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-10-21 17:18:12 +02:00
Michael Niedermayer
d7b8a9a589
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
fate: adpcm: cosmetics: Sort test entries
fate: adpcm: Add dependencies
svq3: cosmetics: Drop useless parentheses
Conflicts:
libavcodec/svq3.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 17:09:36 +02:00
Michael Niedermayer
0e09761686
Merge commit 'a7d2861d36756b913e85681b86ed3385274e8ced'
...
* commit 'a7d2861d36756b913e85681b86ed3385274e8ced':
svq3: K&R formatting cosmetics
fate: Introduce ENCMUX macro for tests that require encoders and a muxer
ffv1: Add missing #includes to header file
Conflicts:
libavcodec/ffv1.h
libavcodec/svq3.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 17:01:01 +02:00
Michael Niedermayer
aa760b1735
Merge commit '2d09b36c0379fcda8f984bc8ad8816c8326fd7bd'
...
* commit '2d09b36c0379fcda8f984bc8ad8816c8326fd7bd':
doc/platform: Add info on shared builds with MSVC
doc/platform: Move a caveat down to the notes section
ARM: reinstate optimised intmath.h
ffv1: update to ffv1 version 3
Conflicts:
doc/platform.texi
libavcodec/ffv1.c
libavcodec/ffv1.h
libavcodec/ffv1dec.c
libavcodec/ffv1enc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 16:13:55 +02:00
Michael Niedermayer
99ea47fe5a
Merge commit '4a2a4524a3f50ed302820ba971ddd48e78c7436f'
...
* commit '4a2a4524a3f50ed302820ba971ddd48e78c7436f':
ffv1: propagate errors
Conflicts:
libavcodec/ffv1dec.c
libavcodec/ffv1enc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 14:55:21 +02:00
Michael Niedermayer
69fd0b7adb
Merge commit '71f7b22dba60524b2285643ae0b49d8f64977129'
...
* commit '71f7b22dba60524b2285643ae0b49d8f64977129':
ffv1: split decoder and encoder
Conflicts:
libavcodec/Makefile
libavcodec/ffv1.c
libavcodec/ffv1.h
libavcodec/ffv1dec.c
libavcodec/ffv1enc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 14:37:15 +02:00
Michael Niedermayer
e4255eaf47
ffv1: split decoder and encoder
...
This is not based on lucas work due to code divergence (its less work this way
than trying to merge from a split based on 2 years outdated code)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 14:26:23 +02:00
Michael Niedermayer
dcbff35199
Merge commit 'd15c21e5fa3961f10026da1a3080a3aa3cf4cec9'
...
* commit 'd15c21e5fa3961f10026da1a3080a3aa3cf4cec9':
avutil: Add a copy of ff_sqrt_tab back into avutil to restore ABI compatibility
avutil: make some tables visible again
avutil: remove inline av_log2 from public API
celp_math: rename ff_log2 to ff_log2_q15
Conflicts:
libavutil/libavutil.v
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 13:35:42 +02:00
Michael Niedermayer
05f228b0a0
ffv1: fix gray
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 04:25:30 +02:00
Michael Niedermayer
b6267901c4
mp3demux: Rewrite xing TOC based seeking
...
The libav code depends on mp3 startcodes only occuring at the start of
frames. But there is nothing in mp3 that prevents them occuring elsewhere
by chance. Thus the code would fail randomly, the new code searches for 3
consecutive valid frames. If this turns out to be still insufficient the
number can be raised further, or additional checks added.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 03:13:46 +02:00
Michael Niedermayer
7696a392e2
mp3dec: propagate error code correctly.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-21 02:52:10 +02:00
Clément Bœsch
273fca9ac0
lavfi/silencedetect: increase duration precision.
...
This should also fix CID717889.
2012-10-21 01:28:19 +02:00
Clément Bœsch
99a520000d
lavf/webvttdec: fix potential timing overflows.
...
Should fix CID733781 and CID733782.
2012-10-21 01:16:49 +02:00
Clément Bœsch
1ea3c03743
lavf/subviewerdec: fix potential timing overflows.
...
Should fix CID733779 and CID733780.
2012-10-21 01:08:17 +02:00
Michael Niedermayer
044c0e62ea
udp: add missing mutex unlock
...
Fixes CID703688
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 23:31:32 +02:00
Michael Niedermayer
c4503a2e40
rtpdec: check av_new_packet() return value
...
Fixes CID733715
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 23:07:16 +02:00
Michael Niedermayer
3a8b66af6c
rtmp_write_amf_data: remove dead code
...
Fixes CID732199
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 22:57:30 +02:00
Michael Niedermayer
e4ef2e073c
riff_has_valid_tags: remove unused variable
...
Fixes CID739471
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 22:34:01 +02:00
Diego Biurrun
620345f930
fate: adpcm: cosmetics: Sort test entries
...
This also places tests of related formats together.
2012-10-20 21:10:21 +02:00
Diego Biurrun
a7d2861d36
svq3: K&R formatting cosmetics
2012-10-20 21:10:21 +02:00
Diego Biurrun
2e0c410485
fate: adpcm: Add dependencies
2012-10-20 21:10:21 +02:00
Diego Biurrun
8860878291
fate: Introduce ENCMUX macro for tests that require encoders and a muxer
2012-10-20 21:10:21 +02:00
Diego Biurrun
af1ede069c
svq3: cosmetics: Drop useless parentheses
2012-10-20 21:10:21 +02:00
Diego Biurrun
6cfca5b6ae
ffv1: Add missing #includes to header file
2012-10-20 21:10:21 +02:00
Michael Niedermayer
73581afe01
nutdec: fix integer overflow
...
Fixes CID700575
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 20:45:32 +02:00
Michael Niedermayer
d633e15d7d
nsvdec: fix division by 0
...
Fixes CID717749
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 20:20:39 +02:00
Michael Niedermayer
ee23dcf534
avformat_free_context: allow NULL as argument
...
Fixes CID703682
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 20:13:18 +02:00
Michael Niedermayer
830f7f189f
mmsh: fix integer overflow in mmsh_seek()
...
Fixes CID703745
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 20:13:18 +02:00
Stefano Sabatini
d3b8d56e06
examples/decoding_encoding: prefer 'frame' over 'picture' for an AVFrame
...
Decrease confusion.
2012-10-20 19:42:55 +02:00
Michael Niedermayer
dd84efe3c7
matroskaenc: Fix hypothetical integer overflows
...
Fixes CID700562-7
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 19:05:15 +02:00
Michael Niedermayer
b1f517f503
matroskaenc: check avio_open_dyn_buf() retuen code
...
Fixes CID703629
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 19:05:15 +02:00
Derek Buitenhuis
eed7406416
doc/platform: Add info on shared builds with MSVC
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-10-20 13:00:12 -04:00
Derek Buitenhuis
11a73745d5
doc/platform: Move a caveat down to the notes section
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-10-20 12:59:20 -04:00
Derek Buitenhuis
2d09b36c03
doc/platform: Add info on shared builds with MSVC
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-10-20 12:55:59 -04:00
Derek Buitenhuis
f2a7236d0c
doc/platform: Move a caveat down to the notes section
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-10-20 12:55:59 -04:00
Mans Rullgard
ebe46b8063
ARM: reinstate optimised intmath.h
...
Use of the ARM optimised intmath.h was accidentally dropped in 9734b8b .
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-20 17:26:37 +01:00
Luca Barbato
0f13cd3187
ffv1: update to ffv1 version 3
...
Based on code from Carl Eugen Hoyos, Michael Niedermayer and Paul B Mahol.
2012-10-20 18:14:52 +02:00
Luca Barbato
4a2a4524a3
ffv1: propagate errors
2012-10-20 18:14:51 +02:00
Luca Barbato
71f7b22dba
ffv1: split decoder and encoder
2012-10-20 18:14:43 +02:00
Hendrik Leppkes
79393a8363
Replace usage of the deprecated av_pix_fmt_descriptors array with av_pix_fmt_desc_get
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 18:00:13 +02:00
Michael Niedermayer
2c5b92fe90
matroskadec: fix double negation typo
...
Fixes CID602563
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 16:58:33 +02:00
Michael Niedermayer
1116491c53
matroska_parse_rm_audio: check for malloc failure
...
Fixes CID733712
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 16:55:45 +02:00
Michael Niedermayer
d7cabb3c7e
bgmc: check the correct pointers
...
Fixes CID90539, CID90538
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 15:33:44 +02:00
Michael Niedermayer
bf52ad1e49
lavc: revert broken hunk from 1cd9c81ddb
...
This should fix fate failures
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 13:59:53 +02:00
Martin Storsjö
d15c21e5fa
avutil: Add a copy of ff_sqrt_tab back into avutil to restore ABI compatibility
...
Earlier versions of for instance of libavcodec expect this symbol to be
present in libavutil. This commit can be reverted after the next major
bump.
New shared builds of avcodec will link to the internal copy of the
table within that library, so those builds won't rely on this table
being present in avutil any longer either.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-20 14:31:55 +03:00
Reinhard Tartler
def8c94699
avutil: make some tables visible again
...
These tables are used for instance by older versions of libavcodec and
need to remain visible until the next SONAME bump.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-20 14:31:55 +03:00
Mans Rullgard
8c0a3d5fe0
avutil: remove inline av_log2 from public API
...
This removes inline av_log2 and av_log2_16bit from the public API,
instead exporting them as regular functions. In-tree code still
gets the inline and otherwise optimised variants.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-20 12:28:45 +01:00
Mans Rullgard
f0c07be649
celp_math: rename ff_log2 to ff_log2_q15
...
This name is more descriptive as the function returns a fixed-point
value with 15 fraction bits.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-20 12:28:45 +01:00
Michael Niedermayer
6912e7a008
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
configure: Group math functions into a separate variable
avutil/mem: K&R formatting cosmetics
avutil/lzo: K&R formatting cosmetics
Conflicts:
configure
libavutil/mem.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 13:18:59 +02:00
Michael Niedermayer
04c6ecb7da
Merge commit 'c9ef43215c7d68c2cdcdbe02287aa114f27a32ed'
...
* commit 'c9ef43215c7d68c2cdcdbe02287aa114f27a32ed':
fate-vc1: add dependencies
ARM: fix overreads in neon h264 chroma mc
rtsp: Make sure the ret variable is initialized in ff_rtsp_fetch_packet
gitignore: ignore files created by msvc
fate: Add proper dependencies for the tests in video.mak
configure: Disable Snow decoder and encoder by default
lzo: Drop obsolete fast_memcpy reference
build: Drop OBJS declaration for non-existing PCM_DVD encoder
mpeg4videodec: Disable frame multithreading for GMC, its not implemented at all
Conflicts:
libavcodec/mpegvideo.c
libavformat/rtsp.c
tests/fate/microsoft.mak
tests/fate/video.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 12:37:52 +02:00
Stefano Sabatini
cdea54b4c8
lavu/parseutils: rework rational reduction logic in av_parse_ratio()
...
Avoid to divide num and den by gcd in case of a parsed expression, since
that is already done in av_d2q(), and force reduction in case of "a:b"
form, allowing to honour the max parameter.
The latter change is consistent with the a/b case, and with the
documentation.
2012-10-20 12:19:53 +02:00
Stefano Sabatini
935ecfb002
examples/scaling_video: remove unnecessary intermediary variable in fill_yuv_frame()
2012-10-20 12:06:45 +02:00
Stefano Sabatini
7bc533c41b
lavc/utils: fix a few case/punctuation inconsistencies in avcodec_open2()
2012-10-20 12:06:20 +02:00
Stefano Sabatini
1cd9c81ddb
lavc/utils: extend feedback provided by avcodec_open2()
2012-10-20 12:06:14 +02:00
Stefano Sabatini
7b116a94af
examples/decoding_encoding: fix misc typos in the usage text
2012-10-20 11:30:13 +02:00
Stefano Sabatini
8c4753f7f5
examples/decoding_encoding: remove misplaced and confusing comment
2012-10-20 11:30:13 +02:00
Stefano Sabatini
6d6ccbae4c
examples/decoding_encoding: add missing checks on avcodec_alloc_context3()
2012-10-20 11:30:13 +02:00
Diego Biurrun
79042ab376
configure: Group math functions into a separate variable
...
This avoids some duplication when listing and testing for the functions.
2012-10-20 02:34:29 +02:00
Diego Biurrun
5532cf3178
avutil/mem: K&R formatting cosmetics
2012-10-20 02:34:29 +02:00
Diego Biurrun
c08536979b
avutil/lzo: K&R formatting cosmetics
2012-10-20 02:34:29 +02:00
Mans Rullgard
c9ef43215c
fate-vc1: add dependencies
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-20 01:31:01 +01:00
Mans Rullgard
1846ddf0a7
ARM: fix overreads in neon h264 chroma mc
...
The loops were reading ahead one line, which could end up outside the
buffer for reference blocks at the edge of the picture. Removing
this readahead has no measurable performance impact.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-20 01:28:38 +01:00
Hendrik Leppkes
04bf2e7f0e
swresample: include ff_log2_tab for shared builds
...
This is done in accordance with all other libraries, which no longer access ff_log2_tab from avutil directly for shared builds, and instead obtain their own copy.
This change is required for MSVC DLL builds, as well as avoids accessing a private symbol from another library.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 01:58:04 +02:00
Hendrik Leppkes
953a3dcc4e
Mark data symbols shared between libraries with av_export
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 01:56:50 +02:00
Martin Storsjö
2f41eaa9c6
rtsp: Make sure the ret variable is initialized in ff_rtsp_fetch_packet
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-20 01:59:06 +03:00
Hendrik Leppkes
33f2a49423
vc1: only disable interlaced b-frames for software decoding
...
Tested-by: Gwenole Beauchesne <gb.devel@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 00:07:43 +02:00
Hendrik Leppkes
b87ff34496
vc1: implement vc1 field interlaced dxva2 decoding
...
Tested-by: Gwenole Beauchesne <gb.devel@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-20 00:07:14 +02:00
Michael Niedermayer
8fb8d539a4
hlsproto: fix integer overflow
...
Fixes CID703743
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 23:24:03 +02:00
Michael Niedermayer
ba39303050
gxfenc: fix null ptr dereference
...
Fixes CID703677
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 23:21:41 +02:00
Michael Niedermayer
395caf3de8
hls: fix integer overflow
...
Fixes CID717892
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 23:00:47 +02:00
Michael Niedermayer
a96577df38
avio: fix sizeof argument
...
Fixes CID732284
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 22:35:32 +02:00
Hendrik Leppkes
d2d08d706b
gitignore: ignore files created by msvc
...
exp files are created in every build and contain export information
of the libraries. Both pdb and ilk are created during debug builds,
and contain linking and debug information used by MSVC.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2012-10-19 22:15:03 +02:00
Michael Niedermayer
d30351363f
url_alloc_for_protocol: fix use of uninitialized variable
...
Fixes CID703830
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 22:14:13 +02:00
Michael Niedermayer
3d48dd01fd
avidec: remove unneeded null check
...
Fixes CID29555
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 21:46:39 +02:00
Michael Niedermayer
aaf78e4d14
vf_mp: fix null ptr deref in case of ENOMEM
...
Fixes CID703675
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 19:59:38 +02:00
Michael Niedermayer
042a738b45
vf_mp: check list in querry_format()
...
Fixes CID717772
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 19:59:38 +02:00
Michael Niedermayer
31fdf3065d
vf_idet: reorder operations to avoid division by 0
...
Fixes CID733738
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 19:59:32 +02:00
Martin Storsjö
12549db653
fate: Add proper dependencies for the tests in video.mak
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-19 20:27:16 +03:00
Michael Niedermayer
0fa26bd470
utvideoenc: fix theoretical integer overflow
...
The image sizes needed for this overflow to happen are currently not
supported in lavc, thus this should have no effect execpt making the
code more robust in light of future changes.
Fixes CID732245
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 18:57:57 +02:00
Michael Niedermayer
d86ef54476
avcodec_align_dimensions2: add missing breaks
...
This should have just cosmetic effects
Fixes CID603265
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 18:50:09 +02:00
Ash Hughes
2470851f12
lavc: enable recursively using avcodec_open2/close.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 18:05:12 +02:00
Diego Biurrun
4b587848ce
configure: Disable Snow decoder and encoder by default
...
Snow has serious unfixed bugs and no real-world use.
2012-10-19 17:10:10 +02:00
Diego Biurrun
8fb1e26405
lzo: Drop obsolete fast_memcpy reference
2012-10-19 17:04:41 +02:00
Diego Biurrun
c896aa984e
build: Drop OBJS declaration for non-existing PCM_DVD encoder
2012-10-19 17:04:41 +02:00
Petter Ericson
7abf394814
mov.c: Check for stsd + m1s tag indicating MOV-wrapped MPEG-PS, and force continued probing if found.
...
Fixes Ticket241
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 16:07:49 +02:00
Michael Niedermayer
6bcdfe48d0
mpeg4videodec: Disable frame multithreading for GMC, its not implemented at all
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-19 15:42:35 +03:00
jamal
9434ead2f3
fate: Handle lavf-fate tests in a makefile
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 14:20:11 +02:00
Michael Niedermayer
c5fd9d3c35
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
fate: Add proper dependencies in qt.mak
fate: Add proper dependencies in lossless-video.mak
indeo3: do not try to output more lines than we can fit
bmv: get a new frame on every decode_frame(), so we can use direct rendering
Conflicts:
libavcodec/bmv.c
tests/fate/lossless-video.mak
tests/fate/qt.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 14:15:47 +02:00
Michael Niedermayer
81ff0c24ef
Merge commit '1cd432e167b1a80853760c89a33606e2b5f229c2'
...
* commit '1cd432e167b1a80853760c89a33606e2b5f229c2':
configure: fix libcdio check
rtsp: Allow setting the reordering buffer size via an AVOption
rtsp: Vertically align a constant definition
rtp: Update the check for distinguishing between RTP and RTCP
aac: fix build with hardcoded tables
fate: dependencies for screen codec tests
riff: Move functions around to be covered by appropriate #ifdefs
Conflicts:
configure
tests/fate/screen.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 13:58:14 +02:00
Michael Niedermayer
93f244e3ab
Merge commit '0af1fe845a9d7112da0a58d33a4fc81fe7c47e95'
...
* commit '0af1fe845a9d7112da0a58d33a4fc81fe7c47e95':
avformat: Fix references to the removed function av_write_header in comments
changelog: Mention the MSVC DLL support
fate: add dependencies for misc microsoft codecs
fate-twinvq: add dependencies
fate-mpc: add dependencies
fate-indeo: add dependencies
fate-als: add dependencies
fate: dependencies for demux tests
Conflicts:
Changelog
tests/Makefile
tests/fate/demux.mak
tests/fate/microsoft.mak
tests/fate/mpc.mak
tests/fate/vqf.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 13:47:47 +02:00
Michael Niedermayer
b0554fec04
Merge commit 'c0329748b04e1f175dad8c9c2ebf22a5e2dc5b72'
...
* commit 'c0329748b04e1f175dad8c9c2ebf22a5e2dc5b72':
fate: add a dependency helper macro
Add support for building shared libraries with MSVC
avcodec: Rename avpriv_frame_rate_tab to ff_mpeg12_frame_rate_tab
gxf: Add a local copy of the relevant parts of the frame rate table
configure: Split out msvc as a separate target OS
aviobuf: Remove a senseless ifdef in avio_seek
Conflicts:
configure
libavcodec/dirac.c
libavcodec/mpeg12data.h
libavcodec/mpeg12enc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 13:29:24 +02:00
Martin Storsjö
61cc99748c
fate: Add proper dependencies in qt.mak
...
The output of make fate-list is identical to before.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-19 10:43:14 +03:00
Martin Storsjö
91485e744f
fate: Add proper dependencies in lossless-video.mak
...
The output of make fate-list is identical to before.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-19 10:43:13 +03:00
Kostya Shishkov
169514c440
indeo3: do not try to output more lines than we can fit
...
Internally chroma planes have multiple of four height while allocated image
planes might be smaller if CODEC_FLAG_EMU_EDGE is set. Thus we should not
output more lines of chroma than frame can accept.
Also the decoder can be safely switched to direct rendering now.
2012-10-19 07:58:51 +02:00
Kostya Shishkov
8774d58358
bmv: get a new frame on every decode_frame(), so we can use direct rendering
2012-10-19 07:58:51 +02:00
Michael Niedermayer
d50aa006fb
tiffenc: fix integer overflow
...
Fixes CID700699
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 03:36:42 +02:00
Michael Niedermayer
a06f943f9d
roqvideodec: replace dead code by assert
...
Fixes CID732195
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 03:15:06 +02:00
Michael Niedermayer
c0b17ea106
roqaudioenc: Fix crash with very small roq files
...
Fixes CID703669
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 02:57:57 +02:00
Paul B Mahol
4ebf305951
lavc/tta: do not overwrite bits_per_coded_sample
...
It is supposed to be set in libavformat only.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-19 00:08:02 +00:00
Paul B Mahol
445f36d7c8
kmvc: use meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-19 00:08:02 +00:00
Paul B Mahol
be536f084a
xxan: return more meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-19 00:08:01 +00:00
Paul B Mahol
0bf40e0ef4
lavc/yop: remove redudant YOP in av_log() messages
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-19 00:08:01 +00:00
Paul B Mahol
4c6c6a266e
jvdec: use more meaningful error code
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-19 00:08:01 +00:00
Paul B Mahol
527224830a
idcinvideo: if decoding fails return error
...
Previously if frame decoding failed it would be
silently reported as valid frame.
The fate ref is updated because sample have
truncated last video packet.
While here return meaningful error codes.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-19 00:08:01 +00:00
Paul B Mahol
aadb7b3ac4
lavc/c93: use meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-19 00:08:01 +00:00
Mans Rullgard
1cd432e167
configure: fix libcdio check
...
The compiler/linker flags passed to check_lib2 should not be quoted.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-19 01:02:58 +01:00
Michael Niedermayer
05b0337025
motionpixels/mp_decode_frame_helper: assert that the first pixel doesnt reuse the last.
...
reusing the last would use uninitialized data, this should be
impossible currently, but better to check by assert.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 01:20:27 +02:00
Michael Niedermayer
df727d408c
mlp_parser: print error when ff_combine_frame() fails to add the current buffer
...
Fixes part of CID602338
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-19 00:05:03 +02:00
Clément Bœsch
e807a2b648
lavc: add raw text subtitles decoder.
2012-10-18 22:51:44 +02:00
Martin Storsjö
3f055f8f5f
rtsp: Allow setting the reordering buffer size via an AVOption
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-18 23:10:48 +03:00
Martin Storsjö
1c37744963
rtsp: Vertically align a constant definition
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-18 23:10:42 +03:00
Martin Storsjö
0de9380be5
rtp: Update the check for distinguishing between RTP and RTCP
...
Also add enums for more RTCP packet types, according to the IANA
list of registered types.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-18 23:10:20 +03:00
Michael Niedermayer
c753b56b4d
ff_convert_matrix: fix integer overflow
...
Fixes CID608053
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-18 21:51:04 +02:00
Michael Niedermayer
5537c92f84
mpegvideoenc: check return value of ff_MPV_frame_start()
...
Fixes CID703622
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-18 21:42:31 +02:00
Michael Niedermayer
2472f3facb
lzwenc: change assert to av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-18 21:42:04 +02:00
Michael Niedermayer
97d1cb5cd4
bmv: remove unreachable default case
...
Fixes CID732191
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-18 21:13:28 +02:00
Mans Rullgard
7a12d97eb1
aac: fix build with hardcoded tables
...
aac_tablegen.h includes aac.h for the POW_SF2_ZERO definition, but
this also pulls in a raft of other headers, some of which are not
safe to use in code built with the host compiler.
Moving POW_SF2_ZERO to aac_tablegen_decl.h, where the declaration
of the array it relates to already resides, fixes the problems.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-18 19:59:43 +01:00
Michael Niedermayer
23b203014f
indeo4: prevent printing uninitialized variable
...
Fixes CID703822
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-18 20:41:51 +02:00
Michael Niedermayer
2b1a2466c7
dv: change assert(a2 < 4) to av_assert()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-18 20:29:03 +02:00
Diego Biurrun
e8fe208be8
fate: dependencies for screen codec tests
2012-10-18 18:44:06 +02:00
Diego Biurrun
7b2121e7e2
riff: Move functions around to be covered by appropriate #ifdefs
...
This fixes compilation with --disable-muxers.
2012-10-18 16:12:45 +02:00
Michael Niedermayer
d0c27e88d2
riff: retry reading metadata without padding if it fails with
...
Fixes Ticket1821
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-18 16:03:16 +02:00
Michael Niedermayer
1350dffdc6
riff: dont discard truncated metadata
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-18 16:02:50 +02:00
Martin Storsjö
0af1fe845a
avformat: Fix references to the removed function av_write_header in comments
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-18 16:33:48 +03:00
Martin Storsjö
22310eef9f
changelog: Mention the MSVC DLL support
...
Also retroactively add a changelog entry to the 9beta1 list
for general MSVC support, which was present there already.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-18 16:33:34 +03:00
Mans Rullgard
55351de9f4
fate: add dependencies for misc microsoft codecs
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-18 13:12:31 +01:00
Mans Rullgard
c0329748b0
fate: add a dependency helper macro
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-18 13:12:28 +01:00
Mans Rullgard
22f5149ec4
fate-twinvq: add dependencies
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-18 13:12:28 +01:00
Mans Rullgard
08c6a12a56
fate-mpc: add dependencies
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-18 13:12:28 +01:00
Mans Rullgard
2e05143a8d
fate-indeo: add dependencies
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-18 13:12:28 +01:00
Mans Rullgard
b55dda4a72
fate-als: add dependencies
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-18 13:12:28 +01:00
Mans Rullgard
eccd0671cc
fate: dependencies for demux tests
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-18 13:12:28 +01:00
Martin Storsjö
d66c52c2b3
Add support for building shared libraries with MSVC
...
This requires the makedef perl script by Derek, from the
c89-to-c99 repo. That scripts produces a .def file, listing
the symbols to be exported, based on the gcc version scripts
and the built object files.
To properly load non-function symbols from DLL files, the
data symbol declarations need to have the attribute
__declspec(dllimport) when building the calling code. (On mingw,
the linker can fix this up automatically, which is why it has not
been an issue so far. If this attribute is omitted, linking
actually succeeds, but reads from the table will not produce the
desired results at runtime.)
MSVC seems to manage to link DLLs (and run properly) even if
this attribute is present while building the library itself
(which normally isn't recommended) - other object files in the
same library manage to link to the symbol (with a small warning
at link time, like "warning LNK4049: locally defined symbol
_avpriv_mpa_bitrate_tab imported" - it doesn't seem to be possible
to squelch this warning), and the definition of the tables
themselves produce a warning that can be squelched ("warning C4273:
'avpriv_mpa_bitrate_tab' : inconsistent dll linkage, see previous
definition of 'avpriv_mpa_bitrate_tab').
In this setup, mingw isn't able to link object files that refer to
data symbols with __declspec(dllimport) without those symbols
actually being linked via a DLL (linking avcodec.dll ends up with
errors like "undefined reference to `__imp__avpriv_mpa_freq_tab'").
The dllimport declspec isn't needed at all in mingw, so we simply
choose not to declare it for other compilers than MSVC that requires
it. (If ICL support later requires it, the condition can be extended
later to include both of them.)
This also implies that code that is built to link to a certain
library as a DLL can't link to the same library as a static library.
Therefore, we only allow building either static or shared but not
both at the same time. (That is, static libraries as such can be,
and actually are, built - this is used for linking the test tools to
internal symbols in the libraries - but e.g. libavformat built to
link to libavcodec as a DLL cannot link statically to libavcodec.)
Also, linking to DLLs is slightly different from linking to shared
libraries on other platforms. DLLs use a thing called import
libraries, which is basically a stub library allowing the linker
to know which symbols exist in the DLL and what name the DLL will
have at runtime.
In mingw/gcc, the import library is usually named libfoo.dll.a,
which goes next to a static library named libfoo.a. This allows
gcc to pick the dynamic one, if available, from the normal -lfoo
switches, just as it does for libfoo.a vs libfoo.so on Unix. On
MSVC however, you need to literally specify the name of the import
library instead of the static library.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-18 14:26:15 +03:00
Martin Storsjö
eaa9b2e66c
avcodec: Rename avpriv_frame_rate_tab to ff_mpeg12_frame_rate_tab
...
This table doesn't need to be shared with libavformat any longer.
Add mpeg12 to the name to make it less ambiguous, while renaming it.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-18 14:26:14 +03:00
Martin Storsjö
fc085c5b33
gxf: Add a local copy of the relevant parts of the frame rate table
...
This avoids having to share this table across the library
boundaries.
This shared table used to be problematic, if always declaring
all exported data symbols with the dllimport attribute (even
while building that same library), since it needs to be a
link-time constant when it is used in AVCodec declarations
(in mpeg12enc.c).
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-18 14:26:13 +03:00
Martin Storsjö
53e8cd68b7
configure: Split out msvc as a separate target OS
...
The name mingw32 as target OS is both misleading, and very little
of the target OS specific settings actually match.
Since the target OS default is set based on uname, the default
(which on MSYS is set to mingw) is overridden by --toolchain=msvc.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-18 14:26:12 +03:00
Michael Niedermayer
3777e6b3bf
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
mips64: mark hi/lo registers clobbered in MAC64/MLS64 macros
fate: list lavfi tests in a makefile
Conflicts:
configure
tests/Makefile
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-18 12:16:08 +02:00
Michael Niedermayer
9317b73f11
Merge commit '36ac9a16a19a365ce58cc871484c20cffe9b6401'
...
* commit '36ac9a16a19a365ce58cc871484c20cffe9b6401':
fate: dependencies for seek tests
fate: handle lavf test dependencies entirely in make
Conflicts:
configure
tests/Makefile
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-18 11:42:42 +02:00
Michael Niedermayer
5806cd9365
fate: dependencies for ffmpeg vsynth tests
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-18 11:01:53 +02:00
Michael Niedermayer
aadaa8112a
fate: dependencies for ffmpeg acodec tests
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-18 11:01:15 +02:00
Michael Niedermayer
17e4b0644b
Merge commit '292d1e78743855404c7d07e3e7cb3f9c9ae6275b'
...
* commit '292d1e78743855404c7d07e3e7cb3f9c9ae6275b':
fate: dependencies for acodec tests
fate: dependencies for vsynth tests
fate: add macros useful for conditionally enabling things
libmp3lame: resize the output buffer if needed
Conflicts:
tests/fate/acodec.mak
tests/fate/vcodec.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-18 10:48:00 +02:00
Michael Niedermayer
eb19d89d8e
cache: check lseek() return
...
Fixes CID717496
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-18 00:55:03 +02:00
Martin Storsjö
b760ffdd07
aviobuf: Remove a senseless ifdef in avio_seek
...
This seemed to assume that one never used writing avio unless
muxers or networking was enabled.
This ifdef is a remnant since 8fa641f8 .
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-18 01:44:05 +03:00
Michael Niedermayer
ce739e66f4
cmdutils: add missing check for ftell() return
...
Fixed CID703706
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-18 00:10:59 +02:00
Mans Rullgard
b93e934aee
mips64: mark hi/lo registers clobbered in MAC64/MLS64 macros
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-17 22:37:12 +01:00
Mans Rullgard
36ac9a16a1
fate: dependencies for seek tests
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-17 22:31:18 +01:00
Mans Rullgard
292d1e7874
fate: dependencies for acodec tests
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-17 22:31:18 +01:00
Mans Rullgard
206a070dce
fate: list lavfi tests in a makefile
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-17 22:31:18 +01:00
Mans Rullgard
fa26335003
fate: handle lavf test dependencies entirely in make
...
This makes the lavf tests depend on all codecs and formats they use.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-17 22:31:18 +01:00
Mans Rullgard
b262e45597
fate: dependencies for vsynth tests
...
This makes the vsynth tests run only if the required codecs and
formats are enabled.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-17 22:31:18 +01:00
Mans Rullgard
21fed588cb
fate: add macros useful for conditionally enabling things
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-17 22:31:18 +01:00
Alexis Ballier
916352f282
configure: do not quote arguments passed to filter{,_out} in check_ld.
...
This fixes the following error:
./configure: eval: line 417: syntax error near unexpected token `-lcdio_cdda'
[...]
Broken by 66a1ccd74 when doing, e.g., ./configure --enable-gpl --enable-libcdio.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 23:28:50 +02:00
Michael Niedermayer
35daf3ca81
cmdutils: remove unneeded null check
...
Fixes CID703769
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 23:28:50 +02:00
Stefano Sabatini
eebde404bc
examples/muxing: merge add_audio_stream() and add_video_stream()
...
Factorize.
2012-10-17 21:39:13 +02:00
Stefano Sabatini
eda0a52bf1
examples/muxing: check on frame
...
Fix crash in case frame is not defined (e.g. with muxing out.wav).
2012-10-17 21:39:13 +02:00
Stefano Sabatini
d6196d9421
examples/muxing: fix bogus setting of st->id
2012-10-17 21:39:12 +02:00
Stefano Sabatini
5ca298df2d
examples/muxing: remove misleading comment about pending API change
...
The API was never changed since 2003. Replace with a comment about the
performed operation.
2012-10-17 21:39:12 +02:00
Stefano Sabatini
1f7962625c
examples/muxing: remove video_outbuf unused and useless code
2012-10-17 21:39:12 +02:00
Nicolas George
709628aa71
lavfi/avf_concat: fix invalid exclusive test.
...
The invalid test did not cause any actual problem since
the first branch is only possible with bogus filters.
Fix coverity issue CID 733850.
2012-10-17 21:28:58 +02:00
Michael Niedermayer
d185c8a79b
tiff: run strlen() after setting the pointer
...
Fixes CID733803
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 20:58:08 +02:00
Michael Niedermayer
f03c0f6afc
ffmdec: check av_new_packet() return value
...
Fixes CID733711
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 20:45:59 +02:00
Michael Niedermayer
a0e0e1e192
ffmdec: fix hypothetical overflows
...
Fixes CID703739
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 20:36:30 +02:00
Michael Niedermayer
71bc8c95d7
ffm_read_write_index: check lseek return code
...
Fixes CID732184
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 20:35:16 +02:00
Michael Niedermayer
378a5b9c5f
ffm_write_write_index: check lseek() return code
...
Fixes CID732185
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 20:23:16 +02:00
Michael Niedermayer
7fd65104f4
ffm_seek: fix division by zero
...
Fixes CID732202
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 20:14:43 +02:00
Michael Niedermayer
657998b5ee
libavfilter/lavfutils: remove useless NULL check on format context
...
Fixes: CID733804
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 20:00:31 +02:00
Michael Niedermayer
fd9e88fe60
libavfilter/lavfutils: remove useless NULL check on codec context
...
The code would crash before if it was NULL
Fixes CID733804
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 20:00:20 +02:00
Michael Niedermayer
a4fe661157
mov_probe: fix integer overflows
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 17:50:14 +02:00
Paul B Mahol
9b762e2cba
idcinvideo: remove redundant " id CIN Video: " from av_log()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-17 14:09:47 +00:00
Justin Ruggles
abd8b9e7e0
libmp3lame: resize the output buffer if needed
...
The LAME API documentation for the required buffer size refers to the size for
a single encode call. However, we store multiple frames in the same output
buffer but only read 1 frame at a time out of it. As a result, the buffer size
given in lame_encode_buffer() is actually smaller than what it should be.
Since we do not know how many frames it will end up buffering, it is best to
just reallocate if needed.
2012-10-17 09:59:13 -04:00
Michael Niedermayer
775d41b617
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
configure: Add support for Tilera processors
wavdec: check size before reading the data, not after.
Conflicts:
configure
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 15:53:42 +02:00
Michael Niedermayer
940ee63630
Merge commit '79922d7237aba2b8c6abbd2e06a0c08e4f498ad4'
...
* commit '79922d7237aba2b8c6abbd2e06a0c08e4f498ad4':
wav: do not fail on empty INFO tags
Conflicts:
libavformat/wavdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 15:52:04 +02:00
Michael Niedermayer
df5e089da9
Merge commit '31c54711cc3f1484af101d629bbb805820d37ad1'
...
* commit '31c54711cc3f1484af101d629bbb805820d37ad1':
lavf: split wav muxer and demuxer into separate files.
Conflicts:
libavformat/wavdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 15:46:08 +02:00
Michael Niedermayer
d8cfa98358
Merge commit '58b619c8a226cc4564ad5af291bc99a04f89ee56'
...
* commit '58b619c8a226cc4564ad5af291bc99a04f89ee56':
wav muxer: write metadata
Conflicts:
Changelog
libavformat/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 15:16:23 +02:00
Michael Niedermayer
c079da5073
Merge commit '0bca0283ccded5e32da143a462168ad1988a58fd'
...
* commit '0bca0283ccded5e32da143a462168ad1988a58fd':
riff: do not write empty INFO tags
Conflicts:
tests/ref/fate/vsynth1-cljr
tests/ref/fate/vsynth1-ffvhuff
tests/ref/fate/vsynth1-h261
tests/ref/fate/vsynth1-h263
tests/ref/fate/vsynth1-h263-obmc
tests/ref/fate/vsynth1-h263p
tests/ref/fate/vsynth1-huffyuv
tests/ref/fate/vsynth1-jpegls
tests/ref/fate/vsynth1-mjpeg
tests/ref/fate/vsynth1-mpeg4-adap
tests/ref/fate/vsynth1-mpeg4-adv
tests/ref/fate/vsynth1-mpeg4-error
tests/ref/fate/vsynth1-mpeg4-nr
tests/ref/fate/vsynth1-mpeg4-qpel
tests/ref/fate/vsynth1-mpeg4-qprd
tests/ref/fate/vsynth1-mpeg4-rc
tests/ref/fate/vsynth1-mpeg4-thread
tests/ref/fate/vsynth1-msmpeg4
tests/ref/fate/vsynth1-msmpeg4v2
tests/ref/fate/vsynth1-rgb
tests/ref/fate/vsynth1-wmv1
tests/ref/fate/vsynth1-wmv2
tests/ref/fate/vsynth1-yuv
tests/ref/fate/vsynth2-cljr
tests/ref/fate/vsynth2-ffvhuff
tests/ref/fate/vsynth2-h261
tests/ref/fate/vsynth2-h263
tests/ref/fate/vsynth2-h263-obmc
tests/ref/fate/vsynth2-h263p
tests/ref/fate/vsynth2-huffyuv
tests/ref/fate/vsynth2-jpegls
tests/ref/fate/vsynth2-mjpeg
tests/ref/fate/vsynth2-mpeg4-adap
tests/ref/fate/vsynth2-mpeg4-error
tests/ref/fate/vsynth2-mpeg4-nr
tests/ref/fate/vsynth2-mpeg4-qpel
tests/ref/fate/vsynth2-mpeg4-qprd
tests/ref/fate/vsynth2-mpeg4-rc
tests/ref/fate/vsynth2-mpeg4-thread
tests/ref/fate/vsynth2-msmpeg4
tests/ref/fate/vsynth2-msmpeg4v2
tests/ref/fate/vsynth2-rgb
tests/ref/fate/vsynth2-wmv1
tests/ref/fate/vsynth2-wmv2
tests/ref/fate/vsynth2-yuv
tests/ref/lavf/avi
tests/ref/seek/h261_avi
tests/ref/seek/h263_avi
tests/ref/seek/h263p_avi
tests/ref/seek/lavf_avi
tests/ref/seek/mjpeg_avi
tests/ref/seek/mpeg4_adap_avi
tests/ref/seek/mpeg4_error_avi
tests/ref/seek/mpeg4_nr_avi
tests/ref/seek/mpeg4_qpel_avi
tests/ref/seek/mpeg4_qprd_avi
tests/ref/seek/mpeg4_rc_avi
tests/ref/seek/mpeg4_thread_avi
tests/ref/seek/msmpeg4_avi
tests/ref/seek/msmpeg4v2_avi
tests/ref/seek/wmv1_avi
tests/ref/seek/wmv2_avi
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 14:43:26 +02:00
Michael Niedermayer
fadfbb354b
Merge commit '71e92414bfd79e56ea6fff174a665ff7b9b86e68'
...
* commit '71e92414bfd79e56ea6fff174a665ff7b9b86e68':
lavf: move RIFF INFO tag writing from avienc to riff
avconv: fix disabling auto mappings with -map_metadata
Conflicts:
ffmpeg_opt.c
libavformat/riff.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 14:30:25 +02:00
Michael Niedermayer
d6e87190fd
Merge commit 'a25d912dca9cd553440167e0476c47581359c0fc'
...
* commit 'a25d912dca9cd553440167e0476c47581359c0fc':
avcodec_encode_audio(): fix invalid free
pcm-mpeg: correct bitrate calculation
ffv1: K&R formatting cosmetics
fate: Add rangecoder test
network: #include stdint.h in network.h
nut: export codec_tag provided by rawvideo
avserver: move avserver-specific code from ffmdec.c to avserver.c
Conflicts:
ffserver.c
libavcodec/ffv1.c
libavformat/ffmdec.c
libavformat/nutenc.c
tests/ref/lavfi/crop
tests/ref/lavfi/crop_scale
tests/ref/lavfi/crop_scale_vflip
tests/ref/lavfi/crop_vflip
tests/ref/lavfi/null
tests/ref/lavfi/pixdesc
tests/ref/lavfi/pixfmts_copy
tests/ref/lavfi/pixfmts_crop
tests/ref/lavfi/pixfmts_hflip
tests/ref/lavfi/pixfmts_null
tests/ref/lavfi/pixfmts_pad
tests/ref/lavfi/pixfmts_scale
tests/ref/lavfi/pixfmts_vflip
tests/ref/lavfi/scale200
tests/ref/lavfi/scale500
tests/ref/lavfi/vflip
tests/ref/lavfi/vflip_crop
tests/ref/lavfi/vflip_vflip
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 14:17:55 +02:00
Paul B Mahol
1ade37ae9c
lavc/tta: use meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-17 12:11:34 +00:00
Paul B Mahol
d6ea59b860
tta: datalen is unsigned integer per reference library
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-17 11:58:08 +00:00
Michael Niedermayer
364c60bf64
sws-test: parse command line args before initing contexts
...
This fixes parsing comand line args after ref
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 11:56:36 +02:00
Clément Bœsch
711ffb84df
lavf/swfdec: support DefineBitsLossless{,2} tag.
2012-10-17 07:49:17 +02:00
Michael Niedermayer
4e2e3d943e
ffv1: fix packed rgb with 1.3
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 03:19:11 +02:00
Michael Niedermayer
adbb75dbd8
mov: fix time types related to mov_metadata_creation_time
...
Fixes Ticket1817
Based on patch by: Przemyslaw Wesolek <przemyslaw.wesolek@go.art.pl >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 02:48:30 +02:00
Michael Niedermayer
7b8fd29816
examples/muxing: fix video pts
...
Fixes Ticket1801
Based on suggestion from AztecC
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 02:40:00 +02:00
Derek Buitenhuis
c75848cd4c
configure: Add support for Tilera processors
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-10-16 18:24:18 -04:00
Michael Niedermayer
5d2b885074
lavfi: limit matching w/h/fmt asserts to non scale filters
...
This fixes a regression with the scale filters input changing.
In the long run filters should get a flag to indicate support of this
and then this flag be used here.
But the regression should not be left standing until thats done.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 00:06:12 +02:00
Michael Niedermayer
6cbb8a450f
libavfilter/buffersrc: Do not fail hard on changes of input parameters.
...
Several filters support this already.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 00:06:12 +02:00
Michael Niedermayer
3e0b29ccd0
ffmpeg: Make video filter graph reinit user selectable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-17 00:06:12 +02:00
Michael Niedermayer
a07e9d72a1
yuvPlanartouyvy_c: fix sign extension
...
Fixes CID732281
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 21:06:24 +02:00
Michael Niedermayer
a30972609c
yuvPlanartoyuy2_c: fix sign extension
...
Fixes CID732282
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 20:50:53 +02:00
Michael Niedermayer
cb65b32c97
mp3enc: remove unneeded null ptr check
...
Fixes: CID733746
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 20:27:16 +02:00
Michael Niedermayer
6d55a40b00
mov: print warning if ff_get_wav_header() fails
...
Fixes CID717497
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 20:21:31 +02:00
Michael Niedermayer
24d6af0f7e
sierravmd: flip reduce arg order.
...
This should make no difference but might help static analyzers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 20:03:37 +02:00
Michael Niedermayer
de6c150444
nut: fix int32 overflow
...
Fixes CID700574
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 19:59:01 +02:00
Michael Niedermayer
340305646a
riff: fix division by zero for G726
...
Fixes CID717752
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 19:56:05 +02:00
Michael Niedermayer
9de5b11d58
swr-test: fix division by 0
...
Fixes CID733739
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 19:40:57 +02:00
Michael Niedermayer
dd3e5baa59
swr-test: check pointers before use
...
Fixes: CID733807, CID733806
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 19:39:25 +02:00
Anton Khirnov
a43283b6f4
wavdec: check size before reading the data, not after.
2012-10-16 18:52:21 +02:00
Anton Khirnov
79922d7237
wav: do not fail on empty INFO tags
...
Fixes Bug 379
CC: libav-stable@libav.org
2012-10-16 18:52:14 +02:00
Anton Khirnov
31c54711cc
lavf: split wav muxer and demuxer into separate files.
2012-10-16 18:52:07 +02:00
Victor Vasiliev
58b619c8a2
wav muxer: write metadata
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-10-16 18:51:56 +02:00
Victor Vasiliev
0bca0283cc
riff: do not write empty INFO tags
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-10-16 18:51:16 +02:00
Victor Vasiliev
71e92414bf
lavf: move RIFF INFO tag writing from avienc to riff
...
It will be useful in the wav muxer.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-10-16 18:50:36 +02:00
Anton Khirnov
a119c64e38
avconv: fix disabling auto mappings with -map_metadata
...
CC: libav-stable@libav.org
2012-10-16 18:49:59 +02:00
Rafaël Carré
a25d912dca
avcodec_encode_audio(): fix invalid free
...
Since 2bc0de385 , AVFrame needs to be initialized
before calling avcodec_get_frame_defaults().
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-10-16 18:49:31 +02:00
Christian Schmidt
4a7429203a
pcm-mpeg: correct bitrate calculation
...
Bitrate calculation is off since the bluray spec always specifies
an even number of coded channels. This was honored in the decoder,
but not for bitrate calculation.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2012-10-16 16:03:03 +02:00
Luca Barbato
9a978b334b
ffv1: K&R formatting cosmetics
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-10-16 15:45:55 +02:00
Diego Biurrun
c0a6cac292
fate: Add rangecoder test
2012-10-16 15:45:55 +02:00
Mans Rullgard
1fbaabefc4
network: #include stdint.h in network.h
...
This header uses various types provided by stdint.h without
explicitly including it.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-16 14:45:29 +01:00
Luca Barbato
21de6ba5c1
nut: export codec_tag provided by rawvideo
...
Raw audio does not provide valid audio tags while rawvideo does.
The fate refs have to be updated because it undoes the previous tag
change.
2012-10-16 15:26:31 +02:00
Mans Rullgard
3b20eb25e7
avserver: move avserver-specific code from ffmdec.c to avserver.c
...
This way avserver only depends on the data structures of the ffm
demuxer, which it already does, and not also on private functions
being exported by the library.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-16 14:20:05 +01:00
Michael Niedermayer
8227d36bd3
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
build: simplify linking tools with cmdutils.o
tiny_psnr: fix range calculation for sample size of 32 bits
Conflicts:
Makefile
tests/tiny_psnr.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 14:15:16 +02:00
Michael Niedermayer
83962004f7
Merge commit '3dc06b6972cf389269e9c36ff0a4373f80f7149b'
...
* commit '3dc06b6972cf389269e9c36ff0a4373f80f7149b':
tiny_psnr: check for specified sample size less than 1
fate: improve md5sum utility selection
rangecoder-test: Drop timer output that clutters stderr
Conflicts:
tests/tiny_psnr.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 14:04:14 +02:00
Michael Niedermayer
5717562c78
Merge commit 'c1fcfdec75468009dc7de29a5d1c6adf3b2ef77d'
...
* commit 'c1fcfdec75468009dc7de29a5d1c6adf3b2ef77d':
rangecoder-test: Return in case of an error
build: simplify enabling of compat objects
Conflicts:
configure
libavutil/Makefile
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 13:57:10 +02:00
Stefano Sabatini
25f3827e1d
tools/ffeval: do not use UNIX-specific /dev/std{in,out} files
...
Should fix behavior when the /dev/ directory is not defined (e.g. on
Windows).
2012-10-16 13:51:44 +02:00
Stefano Sabatini
7ca102a7d7
examples: add README file with simple compilation instructions
2012-10-16 13:34:48 +02:00
Michael Niedermayer
d15be9108e
Merge commit '66a1ccd7467ab1913cd8877114c6d4c2588bb12f'
...
* commit '66a1ccd7467ab1913cd8877114c6d4c2588bb12f':
configure: simplify argument handling in check_ld
Conflicts:
configure
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 13:27:19 +02:00
Michael Niedermayer
9270a2b374
Merge commit '4c995fafd861f537360b3717901cdbed6a6844e7'
...
* commit '4c995fafd861f537360b3717901cdbed6a6844e7':
configure: simplify get_version() function
build: support asan and tsan toolchain shortcuts
rmdec: Move SIPR code shared with Matroska demuxer to a separate file
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 13:20:46 +02:00
Andrew Euell
36b3b2376d
gitignore: add *.dylib for those of us on Darwin/OS X systems.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 04:14:09 +02:00
Michael Niedermayer
4cc4ca5847
mandelbrot: fix inner=period coloring routine
...
Fixes CID717571
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 04:00:55 +02:00
Michael Niedermayer
9c669672c7
x86/motion_est: widen before multiply.
...
This fixes CID700558, CID700557, CID700556
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 03:09:28 +02:00
Michael Niedermayer
3896cd11a1
mxfenc: explicitly truncate continuity count.
...
The field is intended to overflow and have only its low 16bits stored.
This commit avoids the implicit truncation and clarifies that its
intended and not a bug
S326m section 7.6 ("Continuity count"):
> The continuity count word consists of 2 bytes allow-
> ing a number to be created by a modulo 65536
> counter (bits C15 to C0 in figure 7). The continuity
> count shall increment by 1 for each newly transmit-
> ted content package with the same SDTI source and
> destination addresses. The continuity count may
> be used to detect whether the content package
> sequence has been broken by an operation such as
> a routing switch.
Approved-by: Tjoppen
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 03:01:15 +02:00
Michael Niedermayer
1fe45903b8
msvideo1enc: fix interframe encoding
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 02:22:27 +02:00
Michael Niedermayer
ba31e59e83
ffmpeg: Override r_frame_rate by corrected timebase only for interlaced streams
...
Fixes Ticket1664
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 01:04:42 +02:00
Michael Niedermayer
901f4bb6fc
utils: consider mpeg4 in mp4/mov to have a unreliable timebase
...
Partly fixes Ticket1664
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-16 01:04:02 +02:00
Michael Niedermayer
f5581266f7
ra288: assert order to be withinn supported range in do_hybrid_window()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-15 23:55:54 +02:00
Michael Niedermayer
db3a0aae9f
msvideo1enc: fix initial keyframe value
...
keyframe was never set to anything but 1
Fixes CID733730
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-15 23:52:08 +02:00
Mans Rullgard
07b3790d36
build: simplify linking tools with cmdutils.o
...
This avoids repeating cmdutils.o in both the prerequisites and
the link command.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-15 22:28:07 +01:00
Mans Rullgard
bf868c4a9b
tiny_psnr: fix range calculation for sample size of 32 bits
...
For a sample size of 32 bits, the shift would overflow producing
undefined results. Incidentally, in the only test currently using
32-bit samples, the output matches the reference exactly on most
systems meaning the bad 'max' value is never used.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-15 21:41:25 +01:00
Mans Rullgard
3dc06b6972
tiny_psnr: check for specified sample size less than 1
...
A zero or negative sample size is impossible and should be
reported as an error.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-15 21:40:18 +01:00
Stefano Sabatini
faa1cb50ed
lavfi/ass: extend syntax for ass filter
...
Make the filter accept named options for the first argument, and update
documentation accordingly.
2012-10-15 22:40:08 +02:00
Mans Rullgard
099294577c
fate: improve md5sum utility selection
...
The 'md5sum' command is used with the -b flag so the presence test
must also use this flag.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-15 21:40:08 +01:00
Stefano Sabatini
22c5cc239c
tools/ffeval: include compat/getopt.c in case of missing system getopt()
2012-10-15 21:58:02 +02:00
Stefano Sabatini
a726ac9a11
examples/muxing: extend usage notice
2012-10-15 21:36:14 +02:00
Michael Niedermayer
0cc3cd5c65
Merge branch 'docu' of https://github.com/rdp/FFmpeg
...
* 'docu' of https://github.com/rdp/FFmpeg :
docu: add word resize to scale filter, to make searching for the word resize simpler
docu: change verb flite
docu: add flite ffmpeg example
docu: fix flite example
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-15 21:22:10 +02:00
Diego Biurrun
f1be514540
rangecoder-test: Drop timer output that clutters stderr
2012-10-15 21:16:36 +02:00
Diego Biurrun
c1fcfdec75
rangecoder-test: Return in case of an error
2012-10-15 21:15:17 +02:00
Michael Niedermayer
547ec4d303
ffmpeg: check timebase validity before using it.
...
Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-15 20:35:45 +02:00
Nicolas Noirbent
af32a1f2d1
doc/filters: pad examples should be a @subsection
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-15 20:35:45 +02:00
rogerdpack
dfd085aae2
docu: add word resize to scale filter, to make searching for the word resize simpler
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com >
2012-10-15 11:28:45 -06:00
rogerdpack
a8eaa9ebc6
docu: change verb flite
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com >
2012-10-15 11:26:39 -06:00
rogerdpack
7f5a78a0da
docu: add flite ffmpeg example
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com >
2012-10-15 11:26:07 -06:00
rogerdpack
d9d5470636
docu: fix flite example
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com >
2012-10-15 11:24:08 -06:00
Paul B Mahol
3ca8a23288
lavf/audiointerleave: check return value of av_new_packet()
...
Fixes CID733709.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-15 17:03:41 +00:00
Paul B Mahol
bb502411dd
nutdec: check return value of av_new_packet()
...
Fixes CID733173.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-15 17:03:41 +00:00
Tomas Härdin
8cbb8f5357
dv: Set FS flag from AVFrame.top_field_first
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-15 18:53:44 +02:00
Tomas Härdin
7b383bd9d7
dvdec: Set top_field_first from FS flag
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-15 18:53:44 +02:00
Tomas Härdin
2b4bbd12c2
dvdec: Move the VSC pack parsing to before avctx->execute()
...
This allows the next commit to parse the FS flag.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-15 18:53:44 +02:00
Tim Nicholson
0ee57f8b14
rawdec.c: Extract interlace information from quicktime flag if it exisits.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-15 18:53:44 +02:00
Mans Rullgard
84e65c763d
build: simplify enabling of compat objects
...
Add a configure function to pull in a compat object and set up
redirects in one operation. This avoids duplicating conditions
across configure and makefiles.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-15 17:46:19 +01:00
Mans Rullgard
66a1ccd746
configure: simplify argument handling in check_ld
...
Use the existing filter functions instead of open-coding the
separation of general flags and libraries.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-15 17:46:18 +01:00
Mans Rullgard
4c995fafd8
configure: simplify get_version() function
...
awk alone can do this, no need for grep.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-15 17:46:18 +01:00
Luca Barbato
0fbb62a8e6
build: support asan and tsan toolchain shortcuts
2012-10-15 18:25:35 +02:00
Paul B Mahol
d7d5b5dfc1
flvdec: check return value of create_stream()
...
Fixes null pointer dereference. Fixes CID732242.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-15 15:59:53 +00:00
Paul B Mahol
295218f531
idcin: check chunk_size value before using it
...
Fixes integer overflow. Fixes CID732223.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-15 15:48:13 +00:00
Paul B Mahol
3f8148911c
img2dec: check return value of av_new_packet()
...
Fixes CID703626.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-15 14:53:56 +00:00
Paul B Mahol
011f3892ff
h264: use designated initializers for AVClass
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-15 13:43:33 +00:00
Stefano Sabatini
59e31aa2ca
examples/muxing: provide more information in case of avcodec_open2 failure
2012-10-15 15:35:50 +02:00
Stefano Sabatini
6133149e0c
examples/muxing: add missing error checks
2012-10-15 15:35:50 +02:00
Stefano Sabatini
e56b3a5ebb
examples/muxing: fix case inconsistency in message
2012-10-15 15:35:49 +02:00
Paul B Mahol
e75357ea7c
xbmenc: cosmetics: reindent
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-15 13:28:23 +00:00
Paul B Mahol
5864fe62ef
flacdec: replace -1 with AV_SAMPLE_FMT_NONE
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-15 13:26:47 +00:00
Michael Niedermayer
5c7a62aef5
movenc: fix tmcd parameters
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-15 15:09:46 +02:00
Michael Niedermayer
5bac83dae8
shorten: fix U8 to be planar too
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-15 15:09:46 +02:00
Paul B Mahol
916e40b5b4
smacker: return more meaningfull error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-15 12:48:38 +00:00
Michael Niedermayer
ae237a117a
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
swscale: try to use mmap only if available
configure: check for mprotect
wmapro: use planar sample format
wmalossless: output in planar sample format
wmadec: use float planar sample format output
shorten: use planar sample format
lavc: update documentation for AVFrame.extended_data
Conflicts:
libavcodec/shorten.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-15 14:09:35 +02:00
Diego Biurrun
7e68c91e24
rmdec: Move SIPR code shared with Matroska demuxer to a separate file
2012-10-15 13:34:07 +02:00
Paul B Mahol
4f5e5a0513
lavf/txd: cosmetics: fix identation
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-15 08:12:25 +00:00
Clément Bœsch
b08273c9ca
lavf/mkv: avoid negative ts by default.
...
This fixes playback in some circumstances (like webm in firefox).
Regression after 2c34367b .
It is also matching the Matroska specifications:
http://matroska.org/technical/specs/notes.html , "The quick eye will
notice that if a Cluster's Timecode is set to zero, it is possible to
have Blocks with a negative Raw Timecode. Blocks with a negative Raw
Timecode are not valid."
2012-10-15 09:19:21 +02:00
Stefano Sabatini
304c37b216
tests: add fate-xface test
2012-10-15 08:32:34 +02:00
Stefano Sabatini
cd559bb49a
lavc: add xface image decoder and encoder
...
Based on libcompface code by James Ashton <James.Ashton@anu.edu.au >, and
relicensed to LGPL with the author's consent.
2012-10-15 08:32:18 +02:00
Mans Rullgard
95cd815c36
swscale: try to use mmap only if available
...
Some systems, e.g. Minix, have sys/mman.h defining MAP_ANONYMOUS without
providing (working) mmap and friends. The mmx filter generation code
checks only for MAP_ANONYMOUS, not for availability of mmap itself which
leads to build errors on aforementioned systems.
This changes the conditional compilation to use mmap only if all the
required functions are available.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-15 02:39:49 +01:00
Mans Rullgard
e98b02de5f
configure: check for mprotect
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-15 02:39:49 +01:00
Michael Niedermayer
35782bfbca
h264: Change asserts to av_asserts in ff_h264_fill_default_ref_list()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-15 03:22:00 +02:00
Michael Niedermayer
151469db33
j2kenc: remove unneeded dereference
...
Fixes CID703723
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-15 03:18:08 +02:00
Michael Niedermayer
1b8f4d773c
ffmpeg: use framerate not fieldrate as filter input.
...
Fixes a problem described in Ticket1065
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-15 00:40:36 +02:00
Michael Niedermayer
a63d7213b3
ffplay: Prevent 0/0 aspect from being passed on to lavfi
...
0/0 fails to be parsed
Fixes Ticket1814
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 23:40:14 +02:00
Justin Ruggles
f9d732c264
wmapro: use planar sample format
2012-10-14 16:48:23 -04:00
Justin Ruggles
2725ce7c7c
wmalossless: output in planar sample format
2012-10-14 16:48:23 -04:00
Justin Ruggles
7ebfe5b44a
wmadec: use float planar sample format output
2012-10-14 16:48:23 -04:00
Justin Ruggles
977eb7d567
shorten: use planar sample format
2012-10-14 16:48:22 -04:00
Michael Niedermayer
bc077ca6b5
j2kdec: remove unneeded operation
...
Fixes CID717554
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 22:16:31 +02:00
Michael Niedermayer
1e6cbb01e9
j2kdec: make curtilenum integer.
...
This fixes a potential crash.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 22:16:31 +02:00
Michael Niedermayer
0de0ae5a20
tag_tree_decode: check node being non null
...
Fixes CID717843
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 22:16:31 +02:00
Michael Niedermayer
a6cac64f69
compute_lpc_coefs: assert that normalize and fail have a supported combination
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 22:16:31 +02:00
Michael Niedermayer
93ef29b6f4
noise_bsf: fix division by 0
...
Fixes CID733737
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 21:45:42 +02:00
Justin Ruggles
8441909f49
lavc: update documentation for AVFrame.extended_data
2012-10-14 15:00:45 -04:00
Michael Chinen
c73b1a1d80
flac_parser.c: fix issue with looping output for small files.
...
see trac 1345
https://ffmpeg.org/trac/ffmpeg/ticket/1345
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 20:39:10 +02:00
Thilo Borgmann
41bf943f70
bgmc: fix sizeof arguments (should fix CIDs: 700724 and 608084)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 20:37:43 +02:00
Michael Niedermayer
45bd0d15f4
lavf: fix fps detection with PAFF H.264
...
Fixes Ticket1065
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 19:20:23 +02:00
Hendrik Leppkes
572781b25f
h264: fix parsing of old lossless profile (profile_idc == 144)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 16:04:10 +02:00
Peter Ross
6bf43441f0
eatgq: raise error on unsupported macroblock mode
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 16:01:22 +02:00
Peter Ross
0ea55365b9
ansi: by design nb_args may exceed the size of the args array, so guard accordingly
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 15:56:36 +02:00
Michael Niedermayer
d6f6a7557c
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avutil: Do not make ff_ symbols globally visible.
avutil: Rename ff_set_systematic_pal2() ---> avpriv_set_systematic_pal2()
build: tms470: work around glibc math.h problems
configure: improve tms470 compiler usage with glibc
Conflicts:
libavcodec/bmpenc.c
libavcodec/rawdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 15:11:34 +02:00
Paul B Mahol
de3b1116da
eatgq: fix small overread
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-14 12:54:10 +00:00
Michael Niedermayer
82c0055c5e
Merge commit 'b5198a2637b7b45b0049a1d4b386a06f016f2520'
...
* commit 'b5198a2637b7b45b0049a1d4b386a06f016f2520':
configure: tms470: add mapping for -mfpu=vfpv3-d16 flag
configure: recognise Minix as OS
configure: work around bug in ash shell
eval-test: make table static const
lavr: handle clipping in the float to s32 conversion
nut: support pcm codecs not mapped in avi
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 14:46:13 +02:00
Michael Niedermayer
db51c65961
Merge commit '1bd442c276e6688b43777a198cad0d7e3a92123f'
...
* commit '1bd442c276e6688b43777a198cad0d7e3a92123f':
nut: prioritize native tags
Conflicts:
tests/ref/lavfi/crop
tests/ref/lavfi/crop_scale
tests/ref/lavfi/crop_scale_vflip
tests/ref/lavfi/crop_vflip
tests/ref/lavfi/null
tests/ref/lavfi/pixdesc
tests/ref/lavfi/pixfmts_copy
tests/ref/lavfi/pixfmts_crop
tests/ref/lavfi/pixfmts_hflip
tests/ref/lavfi/pixfmts_null
tests/ref/lavfi/pixfmts_pad
tests/ref/lavfi/pixfmts_scale
tests/ref/lavfi/pixfmts_vflip
tests/ref/lavfi/scale200
tests/ref/lavfi/scale500
tests/ref/lavfi/vflip
tests/ref/lavfi/vflip_crop
tests/ref/lavfi/vflip_vflip
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 14:31:55 +02:00
Michael Niedermayer
03760297b1
doc/nut: Clarify what/where is the official nut specification
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 14:05:41 +02:00
Paul B Mahol
039341eb43
wv: do not report invalid stream duration
...
If total number of samples is -1 it means stream is of unknown length.
Fixes ticket #1777 .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-14 10:41:16 +00:00
Paul B Mahol
dd5aff001e
svq1dec: use log level that have more common sense
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-14 09:21:48 +00:00
Paul B Mahol
7b9fc769e4
svq1dec: use more common way to check if result is not zero
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-14 09:18:36 +00:00
Paul B Mahol
8f4020d8a4
svq1dec: check return value of get_bits1() in more common way
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-14 09:14:35 +00:00
Paul B Mahol
e2bf1082cc
svq1dec: return more meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-14 09:12:19 +00:00
Michael Niedermayer
d31098113f
mp3enc: fix signed C99 overflow
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 05:52:50 +02:00
Michael Niedermayer
2217a2249d
dpxenc: fix signed c99 overflows
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 05:48:02 +02:00
Michael Niedermayer
7a32ab5ed0
sws: get rid of C99 signed overflows try #2
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 05:16:59 +02:00
Michael Niedermayer
693097c355
paf: avoid C99 overflows
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 04:01:41 +02:00
Michael Niedermayer
3ee8eefbf2
sws: avoid signed C99 overflows
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 03:59:45 +02:00
Michael Niedermayer
555f352f99
swr/rematrix: fix C99 left shift overflow
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 03:48:05 +02:00
Michael Niedermayer
014b178f84
g723_1: fix overflow in square_root()
...
the intermediate does not fit in a signed 32bit int
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 03:42:28 +02:00
Michael Niedermayer
2fed05f53a
avoid more "0xFF << 24" as it is considered a integer overflow in C99
...
missed these in my previous search and replace
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 03:34:16 +02:00
Michael Niedermayer
b12d92efd6
avoid "0xFF << 24" as it is considered a integer overflow in C99
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 03:26:31 +02:00
Michael Niedermayer
d3d715ff13
mpeg4videodec: Recalculate timebase in case of guessing time increment bits
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 03:26:31 +02:00
Clément Bœsch
096d96ffda
lavfi/select/scene: use pointer increments instead of y*linesize.
2012-10-14 02:09:05 +02:00
Clément Bœsch
0852648301
lavfi/select/scene: fix potential overread.
...
Also make sure we use the actual width of the image and not the whole
linesize.
2012-10-14 02:08:06 +02:00
Clément Bœsch
dff826b4a8
lavfi/select/scene: move out convoluted sad variable init from loop.
2012-10-14 01:23:00 +02:00
Thilo Borgmann
feaff427c0
alsdec: fix clipping of weightings for MCC decoding
...
Fixes CID717905
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 00:18:46 +02:00
Michael Niedermayer
20ec0d2a75
mpegvideo: fix motion_val checks
...
Fixes CID604124
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 00:08:53 +02:00
Michael Niedermayer
f4d73f0fb5
mpegvideo: check return value of ff_MPV_common_init()
...
Fixes CID703621
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 00:08:44 +02:00
Michael Niedermayer
8cda27b753
avcodec_find_best_pix_fmt_of_2: fix handling or PIX_FMT_NONE
...
Fixes CID733775
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-14 00:08:44 +02:00
Michael Niedermayer
b3eb4f54c0
flashsv: check deflateInit() return value
...
Fixes CID703620
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 22:48:32 +02:00
Michael Niedermayer
6581b6cef4
dnxhdenc: assert ff_dnxhd_get_cid_table() return value
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 22:40:14 +02:00
Michael Niedermayer
1037e484f0
dnxhddata_ Fix mixup of sizeof() and array elements in ff_dnxhd_find_cid()
...
Fixes CID717910
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 22:36:15 +02:00
Michael Niedermayer
670b927aa2
ffv1: make sure gob_count is not 0
...
Fixes division by 0
Fixes CID733736
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 22:33:40 +02:00
Michael Niedermayer
f70a651b3f
sws-test: raise limigts a bit.
...
these cases arent used but theres no point in failing on them
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 21:19:52 +02:00
Michael Niedermayer
3689ec3d28
pp: avoid overflow in w*h
...
Fixes CID700580
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 21:17:43 +02:00
Michael Niedermayer
c0f0bec2f2
sws-test: check W/H
...
Fixes CID733834
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 21:17:43 +02:00
Paul B Mahol
2c85727f6c
lavc/codec_desc: add/update properties of some codecs
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-13 18:50:23 +00:00
Michael Niedermayer
225d3cc1cc
ffeval: avoid folding EOF onto a valid char
...
Fixes CID733704
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 20:35:56 +02:00
Michael Niedermayer
80db07adfe
probetest: check command line arguments
...
Fixes CID733835
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 20:35:56 +02:00
Michael Niedermayer
8ab0b9caba
trasher: check seek return value.
...
Fixes CID733726
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 20:35:56 +02:00
Diego Biurrun
7638f0b2fe
avutil: Do not make ff_ symbols globally visible.
2012-10-13 20:01:56 +02:00
Paul B Mahol
a5e0046a73
xbmdec: s/av_reverse/ff_reverse
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-13 18:00:48 +00:00
Diego Biurrun
52d113ee06
avutil: Rename ff_set_systematic_pal2() ---> avpriv_set_systematic_pal2()
...
Functions used across libraries should have avpriv_ and not ff_ prefixes.
2012-10-13 19:59:20 +02:00
Mans Rullgard
b5198a2637
configure: tms470: add mapping for -mfpu=vfpv3-d16 flag
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-13 18:21:36 +01:00
Mans Rullgard
b6f8d635f2
build: tms470: work around glibc math.h problems
...
The glibc definitions of INFINITY and NAN do not work with the
tms470 compiler, nor do our usual fallbacks.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-13 18:21:36 +01:00
Mans Rullgard
5ab432fa35
configure: improve tms470 compiler usage with glibc
...
Apply flags to work around glibc quirks only if glibc is detected,
and add a few more such flags.
Do not mess with as/ld settings in probe_cc. This is not the
proper place.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-13 18:21:36 +01:00
Michael Niedermayer
183117fed7
libavutil: loose idiotic circular dependancies between version and avutil.h
...
This fixes the recently appearing PIX_FMT warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 18:47:18 +02:00
Dmitry Samonenko
083c7bf701
sdp: output speex optional vbr parameter
...
Optional sdp speex payload parameter is outputed only when
data is encoded. It's not printed in case of stream copy.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 18:47:18 +02:00
Michael Niedermayer
c45b829d52
tests: fix checksums for png aspect ratio change
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 18:47:18 +02:00
Paul B Mahol
93931143fe
lavc: return s->get_buffer() error code if it errors out
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-13 16:03:03 +00:00
Paul B Mahol
f58f90238f
pngenc: write sample aspect ratio
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-13 16:02:09 +00:00
Paul B Mahol
8288c2b6cb
pngdec: read sample aspect ratio
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-13 16:02:09 +00:00
Michael Niedermayer
2a56e65c3b
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
vc1: Use codec ID from AVCodecContext while parsing frame header
avplay: support mid-stream sample rate changes
Conflicts:
ffplay.c
libavcodec/vc1.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 17:09:13 +02:00
Michael Niedermayer
d0707677fa
ffplay: use audio parameters from the decoded frame instead of AVCodecContext
...
Based on commit by Justin Ruggles (the changed code is too different to apply as is)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 16:47:50 +02:00
Michael Niedermayer
15ef1cfe64
Merge commit 'f5962229bfcb14c2879e69ccdf7f1a4934168609'
...
* commit 'f5962229bfcb14c2879e69ccdf7f1a4934168609':
avplay: use audio parameters from the decoded frame instead of AVCodecContext
dca: allocate a secondary buffer for extra channels when downmixing
configure: use utilities from /usr/xpg4/bin if it exists
avstring-test: fix memory leaks
Conflicts:
ffplay.c
libavcodec/dcadec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 16:39:42 +02:00
Paul B Mahol
6571833d1a
smjpegdec: use url_feof()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-13 14:15:58 +00:00
Michael Niedermayer
18884f159b
Merge commit '0a7005bebd23ade7bb852bce0401af1a8fdbb723'
...
* commit '0a7005bebd23ade7bb852bce0401af1a8fdbb723':
rtpdec_xiph: fix function return type
smjpeg: fix type of 'ret' variable in smjpeg_read_packet()
mpegvideo: remove write-only variable
Use proper return values in case of missing features
fate: add avstring test
rangecoder-test: Set error message log level to error, instead of debug
Conflicts:
libavcodec/aacdec.c
libavcodec/amrnbdec.c
libavcodec/mpegvideo.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 15:42:49 +02:00
Michael Niedermayer
c55bebe2cc
Merge commit '90558e848a29ef1e85ecb1832ad9a26eebe958e0'
...
* commit '90558e848a29ef1e85ecb1832ad9a26eebe958e0':
rangecoder: K&R formatting cosmetics
Conflicts:
libavcodec/rangecoder.c
libavcodec/rangecoder.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 15:35:05 +02:00
Michael Niedermayer
85fe70b64c
Merge commit 'ca411fc1d34329cd17b28627f697e391ae52073f'
...
* commit 'ca411fc1d34329cd17b28627f697e391ae52073f':
avcodec: Remove broken MMI optimizations
Conflicts:
arch.mak
configure
libavcodec/avcodec.h
libavcodec/mips/Makefile
libavcodec/mips/dsputil_mmi.c
libavcodec/mips/idct_mmi.c
libavcodec/mips/mmi.h
libavcodec/mips/mpegvideo_mmi.c
libavcodec/options_table.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 15:25:11 +02:00
Mans Rullgard
741a8b724e
configure: recognise Minix as OS
...
No special setup is required for Minix.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-13 14:05:55 +01:00
Mans Rullgard
ac17ccf73a
configure: work around bug in ash shell
...
The ash 'test' builtin misbehaves if the first operand of a binary
operator looks like a unary operator.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-13 14:05:55 +01:00
Michael Niedermayer
b4ca1b159f
Merge commit 'bc4620e5d61a4dd9a1f654fadd281a172aab04be'
...
* commit 'bc4620e5d61a4dd9a1f654fadd281a172aab04be':
Remove libmpeg2 #define remnants
De-doxygenize some top-level files
Conflicts:
ffmpeg.c
ffmpeg.h
ffmpeg_filter.c
ffplay.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 15:01:39 +02:00
Michael Niedermayer
d6c342fdc0
Merge commit 'd5c62122a7b26704bf867a1262df358623bf5edf'
...
* commit 'd5c62122a7b26704bf867a1262df358623bf5edf':
Move av_reverse table to libavcodec
Conflicts:
libavcodec/asvenc.c
libavcodec/vble.c
libavutil/common.h
libavutil/mathematics.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 14:35:42 +02:00
Michael Niedermayer
d197bd4f5e
Merge commit '930c9d4373e0f3cb7c64fcfc129127a309f6d066'
...
* commit '930c9d4373e0f3cb7c64fcfc129127a309f6d066':
avutil: Duplicate ff_log2_tab instead of sharing it across libs
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 14:24:58 +02:00
Michael Niedermayer
3b0bb321a5
Merge commit 'f6c38c5f4ed6683a6a61db2ed418a68bbe5f5507'
...
* commit 'f6c38c5f4ed6683a6a61db2ed418a68bbe5f5507':
avfilter: call x86 init functions under if (ARCH_X86), not if (HAVE_MMX)
rtspdec: Set the default port for listen mode, if none is specified
tscc2: Fix an out of array access
rtmpproto: Fix an out of array write
rtspdec: Fix use of uninitialized byte
vp8: reset loopfilter delta values at keyframes.
avutil: add yuva422p and yuva444p formats
Conflicts:
libavutil/pixdesc.c
libavutil/pixfmt.h
tests/ref/lavfi/pixdesc
tests/ref/lavfi/pixfmts_copy
tests/ref/lavfi/pixfmts_null
tests/ref/lavfi/pixfmts_scale
tests/ref/lavfi/pixfmts_vflip
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 14:14:11 +02:00
Sami Pietilä
3cc0252732
vp8dec: reset loopfilter delta values at keyframes
...
while testing a VP8 encoder I found a mismatch between FFMPEG and libvpx
VP8 decoders. The reason for this mismatch is that FFMPEG doesn't reset
loopfilter delta values at keyframes. Patch that fixes the issue is below.
I've verified that the output of ffmpeg after this patch matches libvpx.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 12:43:24 +02:00
Mans Rullgard
74c39bc682
eval-test: make table static const
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-13 11:39:25 +01:00
Justin Ruggles
10e645e9cb
lavr: handle clipping in the float to s32 conversion
...
We cannot clip to INT_MAX because that value cannot be exactly
represented by a float value and ends up overflowing during conversion
anyway. We need to use a slightly smaller float value, which ends up
with slightly inaccurate results for samples which clip or nearly clip,
but it is close enough. Using doubles as intermediates in the conversion
would be more accurate, but it takes about twice as much time.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2012-10-13 12:34:34 +02:00
Luca Barbato
1bd442c276
nut: prioritize native tags
...
Use native tags instead of avi ones, simplifies a lot raw video codecs
handling.
2012-10-13 12:33:18 +02:00
Luca Barbato
92281850a2
nut: support pcm codecs not mapped in avi
...
The native tags will be used when available.
2012-10-13 12:33:18 +02:00
Carl Eugen Hoyos
6254ffe0ca
Allow autodetection of some dnxhd files that can be decoded correctly.
...
Fixes ticket #1807 .
2012-10-13 11:59:37 +02:00
Paul B Mahol
e8b50385cf
fate: update pcx reference
...
It changed because encoder now writes 0/1 for
sample aspect ratio instead of 0/0.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-13 09:07:12 +00:00
Paul B Mahol
79133fd0e5
pcxenc: store sample aspect ratio
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-13 08:22:27 +00:00
Paul B Mahol
f2f711cde2
pcx: read sample aspect ratio
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-13 08:22:26 +00:00
Paul B Mahol
92b3d8bc53
bethsoftvideo: return meaningfull error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-13 08:07:41 +00:00
Paul B Mahol
efb0e4e7af
truemotion2: use more meaningful return codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-13 07:55:50 +00:00
Mashiat Sarker Shakkhar
5d2be71b9e
vc1: Use codec ID from AVCodecContext while parsing frame header
...
This fixes a segfault with samples that I have (both of them MPEG-TS). Looks like
avctx->codec is not being set during parsing.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com >
2012-10-13 08:33:07 +02:00
Justin Ruggles
6304f78edf
avplay: support mid-stream sample rate changes
...
Resample to the rate that was configured in SDL.
2012-10-13 00:19:00 -04:00
Justin Ruggles
f5962229bf
avplay: use audio parameters from the decoded frame instead of AVCodecContext
2012-10-13 00:18:48 -04:00
Justin Ruggles
61d5313d94
dca: allocate a secondary buffer for extra channels when downmixing
...
The output AVFrame buffer only has data for the downmix channels.
Fixes a segfault when decoding dca with request_channels == 2.
2012-10-13 00:07:10 -04:00
Michael Niedermayer
ff814c75a3
ffserver: fix return value of add_codec()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 05:36:41 +02:00
Michael Niedermayer
8dc8994427
jpegls: increase run_index to 4
...
Fixes part of CID717913
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 03:54:04 +02:00
Michael Niedermayer
4acfe3d193
jpegls: fix off limit
...
Fixes part of CID717913
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 03:54:04 +02:00
Michael Niedermayer
9f9307ff2a
rv30_decode_intra_types: make check tighter
...
This makes no differnce as the affected values cannot occur
But it will likely help static analyzers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 03:32:38 +02:00
Michael Niedermayer
3f01042142
ff_celp_lp_synthesis_filterf: change loop end check
...
This makes no difference for supported input but avoids a
out of array read with input that is never passed in currently
Fixes CID717919
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 03:32:38 +02:00
Michael Niedermayer
3f350a482f
ff_celp_lp_synthesis_filterf: check that filter_length is within the supported range
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 03:32:38 +02:00
Michael Niedermayer
f657d495b0
rtpdec_qdm2: change one assert to av_assert0
...
Failure of this assert could lead to hard to debug behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 03:32:37 +02:00
Michael Niedermayer
e47024d72f
wtvdec: fix memleak on error
...
Fixes CID718002
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 02:37:47 +02:00
Michael Niedermayer
120b38b966
avio: redesign ffio_rewind_with_probe_data()
...
This prevents a double free
Fixes CID718285
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 02:08:59 +02:00
Michael Niedermayer
54b2d317ed
ffv1: avoid checking a double for equality
...
if 0.0 != 0.0 a out of array read would occur, equal checks
with floating point may behave in such odd ways, though
this is very unlikely in a real implementation of a compiler
Fixes: CID718936
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 01:51:45 +02:00
Michael Niedermayer
d2a618ab22
af_pan: fix memleak of arg
...
Fixes CID718988
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 01:51:45 +02:00
Michael Niedermayer
f374e9989b
vf_fade: fix memleaks of args
...
Fixes: CID718989
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 01:08:08 +02:00
Mans Rullgard
a77f01c725
configure: use utilities from /usr/xpg4/bin if it exists
...
Solaris defaults to non-standard utilities (grep, sed, ...) with
proper ones being in /usr/xpg4/bin. Prefixing PATH with this
directory when it exists ensures we get correct variants.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-12 23:57:01 +01:00
Mans Rullgard
0daac647af
avstring-test: fix memory leaks
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-12 23:51:12 +01:00
Michael Niedermayer
0f46825d98
ffserver: prevent nb_streams from becoming too large
...
Fixes CID732249
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 00:31:21 +02:00
Michael Niedermayer
c2340831b8
aacsbr: change order of operation to prevent out of array read
...
Fixes CID732250
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 00:31:21 +02:00
Georg Lippitsch
24778c32d8
Fix writing 12 bit DPX
...
The DPX encoder now writes 12 DPX that open correctly (tested with
ImageMagick), and also correspond to the 12 bit sample files at
http://samples.ffmpeg.org/image-samples/dpx_samples.zip
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 00:31:21 +02:00
Georg Lippitsch
05b7315412
Fix DPX decoder
...
Rewrite the DPX decoder to work with provided sample DPXs at
http://samples.ffmpeg.org/image-samples/dpx_samples.zip
The decoder could only decode 8 and 10 bit without alpha correctly,
failing or even crashing at other flavors. This patch aims to fix
these issues, properly decoding all variants of DPX provided in the
referenced DPX sample zip. For 10 and 12 bit, the alpha channel
is ignored, but decoding is still possible.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-13 00:31:21 +02:00
Mans Rullgard
0a7005bebd
rtpdec_xiph: fix function return type
...
parse_packed_headers() returns either zero or a negative error code
so its return type must be signed.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-12 22:21:10 +01:00
Mans Rullgard
366484fff1
smjpeg: fix type of 'ret' variable in smjpeg_read_packet()
...
The 'ret' variable is used for negative error codes so it should
be a signed type.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-12 22:21:10 +01:00
Mans Rullgard
7e76fc528d
mpegvideo: remove write-only variable
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-12 22:21:10 +01:00
Clément Bœsch
cdfa926415
lavf/swf: transform the swf tags define in an enum.
2012-10-12 23:15:21 +02:00
Clément Bœsch
a1d2210deb
lavf/swf: re-align after previous commit.
2012-10-12 23:15:12 +02:00
Clément Bœsch
91fad50f63
lavf/swf: define more tags.
...
Based on swf specs v10, page 271-273.
2012-10-12 23:15:08 +02:00
Clément Bœsch
cd78192d09
lavf/swfdec: return more meaningful error codes.
2012-10-12 23:15:05 +02:00
Michael Niedermayer
5e885275f1
mpeg4videodec: disable frame multithreading for GMC, its not implemented at all
...
This fixes race conditions in decoding MPEG-4 GMC files
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 22:53:22 +02:00
Clément Bœsch
0c40220b9d
lavf/swfdec: fix flushing with compressed swf.
...
We now only return in the middle of the refill in case of read error, so
inflate can be re-called if zlib needs an empty (z.avail_in=0) inflate
call for flushing.
2012-10-12 21:59:06 +02:00
Diego Biurrun
90558e848a
rangecoder: K&R formatting cosmetics
2012-10-12 20:56:54 +02:00
Diego Biurrun
ca411fc1d3
avcodec: Remove broken MMI optimizations
...
The code fails to compile and is broken beyond repair.
2012-10-12 20:56:54 +02:00
Diego Biurrun
bc4620e5d6
Remove libmpeg2 #define remnants
2012-10-12 20:56:54 +02:00
Diego Biurrun
717addecad
Use proper return values in case of missing features
2012-10-12 20:56:54 +02:00
Diego Biurrun
c1ef30a6ba
De-doxygenize some top-level files
2012-10-12 20:56:54 +02:00
Diego Biurrun
9e6ea3cef9
fate: add avstring test
2012-10-12 20:56:54 +02:00
Diego Biurrun
4c66af6141
rangecoder-test: Set error message log level to error, instead of debug
2012-10-12 20:56:54 +02:00
Diego Biurrun
d5c62122a7
Move av_reverse table to libavcodec
...
It is only used in that library.
2012-10-12 20:39:18 +02:00
Diego Biurrun
930c9d4373
avutil: Duplicate ff_log2_tab instead of sharing it across libs
...
The table is so small that the space gain is not worth the
performance overhead of cross-library access.
2012-10-12 20:39:17 +02:00
Michael Niedermayer
b8d64559d5
movenc: fix timescale for timecode track
...
regression since b02493e476
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 20:16:48 +02:00
Diego Biurrun
f6c38c5f4e
avfilter: call x86 init functions under if (ARCH_X86), not if (HAVE_MMX)
2012-10-12 19:58:51 +02:00
rogerdpack
8684e39656
add dshow maintainer
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 19:52:05 +02:00
Michael Niedermayer
3a48e38ad0
motion_est: more complete SAB diamond size check
...
This makes no difference with the current #defines
Fixes CID732255
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 19:33:39 +02:00
Michael Niedermayer
6f557a2e12
caca: fix 10l typo
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 19:05:58 +02:00
Paul B Mahol
a291345b1e
sws: do not use av_pix_fmt_descriptors directly
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-12 16:57:04 +00:00
Paul B Mahol
82eba22667
lavd: do not use av_pix_fmt_descriptors directly
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-12 15:58:37 +00:00
Michael Niedermayer
0d002de4a4
exr: fix twin ;
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 17:58:15 +02:00
Heesuk Jung
e3301459f6
avidec: Use sample size in case incorrect timestamps for aac in AVI (Ticket #1755 )
...
In some case for aac in AVI, avidec extracts wrong PTS value.
(www.ffmpeg.org/trac/ffmpeg/ticket/1755)
I found additional case(ss=4096) and add condition.
Problematic file link : https://docs.google.com/open?id=0B6r7ZfWFIypCOTdZQUtGVEdJUUE
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 17:57:35 +02:00
Paul B Mahol
77e6b085a3
imgutils: do not use av_pix_fmt_descriptors directly
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-12 15:39:50 +00:00
Michael Bradshaw
a41c824c53
Parse DEFINESOUND tags in swf (fix ticket 1638)
...
Signed-off-by: Michael Bradshaw <mbradshaw@sorensonmedia.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 17:37:34 +02:00
Paul B Mahol
a51540d811
lavc: do not use av_pix_fmt_descriptors directly
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-12 15:31:42 +00:00
Michael Niedermayer
27ccc82e1b
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavu,lavd: do not use av_pix_fmt_descriptors directly.
Conflicts:
libavutil/imgutils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 17:21:01 +02:00
Martin Storsjö
5a2cb78219
rtspdec: Set the default port for listen mode, if none is specified
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-12 18:17:24 +03:00
Michael Niedermayer
c80b59f679
tscc2: Fix an out of array access
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-12 18:17:10 +03:00
Michael Niedermayer
2f1b2ff934
rtmpproto: Fix an out of array write
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-12 18:16:59 +03:00
Michael Niedermayer
eae35eadc0
rtspdec: Fix use of uninitialized byte
...
ffurl_read_complete can return 0 as well as negative error codes.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-12 18:16:57 +03:00
Michael Niedermayer
13afee951a
Merge commit '59ee9f78b0cc4fb84ae606fa317d8102ad32a627'
...
* commit '59ee9f78b0cc4fb84ae606fa317d8102ad32a627':
lavfi: do not use av_pix_fmt_descriptors directly.
Conflicts:
libavfilter/buffersrc.c
libavfilter/drawutils.c
libavfilter/filtfmts.c
libavfilter/vf_ass.c
libavfilter/vf_boxblur.c
libavfilter/vf_drawtext.c
libavfilter/vf_lut.c
libavfilter/vf_pad.c
libavfilter/vf_scale.c
libavfilter/vf_showinfo.c
libavfilter/vf_transpose.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 17:04:58 +02:00
Michael Niedermayer
af7dd79a32
Merge commit '50ba57e0ce63d9904269ea0728936a0c79f8bfb5'
...
* commit '50ba57e0ce63d9904269ea0728936a0c79f8bfb5':
lavc: do not use av_pix_fmt_descriptors directly.
Conflicts:
libavcodec/imgconvert.c
libavcodec/libopenjpegdec.c
libavcodec/libopenjpegenc.c
libavcodec/mpegvideo.c
libavcodec/rawdec.c
libavcodec/rawenc.c
libavcodec/tiffenc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 16:48:26 +02:00
Paul B Mahol
3d179edf6d
yop: check return value of avformat_new_stream()
...
Fixes null pointer dereference, fixes CID703729.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-12 14:25:00 +00:00
Sami Pietila
0bf511d579
vp8: reset loopfilter delta values at keyframes.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2012-10-12 07:17:38 -07:00
Michael Niedermayer
a9bd51b1e6
Merge commit '9953ff3cd844eb5f6d8dfce98cad94b78a0fc7dc'
...
* commit '9953ff3cd844eb5f6d8dfce98cad94b78a0fc7dc':
mpegvideo: fix indentation
sws: do not use av_pix_fmt_descriptors directly.
Conflicts:
libavcodec/mpegvideo.c
libswscale/swscale_internal.h
libswscale/swscale_unscaled.c
libswscale/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 15:57:28 +02:00
Michael Niedermayer
a33ed6bc74
Merge commit 'b7f1010c8fce09096057528f7cd29589ea1ae7df'
...
* commit 'b7f1010c8fce09096057528f7cd29589ea1ae7df':
tools: do not use av_pix_fmt_descriptors directly.
pixdesc: add functions for accessing pixel format descriptors.
build: add support for Tru64 (OSF/1)
md5: Allocate a normal private context for the opaque md5 context pointer
Conflicts:
cmdutils.c
doc/APIchanges
ffprobe.c
libavformat/md5enc.c
libavutil/version.h
tools/graph2dot.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 15:34:49 +02:00
Luca Barbato
6d5600e855
avutil: add yuva422p and yuva444p formats
2012-10-12 15:09:51 +02:00
Michael Niedermayer
f391e405df
Merge commit 'e002e3291e6dc7953f843abf56fc14f08f238b21'
...
* commit 'e002e3291e6dc7953f843abf56fc14f08f238b21':
Use the new aes/md5/sha/tree allocation functions
avutil: Add functions for allocating opaque contexts for algorithms
svq3: fix pointer type warning
svq3: replace unsafe pointer casting with intreadwrite macros
parseutils-test: various cleanups
Conflicts:
doc/APIchanges
libavcodec/svq3.c
libavutil/parseutils.c
libavutil/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 14:52:34 +02:00
Michael Niedermayer
d6135a886d
Merge commit '15ba7f6525c0f56f0c8e3e3e0c0c5129de054f41'
...
* commit '15ba7f6525c0f56f0c8e3e3e0c0c5129de054f41':
parseutils: fix const removal warning
prepare 9_beta1 release
Conflicts:
Changelog
RELEASE
libavutil/parseutils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 14:38:04 +02:00
Michael Niedermayer
e335658370
Merge commit '9734b8ba56d05e970c353dfd5baafa43fdb08024'
...
* commit '9734b8ba56d05e970c353dfd5baafa43fdb08024':
Move avutil tables only used in libavcodec to libavcodec.
Conflicts:
libavcodec/mathtables.c
libavutil/intmath.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 14:26:46 +02:00
Michael Niedermayer
43cce41267
Merge commit '0a75d1da23b8659ec49391469bb592da12760077'
...
* commit '0a75d1da23b8659ec49391469bb592da12760077':
options_table: refs option is not snow-only
random_seed: Support using CryptGenRandom on windows
doc: update the faq entry about custom I/O
Conflicts:
doc/faq.texi
libavcodec/options_table.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 14:15:33 +02:00
Paul B Mahol
caa7e24eb1
truemotion2: remove unreachable code
...
Fixes CID610345.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-12 11:54:38 +00:00
Anton Khirnov
22c8cbc0da
lavu,lavd: do not use av_pix_fmt_descriptors directly.
2012-10-12 12:45:39 +02:00
Anton Khirnov
59ee9f78b0
lavfi: do not use av_pix_fmt_descriptors directly.
2012-10-12 12:45:39 +02:00
Anton Khirnov
50ba57e0ce
lavc: do not use av_pix_fmt_descriptors directly.
2012-10-12 12:45:39 +02:00
Anton Khirnov
9953ff3cd8
mpegvideo: fix indentation
2012-10-12 12:45:38 +02:00
Anton Khirnov
b7f1010c8f
tools: do not use av_pix_fmt_descriptors directly.
2012-10-12 12:45:38 +02:00
Anton Khirnov
0a7068fa5d
sws: do not use av_pix_fmt_descriptors directly.
2012-10-12 12:45:38 +02:00
Anton Khirnov
d2fcb356ca
pixdesc: add functions for accessing pixel format descriptors.
...
Make av_pix_fmt_descriptors table static on next major bump.
Making the table public is dangerous, since the caller has no way to
know how large it actually is. It also prevents adding new fields to
AVPixFmtDescriptor without a major bump.
2012-10-12 12:45:25 +02:00
Paul B Mahol
4dcf71aacc
takdec: stop decoding in case of unknown bps
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-12 09:18:58 +00:00
Paul B Mahol
56519d7d14
takdec: s/bits_per_coded_sample/bits_per_raw_sample
...
bits_per_coded_sample should be set from demuxer and
not from decoder.
Prior to this change value set from demuxer would get
overwritten in decoder.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-12 09:07:31 +00:00
Michael Niedermayer
62722ae2d4
nellymoserenc: fix array element ordering
...
Fixes assertion failures in trellis encoder
Fixes valgrind warnings in trellis encoder
Fixes CID732257
Fixes CID732256
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 04:19:38 +02:00
Mans Rullgard
fdd666094d
build: add support for Tru64 (OSF/1)
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-12 02:17:54 +01:00
Michael Niedermayer
927d866a99
tscc2: fix out of array access
...
Fixes CID732260
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 02:26:50 +02:00
Michael Niedermayer
5a75924dfd
rtmpproto: fix out of array write
...
Fixes CID732263
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 02:06:51 +02:00
Michael Niedermayer
e576105d84
motion-test: zero dsp context
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 01:44:35 +02:00
Michael Niedermayer
5e689b65ce
dv: zero dsp before init, this fixes use of uninitialized dct_bits
...
Fixes CID732292
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 01:43:11 +02:00
Michael Niedermayer
e0909ff158
lavc: Fix use of uninitialized field.
...
Fixes CID732297
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 00:22:15 +02:00
Michael Niedermayer
0c6b9b9fe5
rtspdec:read_line: fix use of uninitialized byte
...
Fixes CID732301
Fixes CID723300
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 00:08:28 +02:00
Michael Niedermayer
1b5069aa41
sanm: fix off by 1 error in draw_glyph()
...
This fix changes nothing as nothing passed a so large value
Fixes CID733785
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 00:08:28 +02:00
Michael Niedermayer
59cbedfc3d
update_initial_timestamps: increase pts_buffer size
...
Fixes CID733786
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-12 00:08:28 +02:00
Martin Storsjö
da18e918a4
md5: Allocate a normal private context for the opaque md5 context pointer
...
This avoids having to overestimate the md5 context size, which
isn't known beforehand, allowing us to use the new allocate functions
instead.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-11 23:35:29 +03:00
Martin Storsjö
e002e3291e
Use the new aes/md5/sha/tree allocation functions
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-11 23:35:28 +03:00
Martin Storsjö
9a92aea27b
avutil: Add functions for allocating opaque contexts for algorithms
...
The current API where the plain size is exposed is not of much
use - in most cases it is allocated dynamically anyway.
If allocated e.g. on the stack via an uint8_t array, there's no
guarantee that the struct's members are aligned properly (unless
the array is overallocated and the opaque pointer within it
manually aligned to some unspecified alignment).
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-11 23:35:27 +03:00
Paul B Mahol
3632f35c8e
bethsoftvid: check return value of av_packet_new_side_data()
...
Fixes null pointer dereference, fixes CID733777.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-11 19:40:27 +00:00
Mans Rullgard
fb32f31af7
svq3: fix pointer type warning
...
Fixes:
libavcodec/svq3.c:661:9: warning: passing argument 2 of 'svq3_decode_block' from incompatible pointer type
libavcodec/svq3.c:208:19: note: expected 'DCTELEM *' but argument is of type 'DCTELEM (*)[32]'
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-11 20:40:23 +01:00
Mans Rullgard
366b72f149
svq3: replace unsafe pointer casting with intreadwrite macros
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-11 20:40:23 +01:00
Paul B Mahol
313b40efbd
bmp: unbreak non BMP_RGB compression for v4 and v5
...
Fixes CID733728 & CID733729.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-11 18:05:06 +00:00
Mans Rullgard
15ba7f6525
parseutils: fix const removal warning
...
The const qualifier is still removed although it happens inside
the strtol() function so no warning is generated.
Fixes:
libavutil/parseutils.c:110:11: warning: assignment discards qualifiers from pointer target type
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-11 18:00:27 +01:00
Mans Rullgard
68e360a83c
parseutils-test: various cleanups
...
- make tables static const
- remove useless use of compound literal
- break long lines
- fix a comma/semicolon typo
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-11 18:00:27 +01:00
Clément Bœsch
9ad1ea13e0
lavfi/ebur128: fix typo in condition.
...
Fixes CID733727.
2012-10-11 18:41:07 +02:00
Janne Grunau
e578f8f468
prepare 9_beta1 release
2012-10-11 18:36:40 +02:00
Diego Biurrun
9734b8ba56
Move avutil tables only used in libavcodec to libavcodec.
2012-10-11 18:29:36 +02:00
Michael Niedermayer
26474d1098
random_seed: fix digest size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 18:28:21 +02:00
Michael Niedermayer
7fe5548531
random_seed: fix out of array read
...
Fixes CID733787
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 18:28:21 +02:00
Diego Biurrun
0a75d1da23
options_table: refs option is not snow-only
2012-10-11 18:27:44 +02:00
Michael Niedermayer
adcbb3fd8b
yuv2rgb: fix declared array sizes, so they match actuals.
...
Fixes CID733789, and others
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 18:20:24 +02:00
Martin Storsjö
1093383d6c
random_seed: Support using CryptGenRandom on windows
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-11 18:49:34 +03:00
Michael Niedermayer
b96d1859d5
jpeglsenc: favor av_freep() for saftey over av_free() when a variable is still accessible afterwards
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 17:45:36 +02:00
Michael Niedermayer
34bbab432c
jpeglsnec: fix memleak of state in error case
...
Fixes CID733794
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 17:44:58 +02:00
Michael Niedermayer
104b1d9e10
libvpxenc: fix memleak on error path
...
Fixes CID733795
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 17:41:36 +02:00
Michael Niedermayer
c9454cb643
av_tempfile: fix leak in error case
...
Fixes CID733796 Part2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 17:09:57 +02:00
Michael Niedermayer
229ccce6cc
libxvid_rc: fix leaks in ff_xvid_rate_control_init()
...
Fixes CID733796 Part1
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 17:08:33 +02:00
Michael Niedermayer
4b20b21b8d
tiff: fix leak on error return in doubles2str()
...
Fixes CID733797
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 16:51:08 +02:00
Michael Niedermayer
9ba2484ece
af_aresample: fix leak on alloc failure
...
Fixes CID733798
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 16:48:25 +02:00
Michael Niedermayer
7457da3698
drawtext: fix leak with timecodes
...
Fixes CID733799
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 16:45:50 +02:00
Michael Niedermayer
bb35864759
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
mlpdsp: adding missing file
dsputil: split out mlp dsp function
sh4: add required #include, fix build
averror: make error values proper negative values
build: do not use LIB as variable name
build: whitespace cosmetics
build: remove single-use variable THIS_LIB
Conflicts:
libavutil/error.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 15:55:41 +02:00
Michael Niedermayer
526cb36e4b
Merge commit '4436f25a1682ada3f7226cb6fadf429946933161'
...
* commit '4436f25a1682ada3f7226cb6fadf429946933161':
build: remove references to unused EXTRAOBJS variable
lavfi: convert input/ouput list compound literals to named objects
fate: add h263 obmc vsynth tests
avconv: remove bogus warning when using avconv -h without parameter
averror: explicitly define AVERROR_* values
flashsv: propagate inflateReset() errors
indeo4/5: remove constant parameter num_bands from wavelet recomposition
mxfdec: return error if no segments are available in mxf_get_sorted_table_segments
Double motion vector range for HPEL interlaced picture in proper place
Conflicts:
libavcodec/v210dec.h
libavfilter/af_aformat.c
libavfilter/af_amix.c
libavfilter/af_asyncts.c
libavfilter/af_channelmap.c
libavfilter/af_join.c
libavfilter/asrc_anullsrc.c
libavfilter/buffersrc.c
libavfilter/f_setpts.c
libavfilter/f_settb.c
libavfilter/fifo.c
libavfilter/src_movie.c
libavfilter/vf_ass.c
libavfilter/vf_blackframe.c
libavfilter/vf_boxblur.c
libavfilter/vf_delogo.c
libavfilter/vf_drawbox.c
libavfilter/vf_drawtext.c
libavfilter/vf_fade.c
libavfilter/vf_fieldorder.c
libavfilter/vf_fps.c
libavfilter/vf_hflip.c
libavfilter/vf_overlay.c
libavfilter/vf_pad.c
libavfilter/vf_select.c
libavfilter/vf_transpose.c
libavfilter/vf_yadif.c
libavfilter/vsrc_testsrc.c
libavformat/mxfdec.c
libavutil/error.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 15:46:48 +02:00
Luca Barbato
26b3fde6a7
doc: update the faq entry about custom I/O
...
URLProtocols are private and custom AVIOContexts are a simple and
easier solution for most of the situations.
2012-10-11 15:12:30 +02:00
Michael Niedermayer
a75dd13b1b
Merge commit 'eb657ecefdeb8b2ed9bfb55d3c2c9e0f568486bf'
...
* commit 'eb657ecefdeb8b2ed9bfb55d3c2c9e0f568486bf':
vc1dec: Set opposite to the correct value for 1REF field pictures
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 14:36:36 +02:00
Michael Niedermayer
ce27c9eb25
Merge commit '7cc3c4e1d4179aeabcd891090e31ee5e5bfd9692'
...
* commit '7cc3c4e1d4179aeabcd891090e31ee5e5bfd9692':
vc1dec: Invoke edge emulation regardless of MV precision for 1-MV chroma
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 14:32:41 +02:00
Michael Niedermayer
b6c3487e7f
Merge commit '88058d9a994f42e4e9ed4e67baf696bbfe53128c'
...
* commit '88058d9a994f42e4e9ed4e67baf696bbfe53128c':
vc1dec: Set chroma reference field from REFFIELD for 1REF field pictures
segment: support applehttp style list
Conflicts:
libavformat/segment.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 14:28:18 +02:00
Michael Niedermayer
de31814ab0
Merge commit 'b522000e9b2ca36fe5b2751096b9a5f5ed8f87e6'
...
* commit 'b522000e9b2ca36fe5b2751096b9a5f5ed8f87e6':
avio: introduce avio_closep
mpegtsenc: set muxing type notification to verbose
vc1dec: Use correct spelling of "opposite"
a64multienc: change mc_frame_counter to unsigned
arm: call arm-specific rv34dsp init functions under if (ARCH_ARM)
svq1: Drop a bunch of useless parentheses
parseutils-test: do not print numerical error codes
svq1: K&R formatting cosmetics
Conflicts:
doc/APIchanges
libavcodec/svq1dec.c
libavcodec/svq1enc.c
libavformat/version.h
libavutil/parseutils.c
tests/ref/fate/parseutils
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 14:03:12 +02:00
Luca Barbato
1ec6293086
mlpdsp: adding missing file
2012-10-11 12:34:36 +02:00
Luca Barbato
2d6caade22
dsputil: split out mlp dsp function
2012-10-11 12:01:08 +02:00
Mans Rullgard
25dc79bc14
sh4: add required #include, fix build
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-11 10:55:26 +01:00
Stefano Sabatini
c4aaff8c02
Revert "configure: link flite against libasound"
...
This reverts commit 396648cc6a .
The commit made impossible to build against libflite if libasound is not
available (e.g. on Windows). Thus remove the -lasound flag. In case of
libflite static linking the workaround is to enable
--extra-ldflags=-lasound (or disable the ALSA output device in libflite).
2012-10-11 11:19:18 +02:00
Stefano Sabatini
396648cc6a
configure: link flite against libasound
...
libflite depends on libasound. Fix a linking failure when linking against
a static version of libflite.
Reported-by: Vladimir Kraljevic
2012-10-11 11:08:48 +02:00
Paul B Mahol
8cd1c0febe
pcx: convert to bytestream2 API
...
Protects against overreads in input buffer.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-11 08:06:45 +00:00
Michael Niedermayer
492b8ec4c5
av_opt_set_from_string: fix memleak
...
Fixes CID733801
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 04:42:52 +02:00
Michael Niedermayer
7df9f595c9
swri_resample_init: unsupported sample formats are an internal error.
...
This condition cannot happen.
Fixes CID733802
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 04:36:23 +02:00
Michael Niedermayer
e47ab0b2c9
ffmpeg_opt: dont fail for sameq/same_quant.
...
Instead print a warning.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 04:00:16 +02:00
Michael Niedermayer
4334ba043e
ffprobe: fix use of uninitialized pointer in av_strtok()
...
Fixes CID733837
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 03:37:43 +02:00
Michael Niedermayer
bdcff5af7f
af_volumedetect: fix use of uninitilaized variable in case of planar audio.
...
Fixes: CID733841
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 03:12:40 +02:00
Michael Niedermayer
989c91b504
asrc_aevalsrc: Fix use of uninitialized pointer inside av_strtok()
...
Fixes CID733842
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 03:00:34 +02:00
Michael Niedermayer
4e4ae2f82c
sha: change loop condition to be tighter.
...
This makes no change to the way the code functions, but should make
it easier for static analyzers to see the valid range for i
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 02:42:18 +02:00
Michael Niedermayer
fac1ccbda1
swscale-test: fix freeing of uninitialized variable
...
Fixes: CID733844
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 02:21:28 +02:00
Matthieu Bouron
e782d8728f
fate: add vf_idet filter to lavfi regression tests
...
This test only make sure that the idet filter does not crash.
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 02:21:28 +02:00
Michael Niedermayer
4d4f431ab7
vf_idet: zero pointers after freeing references
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 02:21:28 +02:00
Michael Niedermayer
cac749a551
vf_idet: fix free after use
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-11 02:21:28 +02:00
Janne Grunau
1a2c7880aa
averror: make error values proper negative values
...
Fixes stupid mistake in 25227c3a78 .
2012-10-11 01:07:57 +02:00
Mans Rullgard
4436f25a16
build: remove references to unused EXTRAOBJS variable
...
This was part of a ghastly hack that is long since gone.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-10 23:46:31 +01:00
Mans Rullgard
effe443877
build: do not use LIB as variable name
...
The Microsoft linker uses the LIB environment variable which
clashes with a make variable of the same name.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-10 23:46:31 +01:00
Mans Rullgard
1c7428e655
build: whitespace cosmetics
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-10 23:46:31 +01:00
Mans Rullgard
e5c6e9a6f2
build: remove single-use variable THIS_LIB
...
Replace the single use of THIS_LIB with its value.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-10 23:46:31 +01:00
Carl Eugen Hoyos
1a104bf641
Fix broken timestamps for some mp3 in avi samples.
...
Mostly based on 73ad355 by Michael Niedermayer.
Fixes ticket #606 .
2012-10-10 23:59:43 +02:00
Mans Rullgard
568c70e79e
lavfi: convert input/ouput list compound literals to named objects
...
A number of compilers, for example those from TI and IBM, choke on
these initialisers. The current style is also quite ugly.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-10 22:26:12 +01:00
Michael Niedermayer
317505b566
lavf: do not prematurely accept a format with low score in init_input()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-10 21:41:20 +02:00
Michael Niedermayer
b47396b614
img2dec: detect .raw files only with a low score as img2
...
They can be many other things and this otherwise breaks probing of some .raw files.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-10 21:40:03 +02:00
Michael Niedermayer
94f5470a20
lavf: add a AVPROBE_SCORE_RETRY instead of using hardcoded values.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-10 21:39:19 +02:00
Janne Grunau
b404c66056
fate: add h263 obmc vsynth tests
2012-10-10 21:24:32 +02:00
Janne Grunau
8d09d39a4b
avconv: remove bogus warning when using avconv -h without parameter
2012-10-10 21:24:32 +02:00
Janne Grunau
25227c3a78
averror: explicitly define AVERROR_* values
2012-10-10 21:24:32 +02:00
Janne Grunau
c466eb1746
flashsv: propagate inflateReset() errors
...
Fixes CID717493.
2012-10-10 21:24:32 +02:00
Janne Grunau
6d556e8327
indeo4/5: remove constant parameter num_bands from wavelet recomposition
...
Fixes bogus uninitialized value compiler and coverity warnings.
2012-10-10 21:24:32 +02:00
Janne Grunau
bd141f5ec9
mxfdec: return error if no segments are available in mxf_get_sorted_table_segments
...
Fixes CID732275.
2012-10-10 21:24:32 +02:00
Mashiat Sarker Shakkhar
35a35d49d2
Double motion vector range for HPEL interlaced picture in proper place
...
The existing code is not in the right place and it should cover both
interlaced frame and field pictures.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-10-10 14:56:02 -04:00
Mashiat Sarker Shakkhar
eb657ecefd
vc1dec: Set opposite to the correct value for 1REF field pictures
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-10-10 14:55:38 -04:00
Mashiat Sarker Shakkhar
7cc3c4e1d4
vc1dec: Invoke edge emulation regardless of MV precision for 1-MV chroma
...
This is required due to the way VC-1 handles chroma pull-back which may end
up causing negative chroma MV for zero luma MV. Edge emulation needs to be
invoked in such cases.
This only affects vertical component of chroma motion vector.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-10-10 14:54:19 -04:00
Mashiat Sarker Shakkhar
88058d9a99
vc1dec: Set chroma reference field from REFFIELD for 1REF field pictures
...
Interlaced field pictures can have one or two reference pictures, signaled
by NUMREF syntax element. For single reference pictures, reference picture
is determined by REFFIELD syntax element.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-10-10 14:50:07 -04:00
Luca Barbato
b522000e9b
avio: introduce avio_closep
2012-10-10 18:56:55 +02:00
Luca Barbato
26db9100b2
segment: support applehttp style list
2012-10-10 18:56:55 +02:00
Luca Barbato
82569b01a1
mpegtsenc: set muxing type notification to verbose
2012-10-10 18:56:54 +02:00
Michael Niedermayer
9586db6ae5
lavc: docs: the field_order is set by the demuxer and not libavcodec for decoding
...
This makes the documentation match the implementation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-10 18:50:56 +02:00
Michael Niedermayer
92c3173c84
qt-faststart: fix printf argument type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-10 18:50:56 +02:00
Paul B Mahol
2c5b1a2a6a
txd: remove duplicated header inclusion
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-10 16:48:13 +00:00
Paul B Mahol
ee109c6bc2
dtshd: fix seeking
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-10 15:50:32 +00:00
Michael Niedermayer
73ad355d23
avidec: fix 10l typo
...
found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-10 17:06:12 +02:00
Michael Niedermayer
229e33a2b6
avidec: override sample size of 1024 for VBR AAC
...
Fixes Ticket1755
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-10 16:48:58 +02:00
Matthieu Bouron
f94edfe484
vf_idet: remove some unnecessary statement and unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-10 16:48:58 +02:00
Mashiat Sarker Shakkhar
7fb35ee931
vc1dec: Use correct spelling of "opposite"
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-10-10 16:28:31 +02:00
Janne Grunau
706a559b30
a64multienc: change mc_frame_counter to unsigned
...
GCC cannot proof that c->mc_frame_counter is always >- 0, changing the
type from int to unsigned fixes following warning:
libavcodec/a64multienc.c: In function ‘a64multi_encode_frame’:
libavcodec/a64multienc.c:342:17: warning: ‘buf’ may be used uninitialized in this function[-Wuninitialized]
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2012-10-10 15:33:06 +02:00
Jean-Baptiste Kempf
507dce2536
arm: call arm-specific rv34dsp init functions under if (ARCH_ARM)
...
Assign NEON specific function pointers after runtime check via
av_get_cpu_flags().
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2012-10-10 15:28:50 +02:00
Diego Biurrun
63a46c6101
svq1: Drop a bunch of useless parentheses
2012-10-10 15:10:53 +02:00
Paul B Mahol
03cc52a07d
takdec: fix seeking
...
The previous approach was just wrong.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-10 13:09:26 +00:00
Mans Rullgard
41e46a5fba
parseutils-test: do not print numerical error codes
...
The error codes differ between systems so printing the value makes
the fate test fail on some systems.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-10 13:33:45 +01:00
Diego Biurrun
ada12f8366
svq1: K&R formatting cosmetics
2012-10-10 14:14:22 +02:00
Michael Niedermayer
c6d39fb3c5
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
build: sanitize linking of tools and test programs
fate: Refactor setting of environment variables for groups of tests
Conflicts:
tests/fate/audio.mak
tests/fate/real.mak
tests/fate/voice.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-10 14:13:51 +02:00
Michael Niedermayer
cd6f5c4895
Merge commit '6d0beefbf6ee6dbf8efb522a9307e54c6ed5f702'
...
* commit '6d0beefbf6ee6dbf8efb522a9307e54c6ed5f702':
swscale: Do not make ff_ symbols globally visible.
rtspdec: use av_strlcpy for writing into fixed size buffer
g722enc: fix size argument in memset
http: use av_strlcpy instead of strcpy() without size checks
avfilter: correct memcpy size avfilter_copy_buf_props()
lavc: split asv12 encoder/decoder
Conflicts:
libavcodec/asvdec.c
libavfilter/buffer.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-10 14:07:05 +02:00
Michael Niedermayer
b7ebb49d03
Merge commit 'fb722a900fc5cc9e003b9fef25b27ed7fc5547a2'
...
* commit 'fb722a900fc5cc9e003b9fef25b27ed7fc5547a2':
avconv: remove -same_quant
Conflicts:
Changelog
doc/faq.texi
ffmpeg.c
ffmpeg.h
ffmpeg_opt.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-10 13:51:07 +02:00
Paul B Mahol
eb71f027f0
dtshd: remove redundant/wrong avio_tell()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-10 11:25:36 +00:00
Paul B Mahol
1470c8a9a3
takdec: remove redundant/wrong avio_tell()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-10 11:25:36 +00:00
Michael Niedermayer
50b5477616
Merge commit 'b94e4acb4874843e914fd3cb8e089aff0756bb4a'
...
* commit 'b94e4acb4874843e914fd3cb8e089aff0756bb4a':
cmdutils_read_file: increment *size after writing the trailing \0
af_resample: unref out_buf when avresample_convert returns 0
af_amix: prevent memory leak on error path
vc1dec: prevent memory leak in error path
vc1dec: prevent memory leak on av_realloc error
af_channelmap: free old extended_data on reallocation
avconv: simplify memory allocation in copy_chapters
matroskaenc: check cue point validity before reallocation
swfenc: error out for more than 1 audio or video stream
build: link test programs only against static libs
Conflicts:
ffmpeg_opt.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-10 13:18:05 +02:00
Michael Niedermayer
eadba3e94d
Merge commit 'cbcd497f384f0f8ef3f76f85b29b644b900d6b9f'
...
* commit 'cbcd497f384f0f8ef3f76f85b29b644b900d6b9f':
adxdec: use planar sample format
adpcmdec: use planar sample format for adpcm_thp
adpcmdec: use planar sample format for adpcm_ea_xas
adpcmdec: use planar sample format for adpcm_ea_r1/r2/r3
adpcmdec: use planar sample format for adpcm_xa
adpcmdec: use planar sample format for adpcm_ima_ws for vqa version 3
adpcmdec: use planar sample format for adpcm_4xm
adpcmdec: use planar sample format for adpcm_ima_wav
adpcmdec: use planar sample format for adpcm_ima_qt
pcmdec: use planar sample format for pcm_lxf
mace: use planar sample format
atrac1: use planar sample format
build: non-x86: Only compile mpegvideo optimizations when necessary
rtpdec_mpeg4: au_headers is a single array, simple av_free is enough
avcodec: free extended_data instead address of it
fate: Add tests of the ff_make_absolute_url function
url: Handle relative urls starting with two slashes
url: Handle relative urls being just a new query string
url: Don't treat slashes in query parameters as directory separators
Conflicts:
libavcodec/adxdec.c
libavcodec/mips/Makefile
libavcodec/pcm.c
libavcodec/utils.c
libavformat/Makefile
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-10 13:01:27 +02:00
Mans Rullgard
4b895cb294
build: sanitize linking of tools and test programs
...
This makes sure proper linker arguments are used for the tools and
test programs when shared libraries are enabled. The tools are
linked using the usual -l flag while for test programs the full
name of the static library is used.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-10 11:24:09 +01:00
Diego Biurrun
096a5d76a5
fate: Refactor setting of environment variables for groups of tests
2012-10-10 10:49:51 +02:00
Paul B Mahol
b4e516e30e
pcx: use meaningful return values
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-10 07:49:03 +00:00
Michael Niedermayer
25f44b041c
x86/dsputil_mmx: change assert() to av_assert()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-10 04:49:41 +02:00
Diego Biurrun
6d0beefbf6
swscale: Do not make ff_ symbols globally visible.
2012-10-10 02:08:01 +02:00
Duncan Salerno
f3f35f7430
crypto should allow passing of options to the underlying protocol via the url_open2 interface
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 22:52:25 +02:00
Clément Bœsch
6ac5e3fe9d
lavfi/silencedetect: add av_opt_free() call.
...
This avoids a memleak with noise_str.
2012-10-09 22:37:29 +02:00
Duncan Salerno
bd2f8e8f79
Fix second use of AVOptions in HLS
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 22:12:34 +02:00
Janne Grunau
d5ef9354ce
rtspdec: use av_strlcpy for writing into fixed size buffer
...
Fixes CID231347.
2012-10-09 21:05:15 +02:00
Janne Grunau
f1de23faaa
g722enc: fix size argument in memset
...
Fixes CID700725.
2012-10-09 21:05:15 +02:00
Janne Grunau
4a7c0c4555
http: use av_strlcpy instead of strcpy() without size checks
...
Fixes CID700730.
2012-10-09 21:05:14 +02:00
Janne Grunau
79e6e8eba2
avfilter: correct memcpy size avfilter_copy_buf_props()
...
Does not make a difference in this case since sizeof(uint8_t*) ==
sizeof(uint8_t**). Fixes CID703814.
2012-10-09 21:05:14 +02:00
Anton Khirnov
233a5a807e
lavc: split asv12 encoder/decoder
2012-10-09 20:32:35 +02:00
Anton Khirnov
fb722a900f
avconv: remove -same_quant
...
It has not worked for anything other than fringe codecs (asv1/2, mdec,
mjpeg[b]) since about 2003 and nobody ever noticed or complained. This
sufficiently proves that there are no users of this option who have a
clue of what they are doing, so it is completely useless.
2012-10-09 20:32:34 +02:00
Janne Grunau
b94e4acb48
cmdutils_read_file: increment *size after writing the trailing \0
...
Fixes CID732166.
2012-10-09 18:43:30 +02:00
Janne Grunau
ac9a89562a
af_resample: unref out_buf when avresample_convert returns 0
...
Fixes CID732273.
2012-10-09 18:43:30 +02:00
Andrey Utkin
b6f435fbc8
http: add 'timeout' AVOption
...
This option is passed though to underlying tcp protocol context
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 17:47:14 +02:00
Andrey Utkin
2e009c6042
tcp: accept params through avio_open2() options
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 17:24:55 +02:00
Andrey Utkin
949acefc11
tcp: use timeout option consistently
...
Default _connection_ timeout value 5 seconds is left as i/o timeout also
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 17:18:43 +02:00
Andrey Utkin
d2b18c8f5b
Introduce ff_network_wait_fd_timeout()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 17:17:05 +02:00
KO Myung-Hun
3a45688abc
lavc: include os2threads.h in vp8.h if HAVE_OS2THREADS is enabled
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 16:55:36 +02:00
Anuj Mittal
8d2e0e2c70
Check for resync marker based on vop coding type- vop_fcode_forward and vop_fcode_backward L
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 16:48:51 +02:00
Anuj Mittal
ce19aec15b
Check resync marker only when enabled.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 16:48:43 +02:00
Janne Grunau
8501c09868
af_amix: prevent memory leak on error path
...
Fixes CID732272.
2012-10-09 16:15:15 +02:00
Janne Grunau
6f8ef5320f
vc1dec: prevent memory leak in error path
...
Fixes CID732271.
2012-10-09 16:09:41 +02:00
Janne Grunau
714f5ab597
vc1dec: prevent memory leak on av_realloc error
2012-10-09 16:07:12 +02:00
Janne Grunau
1afd7a118f
af_channelmap: free old extended_data on reallocation
...
Prevents writes to freed memory and the leak of the old extended data.
Fixes CID732303.
2012-10-09 15:41:24 +02:00
Janne Grunau
18ff4d2020
avconv: simplify memory allocation in copy_chapters
...
Make just a single reallocation per call instead of one reallocation
per copied chapters. This fixes possible memory leaks on realloc
failures. Also correct the allocation since it needs multiples of
sizeof(AVChapter*) and not sizeof(AVChapter).
Fixes CID700633 and CID700719.
2012-10-09 15:39:05 +02:00
Janne Grunau
4ffbe3f3a5
matroskaenc: check cue point validity before reallocation
...
Prevents memory leak and possible access to freed memory.
Fixes CID605744.
2012-10-09 15:39:05 +02:00
Janne Grunau
53e122dd4a
swfenc: error out for more than 1 audio or video stream
...
Prevents CID602000.
2012-10-09 15:39:05 +02:00
Mans Rullgard
0fb3b24ada
build: link test programs only against static libs
...
The test programs use internal symbols so cannot be linked against the
shared libs. Linking against both shared and static is pointless and
might do something strange depending on the linker. This changes the
dependencies so the test programs are linked only against the static
library for the component they belong to.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-09 14:16:21 +01:00
Justin Ruggles
cbcd497f38
adxdec: use planar sample format
2012-10-09 09:03:52 -04:00
Justin Ruggles
4ebd74cec7
adpcmdec: use planar sample format for adpcm_thp
2012-10-09 09:03:52 -04:00
Justin Ruggles
327cdb04e3
adpcmdec: use planar sample format for adpcm_ea_xas
2012-10-09 09:03:52 -04:00
Justin Ruggles
da9620e8e5
adpcmdec: use planar sample format for adpcm_ea_r1/r2/r3
2012-10-09 09:03:52 -04:00
Justin Ruggles
d2b6ae02aa
adpcmdec: use planar sample format for adpcm_xa
2012-10-09 09:03:52 -04:00
Justin Ruggles
8b854283c3
adpcmdec: use planar sample format for adpcm_ima_ws for vqa version 3
2012-10-09 09:03:52 -04:00
Justin Ruggles
4356d66d78
adpcmdec: use planar sample format for adpcm_4xm
2012-10-09 09:03:52 -04:00
Justin Ruggles
1b9ac72908
adpcmdec: use planar sample format for adpcm_ima_wav
2012-10-09 09:03:52 -04:00
Justin Ruggles
176db0b892
adpcmdec: use planar sample format for adpcm_ima_qt
2012-10-09 09:03:52 -04:00
Justin Ruggles
7e5f045039
pcmdec: use planar sample format for pcm_lxf
2012-10-09 09:03:51 -04:00
Justin Ruggles
c1a9cfd1fe
mace: use planar sample format
2012-10-09 09:03:51 -04:00
Justin Ruggles
23d53c5473
atrac1: use planar sample format
2012-10-09 09:03:51 -04:00
Diego Biurrun
ac56ff9cc9
build: non-x86: Only compile mpegvideo optimizations when necessary
2012-10-09 14:45:59 +02:00
Janne Grunau
8dd0650fe6
rtpdec_mpeg4: au_headers is a single array, simple av_free is enough
...
Fixes CID700204.
2012-10-09 14:24:36 +02:00
Janne Grunau
3fbda309e5
avcodec: free extended_data instead address of it
...
Fixes CID732173.
2012-10-09 14:04:46 +02:00
Martin Storsjö
7bc433b36d
fate: Add tests of the ff_make_absolute_url function
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-09 14:16:34 +03:00
Duncan Salerno
33893e6abc
url: Handle relative urls starting with two slashes
...
This is defined by RFC 3986 section 5.4.1 to be handled this way.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-09 14:16:33 +03:00
Duncan Salerno
eea003814c
url: Handle relative urls being just a new query string
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-09 14:16:32 +03:00
Duncan Salerno
a6363e3d89
url: Don't treat slashes in query parameters as directory separators
...
Strip off query parameters from the original url before
applying the new relative path.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-09 14:16:31 +03:00
Michael Niedermayer
ef9fe5bedd
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
mingw/cygwin: Stop adding -fno-common to gcc CFLAGS
Restructure av_log_missing_feature message
rtp: Support packetization/depacketization of opus
file: Set the return value type for lseek to int64_t.
ppc: fix Altivec build with old compilers
build: add LTO support for PGI compiler
build: add -Mdse to PGI optimisation flags
rtpenc_vp8: Update the packetizer to the latest spec version
rtpdec_vp8: Make the depacketizer implement the latest spec draft
doc: allow building with old texi2html versions
avutil: skip old_pix_fmts.h since it is just a list
Conflicts:
libavcodec/aacdec.c
libavcodec/h264.c
libavcodec/ppc/fmtconvert_altivec.c
libavcodec/utils.c
libavformat/file.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 13:06:04 +02:00
Diego Biurrun
a75b9a1804
mingw/cygwin: Stop adding -fno-common to gcc CFLAGS
...
This was done to work around toolchain bugs that have long been fixed.
2012-10-09 11:39:26 +02:00
Diego Biurrun
f75f4194d1
Restructure av_log_missing_feature message
...
Some invocations include a verb in the log message, others do not. Yet
av_log_missing_feature expects callers to provide a verb. Change the
function to include a verb instead and update the callers accordingly.
The result is a more natural function API and correct English in the
function invocations.
2012-10-09 11:39:26 +02:00
Paul B Mahol
238e904df3
DTS-HD demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-09 08:59:09 +00:00
Martin Storsjö
c136a813d7
rtp: Support packetization/depacketization of opus
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-09 11:57:11 +03:00
Paul B Mahol
3a2d3df0e0
fate-lossless-tak: remove unneeded -f s16le
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-09 08:48:36 +00:00
Yusuke Nakamura
e04826c34e
file: Set the return value type for lseek to int64_t.
...
This fixes a regression in 4ed5ac5 .
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-09 11:27:12 +03:00
Carl Eugen Hoyos
61a9f099b7
Write 32bit palette to Targa files.
...
Current ImageMagick fails to read such files,
therefore only write the 32bit palette if the
palette actually contains any transparency
information.
2012-10-09 10:13:14 +02:00
Michael Niedermayer
1e83e6ad7a
ra144: fix code with ftrapv.
...
A better solution is welcome!
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 06:02:34 +02:00
Michael Niedermayer
03f5043f5d
eval: Fix eval test with ftrapv
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 06:02:34 +02:00
Michael Niedermayer
e73bac484f
configure: add support to nicely enable ftrapv
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 06:02:34 +02:00
Bobby Bingham
b56f94cc36
targa: cosmetics - add some whitespace
...
Signed-off-by: Bobby Bingham <uhmmmm@gmail.com >
2012-10-08 22:49:23 -05:00
Bobby Bingham
50787fe350
targa: remove unused context members
...
Signed-off-by: Bobby Bingham <uhmmmm@gmail.com >
2012-10-08 22:47:58 -05:00
Bobby Bingham
c2eec3df89
targa: support 2-way and 4-way interleaved files
...
Fixes ticket #701
Signed-off-by: Bobby Bingham <uhmmmm@gmail.com >
2012-10-08 22:47:57 -05:00
Bobby Bingham
3d9cdfdce7
targa: use named constants for flag values
...
Signed-off-by: Bobby Bingham <uhmmmm@gmail.com >
2012-10-08 22:47:57 -05:00
Michael Niedermayer
d07940b76d
motion_est: switch asserts to av_asserts
...
note, the asserts where enabled by default before this
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 05:06:39 +02:00
Michael Niedermayer
72c2d8a346
dsputil: convert asserts to av_asserts
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 04:07:30 +02:00
Michael Niedermayer
8da7907a4a
adpcmenc: switch to av_assert()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 04:00:55 +02:00
Carl Eugen Hoyos
b49d94e4f2
Support decoding of targa files with 32bit palette.
2012-10-09 01:58:48 +02:00
Mans Rullgard
f79364b2c3
ppc: fix Altivec build with old compilers
...
The vec_splat() intrinsic requires a constant argument for the
element number, and the code relies on the compiler unrolling
the loop to provide this. Manually unrolling the loop avoids
this reliance and works with all compilers.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-08 23:14:51 +01:00
Tim Nicholson
a02762995b
movenc.c: Force correct value for "Samples per packet" for pcm audio
...
Apple spec is for it to always be "1" for uncompressed audio.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-09 00:01:09 +02:00
Mans Rullgard
643933f51d
build: add LTO support for PGI compiler
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-08 22:30:41 +01:00
Mans Rullgard
8f23907f3e
build: add -Mdse to PGI optimisation flags
...
Enable dead store elimination. The last few releases work no worse
with this flag than without. Older versions failed to build some
source files when using this flag.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-08 22:30:41 +01:00
Martin Storsjö
c9b10cc4db
rtpenc_vp8: Update the packetizer to the latest spec version
...
Tested to work with the gstreamer depacketizer.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-08 23:55:53 +03:00
Martin Storsjö
66d652cbf3
rtpdec_vp8: Make the depacketizer implement the latest spec draft
...
Not all details are implemented, but it's enough for proper
playback as long as there is no packet loss.
Tested to work with the packetizer in gstreamer (which although
uses a different codec name, to clarify that it is still a spec
draft).
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-08 23:55:52 +03:00
Michael Niedermayer
52dc18d414
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
x86: vc1: call ff_vc1dsp_init_x86() under if (ARCH_X86)
x86: cavs: call ff_cavsdsp_init_x86() under if (ARCH_X86)
x86: call most of the x86 dsp init functions under if (ARCH_X86)
doc: support the new website layout
doc: remove a warning from filters.texi
doc: initial nut documentation
segment: drop global headers setting
lavu: fix typo in Makefile
Conflicts:
doc/Makefile
doc/filters.texi
doc/t2h.init
libavcodec/fmtconvert.c
libavcodec/proresdsp.c
libavcodec/x86/Makefile
libavcodec/x86/vc1dsp_mmx.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-08 21:46:34 +02:00
Mans Rullgard
27a310e381
doc: allow building with old texi2html versions
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-08 20:08:51 +01:00
Michael Niedermayer
ac627b3d38
Merge commit '716d413c13981da15323c7a3821860536eefdbbb'
...
* commit '716d413c13981da15323c7a3821860536eefdbbb':
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
Conflicts:
doc/examples/muxing.c
ffmpeg.h
ffmpeg_filter.c
ffmpeg_opt.c
ffplay.c
ffprobe.c
libavcodec/8bps.c
libavcodec/aasc.c
libavcodec/aura.c
libavcodec/avcodec.h
libavcodec/avs.c
libavcodec/bfi.c
libavcodec/bmp.c
libavcodec/bmpenc.c
libavcodec/c93.c
libavcodec/cscd.c
libavcodec/cyuv.c
libavcodec/dpx.c
libavcodec/dpxenc.c
libavcodec/eatgv.c
libavcodec/escape124.c
libavcodec/ffv1.c
libavcodec/flashsv.c
libavcodec/fraps.c
libavcodec/h264.c
libavcodec/huffyuv.c
libavcodec/iff.c
libavcodec/imgconvert.c
libavcodec/indeo3.c
libavcodec/kmvc.c
libavcodec/libopenjpegdec.c
libavcodec/libopenjpegenc.c
libavcodec/libx264.c
libavcodec/ljpegenc.c
libavcodec/mjpegdec.c
libavcodec/mjpegenc.c
libavcodec/motionpixels.c
libavcodec/mpeg12.c
libavcodec/mpeg12enc.c
libavcodec/mpeg4videodec.c
libavcodec/mpegvideo_enc.c
libavcodec/pamenc.c
libavcodec/pcxenc.c
libavcodec/pgssubdec.c
libavcodec/pngdec.c
libavcodec/pngenc.c
libavcodec/pnm.c
libavcodec/pnmdec.c
libavcodec/pnmenc.c
libavcodec/ptx.c
libavcodec/qdrw.c
libavcodec/qpeg.c
libavcodec/qtrleenc.c
libavcodec/raw.c
libavcodec/rawdec.c
libavcodec/rl2.c
libavcodec/sgidec.c
libavcodec/sgienc.c
libavcodec/snowdec.c
libavcodec/snowenc.c
libavcodec/sunrast.c
libavcodec/targa.c
libavcodec/targaenc.c
libavcodec/tiff.c
libavcodec/tiffenc.c
libavcodec/tmv.c
libavcodec/truemotion2.c
libavcodec/utils.c
libavcodec/vb.c
libavcodec/vp3.c
libavcodec/wnv1.c
libavcodec/xl.c
libavcodec/xwddec.c
libavcodec/xwdenc.c
libavcodec/yop.c
libavdevice/v4l2.c
libavdevice/x11grab.c
libavfilter/avfilter.c
libavfilter/avfilter.h
libavfilter/buffersrc.c
libavfilter/drawutils.c
libavfilter/formats.c
libavfilter/src_movie.c
libavfilter/vf_ass.c
libavfilter/vf_drawtext.c
libavfilter/vf_fade.c
libavfilter/vf_format.c
libavfilter/vf_hflip.c
libavfilter/vf_lut.c
libavfilter/vf_overlay.c
libavfilter/vf_pad.c
libavfilter/vf_scale.c
libavfilter/vf_transpose.c
libavfilter/vf_yadif.c
libavfilter/video.c
libavfilter/vsrc_testsrc.c
libavformat/movenc.c
libavformat/mxf.h
libavformat/utils.c
libavformat/yuv4mpeg.c
libavutil/imgutils.c
libavutil/pixdesc.c
libswscale/input.c
libswscale/output.c
libswscale/swscale_internal.h
libswscale/swscale_unscaled.c
libswscale/utils.c
libswscale/x86/swscale_template.c
libswscale/x86/yuv2rgb.c
libswscale/x86/yuv2rgb_template.c
libswscale/yuv2rgb.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-08 21:06:57 +02:00
Anton Khirnov
89715a3cf1
lavu: fix typo in Makefile
2012-10-08 20:12:00 +02:00
Michael Niedermayer
ae77266fce
Merge commit '78071a1420b425dfb787ac739048f523007b8139'
...
* commit '78071a1420b425dfb787ac739048f523007b8139':
pixfmt: add AV_ prefixes to PIX_FMT_*
Conflicts:
doc/APIchanges
libavutil/pixfmt.h
libavutil/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-08 19:42:49 +02:00
Michael Niedermayer
43c157f4a4
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
af_resample: avoid conversion of identical sample formats for 1 channel
avcodec: allow either planar or interleaved sample format when encoding mono
adpcmenc: ensure calls to adpcm_ima_compress_sample() are in the right order
timefilter: De-doxygenize normal code comments and drop silly ones
gxf: Include the right header for the avpriv_frame_rate_tab declaration
Conflicts:
libavcodec/adpcmenc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-08 13:11:11 +02:00
Janne Grunau
ea14a655f7
avutil: skip old_pix_fmts.h since it is just a list
2012-10-08 12:09:16 +02:00
Janne Grunau
7e522859fc
x86: vc1: call ff_vc1dsp_init_x86() under if (ARCH_X86)
2012-10-08 11:54:05 +02:00
Janne Grunau
cb36febcbc
x86: cavs: call ff_cavsdsp_init_x86() under if (ARCH_X86)
2012-10-08 11:54:05 +02:00
Janne Grunau
f101eab1be
x86: call most of the x86 dsp init functions under if (ARCH_X86)
...
Rename the called dsp init functions to *_init_x86.
2012-10-08 11:54:05 +02:00
Luca Barbato
d19d01bf62
doc: support the new website layout
2012-10-08 11:22:42 +02:00
Luca Barbato
91f5f87561
doc: remove a warning from filters.texi
...
The tag @table expects @item to mark entries.
2012-10-08 11:22:42 +02:00
Luca Barbato
175d0d94da
doc: initial nut documentation
2012-10-08 11:22:42 +02:00
Luca Barbato
0826d8513d
segment: drop global headers setting
...
avconv provides an option to set it externally and there isn't a way for
the outer demuxer to report the inner demuxer flag.
Solves a bad interaction between mpegts and x264, but requires
additional setting for the user.
2012-10-08 11:22:42 +02:00
Paul B Mahol
d7a4739265
TAK demuxer, decoder and parser
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-08 09:06:25 +00:00
Clément Bœsch
208a5d1322
fate/ffprobe: add some stream metadata.
2012-10-08 11:03:27 +02:00
Clément Bœsch
f7c46d251c
ffserver: fix seeking with ?date=...
...
Regression since 5f847bf61d .
After this commit, timestamps pushed by FFmpeg won't be relative
anymore, but absolute (based on the date/time at the beginning of the
push). This will allow seeking to work properly. Before this patch, the
seek was done, but ffm timestamps were way smallers than the absolute
requested timestamp (based on a date), so the seek was done, but to the
end of the stream (which was similar to no effect at all).
2012-10-08 09:03:19 +02:00
Anton Khirnov
8728b958ff
lavu: fix typo in Makefile
2012-10-08 08:10:23 +02:00
Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
2012-10-08 07:13:26 +02:00
Anton Khirnov
78071a1420
pixfmt: add AV_ prefixes to PIX_FMT_*
2012-10-08 07:12:16 +02:00
Pavel Koshevoy
9425dc3dba
Fix build failure on osx 10.5.8 ppc
...
Second parameter to vec_splat must be a literal, not a variable
value. Therefore the second nested for-loop in
float_to_int16_stride_altivec had to be unrolled.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-08 05:40:26 +02:00
Michael Niedermayer
f464b02d22
mpegts: fuzzy crc check for not so spec compliant files
...
Fixes Ticket598
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-08 05:25:27 +02:00
Michael Niedermayer
43bbc3f477
xtea: give constants the correct type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-08 03:44:18 +02:00
Michael Niedermayer
89074e9066
wmalosslessdec: remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-08 03:12:44 +02:00
Michael Niedermayer
b9a7719828
tscc: fix "assignment discards qualifiers from pointer target type" warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-08 03:11:02 +02:00
Michael Niedermayer
c5fdd0696a
tiff: fix "assignment discards qualifiers from pointer target type" warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-08 03:09:16 +02:00
Michael Niedermayer
bd2613a322
rangecoder: fix "incompatible pointer type" warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-08 03:06:04 +02:00
Michael Niedermayer
106790a4e9
ffv1: fix array data types
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-08 02:11:25 +02:00
Michael Niedermayer
fc6860a3eb
8svx: remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-08 02:09:28 +02:00
Michael Niedermayer
adcfc0535d
mxfenc: fix av_log data type for dts paramater
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-08 02:08:28 +02:00
Michael Niedermayer
f2a7e1a62b
mux: change 1 assert->av_assert1()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-07 23:31:27 +02:00
Michael Niedermayer
2714e841bc
x86/motion_est: assert->av_assert2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-07 23:31:27 +02:00
Michael Niedermayer
f9b0694cc8
motion-test: fix height parameter
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-07 23:31:27 +02:00
Justin Ruggles
7b556be673
af_resample: avoid conversion of identical sample formats for 1 channel
...
When there is only 1 channel, the planar and interleaved formats of the same
data type should be treated as identical.
2012-10-07 16:45:50 -04:00
Justin Ruggles
37f701f1c3
avcodec: allow either planar or interleaved sample format when encoding mono
...
When there is only 1 channel, the planar and interleaved formats of the same
data type should be treated as identical.
2012-10-07 16:45:50 -04:00
Justin Ruggles
5364327186
adpcmenc: ensure calls to adpcm_ima_compress_sample() are in the right order
...
Should fix fate-acodec-adpcm-ima_wav with several compilers.
2012-10-07 16:45:50 -04:00
Diego Biurrun
62ae37decd
timefilter: De-doxygenize normal code comments and drop silly ones
2012-10-07 22:31:29 +02:00
Justin Ruggles
d58b25aaa2
adpcmenc: ensure calls to adpcm_ima_compress_sample() are in the right order
...
Should fix fate-acodec-adpcm-ima_wav with several compilers.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-07 22:29:42 +02:00
Paul B Mahol
27a341518e
avformat: fix typo in comment
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-07 17:57:13 +00:00
Michael Niedermayer
979b9b1f47
h264: switch some asserts to av_assert1/2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-07 19:39:49 +02:00
Michael Niedermayer
1822aee7e6
dsputil_template: replace assert() by av_assert2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-07 19:31:15 +02:00
Martin Storsjö
e67b0f9952
gxf: Include the right header for the avpriv_frame_rate_tab declaration
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-07 14:14:37 +03:00
Michael Niedermayer
87244c8f20
matroskaenc: remove MATROSKA_ID_VIDEODISPLAYUNIT 3
...
Should fix ticket 1754
Thanks-to: Moritz Bunkus <moritz@bunkus.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-07 12:48:31 +02:00
Michael Niedermayer
79d30321a2
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
wmaenc: use float planar sample format
(e)ac3enc: use planar sample format
aacenc: use planar sample format
adpcmenc: use planar sample format for adpcm_ima_wav and adpcm_ima_qt
adpcmenc: move 'ch' variable to higher scope
adpcmenc: fix 3 instances of variable shadowing
adpcm_ima_wav: simplify encoding
libvorbis: use planar sample format
libmp3lame: use planar sample formats
vorbisenc: use float planar sample format
ffm: do not write or read the audio sample format
parseutils: fix parsing of invalid alpha values
doc/RELEASE_NOTES: update for the 9 release.
smoothstreamingenc: Add a more verbose error message
smoothstreamingenc: Ignore the return value from mkdir
smoothstreamingenc: Try writing a manifest when opening the muxer
smoothstreamingenc: Move the output_chunk_list and write_manifest functions up
smoothstreamingenc: Properly return errors from ism_flush to the caller
smoothstreamingenc: Check the output UrlContext before accessing it
Conflicts:
doc/RELEASE_NOTES
libavcodec/aacenc.c
libavcodec/ac3enc_template.c
libavcodec/wmaenc.c
tests/ref/lavf/ffm
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-07 11:28:38 +02:00
Michael Niedermayer
537ef8bebf
movenc: support an alternative to edit lists to handle the first DTS != 0 case.
...
Some software does not support edit lists at all, the adobe flash
player seems to be one of these. Which results in AV sync errors when
edit lists are used to adjust AV sync.
2nd try on implementing this, the first try had various issues
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-07 06:04:40 +02:00
Michael Niedermayer
d067e25437
mov: fix integer avoption types
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-07 03:20:36 +02:00
Michael Niedermayer
c6c560deed
mpeg4videodec: fix integer avoption types
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-07 03:20:36 +02:00
Michael Niedermayer
57e1553e9f
libvpcenc: fix flags voption types
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-07 03:20:36 +02:00
Michael Niedermayer
3c9502b0f6
h264: fix integer avoption types
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-07 03:20:36 +02:00
jamal
ffc1d959a0
tests/Makefile: fix ffprobe-test.nut with target-exec
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-07 03:20:36 +02:00
Michael Niedermayer
19a4e10360
gmc_mmx: enable also for large pictures when emu edge isnt needed.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-06 23:12:57 +02:00
Michael Niedermayer
e063ffbf4b
dsputil_mmx: put optimized gmc code back and avoid a VLA without loosing features.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-06 23:04:31 +02:00
Michael Niedermayer
094a82c7de
get_bits: get_bits_long() support n=0 as the docs allow it
...
also the 0 case is indeed used in some code pathes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-06 23:04:10 +02:00
Michael Niedermayer
ac6659aff7
movenc: fix regression with yuyv caused by c5f23d
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-06 20:23:17 +02:00
Justin Ruggles
31b2262dca
wmaenc: use float planar sample format
2012-10-06 13:23:13 -04:00
Justin Ruggles
b1540fc884
(e)ac3enc: use planar sample format
2012-10-06 13:23:13 -04:00
Justin Ruggles
f3e2d68df6
aacenc: use planar sample format
2012-10-06 13:23:13 -04:00
Bobby Bingham
51211d351c
vf_tile: fix typos/grammar in comments
...
Signed-off-by: Bobby Bingham <uhmmmm@gmail.com >
2012-10-06 11:34:10 -05:00
Justin Ruggles
095be4fbf6
adpcmenc: use planar sample format for adpcm_ima_wav and adpcm_ima_qt
2012-10-06 12:25:33 -04:00
Justin Ruggles
d9a13c2f56
adpcmenc: move 'ch' variable to higher scope
...
It is used for multiple codecs.
2012-10-06 12:25:33 -04:00
Justin Ruggles
9606f19b4e
adpcmenc: fix 3 instances of variable shadowing
2012-10-06 12:25:33 -04:00
Justin Ruggles
1e35574bad
adpcm_ima_wav: simplify encoding
2012-10-06 12:25:33 -04:00
Justin Ruggles
cfc0a80a1d
libvorbis: use planar sample format
2012-10-06 12:25:32 -04:00
Justin Ruggles
473b297f26
libmp3lame: use planar sample formats
2012-10-06 12:25:32 -04:00
Justin Ruggles
233783e2c1
vorbisenc: use float planar sample format
2012-10-06 12:25:32 -04:00
Justin Ruggles
11dcddb97b
ffm: do not write or read the audio sample format
2012-10-06 12:21:54 -04:00
Mans Rullgard
6221e2478c
parseutils: fix parsing of invalid alpha values
...
An alpha specifier outside the valid range results in a conversion from
double to long with undefined result. Range-checking the double and
only converting it after it passes avoids this.
Fixes fate-parseutils errors on some systems.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-06 17:08:29 +01:00
Michael Niedermayer
293e5423c6
configure: enable -Werror=vla
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-06 14:03:32 +02:00
Michael Niedermayer
24702a91e4
pca: get rid of VLA
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-06 14:03:15 +02:00
Michael Niedermayer
56d7f7d955
snowenc: get rid of VLA (well it wasnt really variable anyway)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-06 13:59:35 +02:00
Anton Khirnov
37ac11d92e
doc/RELEASE_NOTES: update for the 9 release.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-10-06 13:55:18 +02:00
Michael Niedermayer
13a215236b
swr-test: avoid VLA
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-06 13:48:47 +02:00
Michael Niedermayer
55c49afc42
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
yuv4mpeg: return proper error codes.
Give all anonymously typedeffed structs in headers a name
fate: Add parseutils test
parseutils-test: Drop random colors from parsing test
vf_pad/scale: use double precision for aspect ratios.
build: error on variable-length arrays
ppc: swscale: rework yuv2planeX_altivec()
ppc: fmtconvert: kill VLA in float_to_int16_interleave_altivec()
x86: dsputil: kill VLA in gmc_mmx()
libspeexenc: Updated commentary to reflect recent changes
libspeexenc: Add an option for enabling DTX
doc/APIchanges: fill in missing dates and hashes.
lavr: bump major to 1 and declare it stable.
lavr: change the type of the data buffers to uint8_t**.
lavc: deprecate the audio resampling API.
Conflicts:
cmdutils.h
configure
doc/APIchanges
ffplay.c
libavcodec/dwt.h
libavcodec/libspeexenc.c
libavfilter/vf_pad.c
libavfilter/vf_scale.c
libavformat/asf.h
tests/fate/libavutil.mak
tests/ref/fate/parseutils
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-06 13:45:08 +02:00
Stefano Sabatini
886c3662d3
doc/filters: fix typo
2012-10-06 12:53:11 +02:00
Michael Niedermayer
9d19d7c335
segment: reverse pass avoid_negative_ts from the muxer
...
This fixes failures with formats not supporting negative TS
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-06 12:07:26 +02:00
Martin Storsjö
cde26748ae
smoothstreamingenc: Add a more verbose error message
...
This helps tracking down the cause if this happens to be an issue.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-06 13:05:35 +03:00
Martin Storsjö
fadd3a6821
smoothstreamingenc: Ignore the return value from mkdir
...
We don't need to return an error if the directory already existed.
We make sure that the directory actually is properly writeable later
within ism_write_header by writing a manifest anyway.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-06 13:05:34 +03:00
Martin Storsjö
8e2763786d
smoothstreamingenc: Try writing a manifest when opening the muxer
...
This allows failing cleaner and earlier if unable to write to
the output directory.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-06 13:05:33 +03:00
Martin Storsjö
3ea06ac59e
smoothstreamingenc: Move the output_chunk_list and write_manifest functions up
...
This allows calling write_manifest from ism_write_header without
a forward declaration.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-06 13:05:32 +03:00
Martin Storsjö
5fa43f76aa
smoothstreamingenc: Properly return errors from ism_flush to the caller
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-06 13:05:31 +03:00
Martin Storsjö
eb2f391018
smoothstreamingenc: Check the output UrlContext before accessing it
...
This code can be called with a NULL UrlContext if writing of the
trailer involves seeking.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-06 13:05:30 +03:00
Michael Niedermayer
2c34367b4a
libvorbisenc: fix afq delay setting
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-06 11:51:18 +02:00
Anton Khirnov
d3a72becc6
yuv4mpeg: return proper error codes.
...
Fixes Bug 373.
CC:libav-stable@libav.org
2012-10-06 10:42:39 +02:00
Diego Biurrun
e4cbf7529b
Give all anonymously typedeffed structs in headers a name
...
Anonymous structs cannot be forward declared and have no benefit.
2012-10-06 09:27:11 +02:00
Diego Biurrun
76f644d9f7
fate: Add parseutils test
2012-10-06 09:24:54 +02:00
Diego Biurrun
c010fce6c9
parseutils-test: Drop random colors from parsing test
...
This guarantees stable output for comparing test results.
2012-10-06 09:21:54 +02:00
Anton Khirnov
ba04177eeb
vf_pad/scale: use double precision for aspect ratios.
...
Fixes Bug 203.
CC:libav-stable@libav.org
2012-10-06 07:27:53 +02:00
Carl Eugen Hoyos
7548c80acc
Pinnacle TARGA CineWave YUV16 decoder (fourcc Y216).
...
Fixes ticket #1354
2012-10-06 06:20:52 +02:00
Michael Niedermayer
5de75336a1
mpegvideo_armv5te: change asserts to av_asserts
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-06 04:45:57 +02:00
Michael Niedermayer
ed015f67a2
ffv1enc: fix assert in put_vlc_symbol() and update to av_assert2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-06 03:29:37 +02:00
Michael Niedermayer
856834a77f
ffv1: change w/h asserts to check as the condition can likely happen
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-06 03:16:24 +02:00
Michael Niedermayer
5709e20199
ffv1: remove commented asserts
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-06 03:16:24 +02:00
Stefano Sabatini
1578d01d8f
Changelog: add empty line after version lines
...
Fix spacing inconsistency.
2012-10-06 00:05:40 +02:00
Stefano Sabatini
531872d763
ffprobe: reindent after previous commit
2012-10-05 23:58:23 +02:00
Stefano Sabatini
3d189d41c1
ffprobe: add -select_streams option
2012-10-05 23:58:18 +02:00
Mans Rullgard
c07d56a684
build: error on variable-length arrays
...
With all the VLAs gone, make sure they never come back.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-05 22:33:32 +01:00
Mans Rullgard
07eb7e20af
ppc: swscale: rework yuv2planeX_altivec()
...
This gets rid of the variable-length scratch buffer by filtering 16
pixels at a time and writing directly to the destination. The extra
loads this requires to load the source values are compensated by not
doing a round-trip to memory before shifting.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-05 22:33:32 +01:00
Mans Rullgard
642b4efaf7
ppc: fmtconvert: kill VLA in float_to_int16_interleave_altivec()
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-05 22:33:32 +01:00
Mans Rullgard
bcf07a15a0
x86: dsputil: kill VLA in gmc_mmx()
...
Instead of using an evil VLA, fall back to C version when edge
emulation is needed. MPEG4 GMC is a rarely used fringe feature
so the speed loss is an acceptable cost for safer code.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-05 22:33:32 +01:00
Dmitry Samonenko
f1c6a740fc
libspeexenc: Updated commentary to reflect recent changes
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-05 23:29:24 +03:00
Dmitry Samonenko
978d5bd2a7
libspeexenc: Add an option for enabling DTX
...
Discontinuous transmission is an addition to VAD/VBR operation, that
allows to greatly reduce bitrate for silent chunks or stationary
noises.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-05 23:29:24 +03:00
Carl Eugen Hoyos
d9dfe9a5ae
Fix libcdio detection.
2012-10-05 21:45:02 +02:00
Carl Eugen Hoyos
eb63a74789
Do not print debug output for the (MPlayer) pullup filter.
2012-10-05 21:03:59 +02:00
Carl Eugen Hoyos
4c5a9fd65a
Fix showspectrum dependencies: Add rdft.
2012-10-05 20:13:02 +02:00
Paul B Mahol
0a7d4ea31b
configure: dts demuxer needs dca_parser
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-05 17:22:20 +00:00
Giorgio Vazzana
db4bb4c983
oggparsetheora: fix comment header parsing
...
Pass the correct header size to ff_vorbis_comment()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-05 18:07:13 +02:00
Michael Niedermayer
0ed023275f
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
h264: don't touch H264Context->ref_count[] during MB decoding
x86: get_cpu_flags: add necessary ifdefs around function body
x86: Drop CPU detection intrinsics
x86: Add YASM implementations of cpuid and xgetbv from x264
Conflicts:
configure
libavcodec/h264_cabac.c
libavcodec/h264_cavlc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-05 17:04:15 +02:00
Michael Niedermayer
2a77d4f70b
Merge commit '65d12900432ac880d764edbbd36818431484a76e'
...
* commit '65d12900432ac880d764edbbd36818431484a76e':
configure: add --enable-lto option
x86: cpu: Break out test for cpuid capabilities into separate function
x86: ff_get_cpu_flags_x86(): Avoid a pointless variable indirection
build: Factor out mpegaudio dependencies to CONFIG_MPEGAUDIO
segment: Add comments about calls that only are relevant for some muxers
segment: Add an option for omitting the first header and final trailer
Conflicts:
configure
libavcodec/Makefile
libavformat/segment.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-05 16:52:13 +02:00
Michael Niedermayer
f74f8bc864
Merge commit 'a854362b40f0e458db5a1fb0d2612a5702ee0ace'
...
* commit 'a854362b40f0e458db5a1fb0d2612a5702ee0ace':
segment: Flush buffered data before finishing a segment
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-05 16:41:50 +02:00
Michael Niedermayer
b26cbf75bc
Merge commit 'f7b240434c015056bc6319ddbdb8483757cc13e2'
...
* commit 'f7b240434c015056bc6319ddbdb8483757cc13e2':
segment: Set the resend_headers flag for each segment
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-05 16:30:34 +02:00
Michael Niedermayer
50c555e396
Merge commit '378a6315b7c48195ffd94e6aa9aa6d663d42b35e'
...
* commit '378a6315b7c48195ffd94e6aa9aa6d663d42b35e':
segment: Add an option for disabling writing of a header/trailer to each segment
Conflicts:
libavformat/segment.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-05 16:21:16 +02:00
Michael Niedermayer
008d36ba1d
Merge commit 'eb447d515956b3ce182d9750083131735f00324c'
...
* commit 'eb447d515956b3ce182d9750083131735f00324c':
segment: Free and reinit the muxer before calling avformat_write_header
Conflicts:
libavformat/segment.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-05 15:48:23 +02:00
Michael Niedermayer
1bd22229d7
Merge commit '73871dc96ff78053b9dcd0eb259b7f5a5308ec87'
...
* commit '73871dc96ff78053b9dcd0eb259b7f5a5308ec87':
segment: Use the public av_write_header/av_write_trailer functions
Conflicts:
libavformat/segment.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-05 15:12:54 +02:00
Michael Niedermayer
d19728da6f
Merge commit '0edae4e6286096023cdd6adea74722fa06029867'
...
* commit '0edae4e6286096023cdd6adea74722fa06029867':
segment: Properly create new AVStreams for the chained muxer
segment: Add a missing space
Conflicts:
libavformat/segment.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-05 15:03:02 +02:00
Anton Khirnov
2f49e3da33
doc/APIchanges: fill in missing dates and hashes.
2012-10-05 14:01:39 +02:00
Anton Khirnov
006afc7a0b
lavr: bump major to 1 and declare it stable.
2012-10-05 13:50:13 +02:00
Anton Khirnov
e7ba5b1de0
lavr: change the type of the data buffers to uint8_t**.
...
This is more consistent with what the rest of Libav does.
This breaks API.
2012-10-05 13:49:44 +02:00
Anton Khirnov
30223b3bf2
lavc: deprecate the audio resampling API.
...
It has been superseded by lavr.
2012-10-05 13:47:56 +02:00
Ronald S. Bultje
2e59210edf
lavc/h264: don't touch H264Context->ref_count[] during MB decoding.
...
The variable is copied to subsequent threads at the same time, so this
may cause wrong ref_count[] values to be copied to subsequent threads.
This bug was found using TSAN and Helgrind.
Original patch by Ronald, adapted with a local_ref_count by Clément,
following the suggestion of Michael Niedermayer.
Signed-off-by: Clément Bœsch <clement.boesch@smartjog.com >
2012-10-05 07:35:58 +02:00
Duncan Salerno
5cdd3b995c
hls: Disable http seekability probing
...
Some HLS servers return 403 when the Range header is present. Disabling http
seekability probing prevents the header from being added.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-05 05:15:55 +02:00
Duncan Salerno
8a33210d1b
http: prevent the Range header being sent when seekability probing isnt used
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-05 05:13:28 +02:00
Duncan Salerno
dd1e6b2a13
http: add option to prevent probing for HTTP seekability
...
Add an tri-state (seek, non seek, automatic detection) option to HTTP to control seekability (default: automatic).
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-05 05:11:58 +02:00
Michael Niedermayer
cf5a98b9e3
mpeg2videodec: fix list of supported frame rates to include sane ext rates.
...
This only adds a subset of the frame rates that can be stored, a full list
would be more than 500 entries. Such full list could (and should) be added
if it has a usecase but the number of users of even the now added rates
seem rather small.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-05 02:51:19 +02:00
Ronald S. Bultje
f6f7d15041
h264: don't touch H264Context->ref_count[] during MB decoding
...
The variable is copied to subsequent threads at the same time, so this
may cause wrong ref_count[] values to be copied to subsequent threads.
This bug was found using TSAN.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2012-10-05 02:49:45 +02:00
Dmitry Samonenko
66a4ac5182
libspeexenc: Updated commentary to reflect recent changes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-05 00:17:38 +02:00
Dmitry Samonenko
038325ac05
libspeexenc: Add an option for enabling DTX
...
Discontinuous transmission is an addition to VAD/VBR operation, that
allows to greatly reduce bitrate for silent chunks or stationary
noises.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-05 00:18:01 +02:00
Michael Niedermayer
d56834201b
aacenc: fix out of array writes
...
The value used in allocation is based on a estimate of the
maximum size of the spectral coefficients multiplied with 2
and rounded up. The exact or a tighter limit should be
found and used instead. But this issue shouldnt be left
open until someone works on that.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-05 00:18:01 +02:00
Tim Nicholson
60b433d905
movenc.c: Add support for >16bit BE flavours
...
Currently only LE handled correctly
Updated fate checksums to reflect new headers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-04 21:31:10 +02:00
Diego Biurrun
a7329e5fc2
x86: get_cpu_flags: add necessary ifdefs around function body
...
ff_get_cpu_flags_x86() requires cpuid(), which is conditionally defined
elsewhere in the file. Surrounding the function body with ifdefs allows
building even when cpuid is not defined. An empty cpuflags mask is
returned in this case.
2012-10-04 19:29:14 +02:00
Diego Biurrun
f6fbce761e
x86: Drop CPU detection intrinsics
...
Now that there is CPU detection in YASM, there will always be one of
inline or external assembly enabled, which obviates the need to fall
back on CPU detection through compiler intrinsics.
2012-10-04 19:29:14 +02:00
Diego Biurrun
1f6d86991f
x86: Add YASM implementations of cpuid and xgetbv from x264
...
This allows detecting CPU features with builds that have neither
gcc inline assembly nor the right compiler intrinsics enabled.
2012-10-04 19:29:14 +02:00
Mans Rullgard
65d1290043
configure: add --enable-lto option
...
This works with gcc. Other compilers might need to have a flag
mapping added.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-04 18:21:49 +01:00
Diego Biurrun
54b243141e
x86: cpu: Break out test for cpuid capabilities into separate function
2012-10-04 18:09:21 +02:00
Diego Biurrun
cc5e9e5ff0
x86: ff_get_cpu_flags_x86(): Avoid a pointless variable indirection
2012-10-04 17:58:42 +02:00
Diego Biurrun
1e164c0bcc
build: Factor out mpegaudio dependencies to CONFIG_MPEGAUDIO
...
A new hidden config variable is added for the codecs that depend on the
mpegaudio parts.
2012-10-04 17:58:42 +02:00
Michael Niedermayer
2e8dcde1fe
ffplay: autodetect realtime streams and enable infbuf
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-04 17:35:20 +02:00
Michael Niedermayer
cb3fd029b7
ffplay: add a 3rd state to infbuf for autodetection
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-04 17:34:47 +02:00
Martin Storsjö
91c1567beb
segment: Add comments about calls that only are relevant for some muxers
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-04 18:22:47 +03:00
Michael Niedermayer
e214306775
mpeg2enc: support and use frame_rate_ext when needed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-04 15:25:30 +02:00
Michael Niedermayer
489d8a79a6
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
vf_overlay: properly sync inputs.
Conflicts:
libavfilter/vf_overlay.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-04 13:20:50 +02:00
Michael Niedermayer
0f1446a4d0
Merge commit 'ab35ec29a4071871934856c00da7d6ebcc0c095b'
...
* commit 'ab35ec29a4071871934856c00da7d6ebcc0c095b':
vf_overlay: get rid of pointless messing with timebase.
samplefmt: make av_samples_alloc() initialize the data to silence.
libspeexdec: handle NULL return value from speex_packet_to_header()
h264probe: Don't error out on bits that no longer are reserved
mpegvideo: set extended_data in ff_update_duplicate_context()
libspeexdec: properly handle DTX for multiple frames-per-packet
libspeexdec: move the SpeexHeader from LibSpeexContext to where it is used
libspeexdec: simplify setting of frame_size
libspeexdec: set channel_layout
Conflicts:
libavfilter/vf_overlay.c
libavformat/h264dec.c
libavutil/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-04 13:11:45 +02:00
Martin Storsjö
a854362b40
segment: Flush buffered data before finishing a segment
...
This makes sure any buffered data is written to the segment, for
muxers that buffer up data internally (e.g. fragmented mp4).
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-04 13:52:09 +03:00
Martin Storsjö
f7b240434c
segment: Set the resend_headers flag for each segment
...
This makes sure new inline headers are emitted when the next
packet is written. This allows segmenting mpegts without calling
write_header/write_trailer (nor freeing/reiniting the muxer)
for each segment.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-04 13:52:09 +03:00
Martin Storsjö
378a6315b7
segment: Add an option for disabling writing of a header/trailer to each segment
...
Some segmented formats (such as fragmented mp4) are "bare", as in,
the segment files do not have the same headers/trailers as full normal
files of that format have.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-04 13:52:09 +03:00
Martin Storsjö
eb447d5159
segment: Free and reinit the muxer before calling avformat_write_header
...
This makes sure the muxers are set up in the way they expect
with no data left around from the previous run (which could
cause various issues including memory leaks, depending on the chaine
muxer).
This fixes memory leaks with the mpegts and flv muxers. It also
makes the usage of chained muxers correct.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-04 13:52:09 +03:00
Martin Storsjö
73871dc96f
segment: Use the public av_write_header/av_write_trailer functions
...
With this change, the segmenter muxer doesn't rely on anything
not available/supported to libavformat external users, making
the segmenter muxer do things just like a normal segmenter
application using libavformat would do.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-04 13:52:09 +03:00
Martin Storsjö
0edae4e628
segment: Properly create new AVStreams for the chained muxer
...
Before, the chained muxer reused the AVStreams array from
the outer muxer, which made it impossible to use the proper
public functions (such as av_write_frame) when calling the
chained muxer.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-04 13:52:09 +03:00
Martin Storsjö
c864c3968a
segment: Add an option for omitting the first header and final trailer
...
This allows writing totally bare segments, without any header/trailer
included anywhere.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-04 13:52:09 +03:00
Martin Storsjö
aa9f128b7c
segment: Add a missing space
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-04 13:52:08 +03:00
Michael Niedermayer
741f5b021a
Merge commit '29abb04e73b0580ebe38703cadb988d26df6a76a'
...
* commit '29abb04e73b0580ebe38703cadb988d26df6a76a':
libspeexdec: If the channel count is not valid, decode as stereo.
libspeexdec: improve setting of Speex mode and sample rate
libspeex: Add a private option for enabling VAD
xtea: Test inplace decryption
xtea: Fix CBC decryption when src==dst
xtea: Factorize testing into a separate function
configure: Refactor HAVE_ options available on the command line
avconv/avprobe: Add missing 'void' to exit_program() definition
Allow use of strncpy()
blowfish: Add more tests
blowfish: Fix CBC decryption with dst==src
blowfish: Factorize testing into a separate function
Conflicts:
configure
libavcodec/libspeexdec.c
libavutil/xtea.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-04 12:30:25 +02:00
Anton Khirnov
4673a5a761
vf_overlay: properly sync inputs.
...
Right now it incorrectly assumes that the frames are sent in the proper
order, which worked with old ffmpeg and avconv versions by accident.
2012-10-04 10:23:25 +02:00
Anton Khirnov
ab35ec29a4
vf_overlay: get rid of pointless messing with timebase.
...
Output frames correspond 1:1 to input frames on the main input.
So use the main input timebase for output.
2012-10-04 10:21:58 +02:00
Anton Khirnov
cd15b7c03d
samplefmt: make av_samples_alloc() initialize the data to silence.
...
Right now the buffer is zeroed, which does not represent silence for U8(P).
2012-10-04 08:05:21 +02:00
Michael Niedermayer
047dcfabc7
afq: sanity assert on remaining_samples
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-04 03:01:36 +02:00
Michael Niedermayer
b27e2b6e12
afq: update remaining samples variable.
...
Fixes Ticket1785 (opusenc used this variable)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-04 02:41:41 +02:00
Michael Niedermayer
b02493e476
movenc: force video timebase to be 0.1ms precisse at least.
...
The timebases before where only guranteed to be 1/fps precisse
and could cause AV sync errors on low fps
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-04 01:33:49 +02:00
Justin Ruggles
c9df48909e
libspeexdec: handle NULL return value from speex_packet_to_header()
...
This will happen when the extradata is not a valid Speex header.
2012-10-03 18:26:25 -04:00
Michael Niedermayer
769ed3057e
h264probe: Don't error out on bits that no longer are reserved
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-04 00:59:34 +03:00
Janne Grunau
1481e19825
mpegvideo: set extended_data in ff_update_duplicate_context()
...
AVFrame.extended_data has to reset to the AVFrame.data of the current
thread context after copying the frame contents.
Fixes crashes with frame-threading after 2bc0de3858 .
2012-10-03 22:08:49 +02:00
Justin Ruggles
29abb04e73
libspeexdec: If the channel count is not valid, decode as stereo.
...
When initialized as stereo, libspeex can decode either mono or stereo packets
and will output stereo.
2012-10-03 16:03:32 -04:00
Justin Ruggles
45e5d0c3ac
libspeexdec: properly handle DTX for multiple frames-per-packet
2012-10-03 16:03:32 -04:00
Justin Ruggles
908e22b93a
libspeexdec: move the SpeexHeader from LibSpeexContext to where it is used
2012-10-03 16:03:32 -04:00
Justin Ruggles
892695c851
libspeexdec: simplify setting of frame_size
2012-10-03 16:03:32 -04:00
Justin Ruggles
27c3f9c03e
libspeexdec: set channel_layout
2012-10-03 16:03:32 -04:00
Justin Ruggles
3b061c5e10
libspeexdec: improve setting of Speex mode and sample rate
...
If there is no extradata and the sample rate given by the user is not valid,
decode as ultra-wideband.
2012-10-03 16:03:31 -04:00
Michael Niedermayer
5e6439a125
ff_choose_timebase: only try factors upto 14
...
otherwise a unexpected timebase could be choosen
that is one that is thousand times more precisse than requested
which can have sideeffects.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-03 21:38:56 +02:00
Michael Niedermayer
de707bc8bd
mux/nut: factorize ff_choose_timebase() out of nut
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-03 21:34:43 +02:00
Dmitry Samonenko
ad11681acd
libspeex: Add a private option for enabling VAD
...
Speex detects non-speech periods and encodes them with just enough bits
to reproduce the background noise, aka ``comfort noise generation''.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-03 19:23:39 +03:00
Michael Niedermayer
05e5a24f79
tiffenc: remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-03 18:20:28 +02:00
Michael Niedermayer
f0fce9f33e
xtea: Test inplace decryption
...
Based on test code by: Giorgio Vazzana <mywing81@gmail.com >
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-03 19:19:53 +03:00
Michael Niedermayer
b434500431
xtea: Fix CBC decryption when src==dst
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-03 19:19:49 +03:00
Martin Storsjö
ca074cc313
xtea: Factorize testing into a separate function
...
Based on a patch by Michael Niedermayer.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-03 19:19:37 +03:00
Diego Biurrun
fd712a5584
configure: Refactor HAVE_ options available on the command line
2012-10-03 18:08:25 +02:00
Diego Biurrun
8be5b0d6d5
avconv/avprobe: Add missing 'void' to exit_program() definition
2012-10-03 18:07:49 +02:00
Michael Niedermayer
dc82b2c0f1
framecrcenc: print flags and side data elements
...
The new fields are only printed when they differ from their defaults
this way only few fate refs change
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-03 16:51:30 +02:00
Michael Niedermayer
6a697b42d0
parser: fix large overreads
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-03 16:14:59 +02:00
Clément Bœsch
1e2e2c8095
lavc/h264: move ff_init_cabac_states() from decode_slice() to ff_h264_decode_init().
...
This fixes one of the potential races spotted by Helgrind.
2012-10-03 15:38:22 +02:00
Mans Rullgard
05e209c04c
Allow use of strncpy()
...
There are cases where strncpy() does exactly what is required.
A blanket ban forces more convoluted solutions to be used in those
cases and has been a cause of bugs.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-03 14:36:51 +01:00
Martin Storsjö
75366a504d
blowfish: Add more tests
...
Test inplace ECB, normal CBC and inplace CBC encryption/decryption.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-03 16:05:54 +03:00
Martin Storsjö
87f023f2c0
blowfish: Fix CBC decryption with dst==src
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-03 16:05:23 +03:00
Martin Storsjö
0cc9a64b92
blowfish: Factorize testing into a separate function
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-03 16:05:05 +03:00
Michael Niedermayer
7e5496fc41
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
ARM: use numeric ID for Tag_ABI_align_preserved
segment: Pass the interrupt callback on to the chained AVFormatContext, too
ARM: bswap: drop armcc version of av_bswap16()
ARM: set Tag_ABI_align_preserved in all asm files
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-03 13:35:02 +02:00
Mans Rullgard
51a15ed740
ARM: use numeric ID for Tag_ABI_align_preserved
...
Some old assemblers still in use do not support named tags.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-03 11:49:55 +01:00
Michael Niedermayer
695f086939
ffv1dec: print bps for pict debug too
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-03 05:43:32 +02:00
Justin Ruggles
df824548d0
8svx: Fixing header size, move decoding to per call instead of the first call.
...
The fate checksum change is due to the header size having been wrong.
Credit&Authorship for the code belongs to Justin Ruggles
Blame for bugs in this merging of the code belong to the Commiter
Commit message by Commiter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-03 03:49:24 +02:00
Michael Niedermayer
26d1c7d9c3
8svx: avoid custom clip, avoid +128 for compressed data.
...
Based on:
commit e371878416
Author: Justin Ruggles <justin.ruggles@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-03 02:50:10 +02:00
Michael Niedermayer
6eed92a2b7
8svx: fix delta_decode cliping limits
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-03 01:52:29 +02:00
Nicolas George
72f10d5473
8svx: copy start value in output samples.
...
Otherwise, the last byte of each stream is left uninitialized.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-03 01:45:27 +02:00
Martin Ettl
f077e1fb4c
ffserver: fix potential buffer overflow, based on wrong fscanf format indentifier.
...
Fixed Ticket1780
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-02 22:59:03 +02:00
Michael Niedermayer
d4e82a341e
8svx: remove malloc and memcpy that have become unneeded
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-02 22:44:09 +02:00
Martin Storsjö
4edb34f6cc
segment: Pass the interrupt callback on to the chained AVFormatContext, too
...
This might not be needed at the moment, but it's good practice to
pass it to all chained AVFormatContexts, if it would happen to be
used there at a later point.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-10-02 22:14:07 +02:00
Michael Niedermayer
8f0168a3b9
fix exit_program() prototypes
...
This fixes 2 warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-02 21:55:31 +02:00
Mans Rullgard
1ca3b62b10
ARM: bswap: drop armcc version of av_bswap16()
...
This function causes several versions of armcc to miscompile code,
and the performance impact is small.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-02 19:47:56 +01:00
Mans Rullgard
5e826fd65e
ARM: set Tag_ABI_align_preserved in all asm files
...
All our ARM asm preserves alignment so setting this attribute
in a common location is simpler. This removes numerous warnings
when linking with armcc.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-02 19:47:56 +01:00
Michael Niedermayer
032ba74ed2
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
ARM: fix Thumb PIC on Apple
nut: add do {} while (0) to GET_V
tiffenc: Check av_malloc() results.
tiffenc: Simplify pixel format setup using AVPixFmtDescriptor.
Use atexit() instead of defining a custom exit_program() interface.
msvc: Fix detection of VFW & Avisynth required libs
Conflicts:
ffmpeg.c
ffmpeg_opt.c
ffplay.c
ffprobe.c
ffserver.c
libavcodec/tiffenc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-02 19:48:54 +02:00
Michael Niedermayer
dd78e1090b
Merge commit '1e46c63eb72be752e044ba32257d77f35cbd9dac'
...
* commit '1e46c63eb72be752e044ba32257d77f35cbd9dac':
avformat: refactor avformat_write_header
Conflicts:
libavformat/mux.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-02 18:48:56 +02:00
Michael Niedermayer
6cbbf4a274
Merge commit '86bbdf865e04bc5ddc2021b0620e6de634375253'
...
* commit '86bbdf865e04bc5ddc2021b0620e6de634375253':
avformat: refactor avformat_write_header
Conflicts:
libavformat/mux.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-02 18:36:09 +02:00
Michael Niedermayer
513042c926
Merge commit '55f9037f38bc3beacb2f5a17408c1d24c077d7fd'
...
* commit '55f9037f38bc3beacb2f5a17408c1d24c077d7fd':
avformat: split muxing functions from util.c
Conflicts:
libavformat/internal.h
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-02 18:20:24 +02:00
Michael Niedermayer
f5b31daa5e
libopusenc: use more specific and correct name for the channel order
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-02 17:34:10 +02:00
Michael Niedermayer
e88ca80dc3
Merge commit 'bfcd4b6a1691d20aebc6d2308424c2a88334a9f0'
...
* commit 'bfcd4b6a1691d20aebc6d2308424c2a88334a9f0':
adpcmdec: set AVCodec.sample_fmts
twinvq: use planar sample format
ralf: use planar sample format
mpc7/8: use planar sample format
iac/imc: use planar sample format
dcadec: use float planar sample format
cook: use planar sample format
atrac3: use float planar sample format
apedec: output in planar sample format
8svx: use planar sample format
Conflicts:
libavcodec/8svx.c
libavcodec/dcadec.c
libavcodec/mpc7.c
libavcodec/mpc8.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-02 17:27:52 +02:00
Michael Niedermayer
82db8ee321
Merge commit 'fd41cb43702498948ff14ba8c284fd5c15fc729d'
...
* commit 'fd41cb43702498948ff14ba8c284fd5c15fc729d':
avconv: improve sample format negotiation for decoder request
Opus encoder using libopus
mpegts: Drop pointless casting of hex_dump_debug arguments
avformat: const correctness for av_hex_dump / av_hex_dump_log
wmadec: Adjust debug printf argument length modifier
Conflicts:
Changelog
ffmpeg.c
libavcodec/libopusdec.c
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-02 14:58:19 +02:00
Michael Niedermayer
f7f5370b4b
mov: add option to ignore edit lists.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-02 14:18:46 +02:00
Mans Rullgard
7bda4ed780
ARM: fix Thumb PIC on Apple
...
LDR with register offset and PC as base register is not available in
the Thumb instruction set so the addition must be done separately.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2012-10-02 13:12:33 +01:00
Luca Barbato
72d30b2792
nut: add do {} while (0) to GET_V
...
Make it consistent with the other function-like macros.
2012-10-02 12:16:47 +02:00
Stefano Sabatini
e97e0eff84
doc/swresample.txt: fix typos
2012-10-02 09:43:27 +02:00
Stefano Sabatini
c053f48662
lavfi/transpose: add passthrough option
2012-10-02 09:43:06 +02:00
Stefano Sabatini
6300062774
lavfi/transpose: add support to named options and shortands
...
Allow extensibility.
2012-10-02 09:20:10 +02:00
Alex Converse
b92dfb56d4
tiffenc: Check av_malloc() results.
2012-10-01 17:46:44 -07:00
Alex Converse
9bc055e358
tiffenc: Simplify pixel format setup using AVPixFmtDescriptor.
2012-10-01 17:46:44 -07:00
Dmitry Samonenko
c785b6db73
Libspeex VAD support
...
Option for Voice Activity Detection is added to speex encoder.
Speex detects non-speech periods and encodes them with just enough bits
to reproduce the background noise, aka ``comfort noise generation''.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-02 02:24:55 +02:00
Michael Niedermayer
44ae7badae
ffmpeg: print muxed packet sizes in debug output too
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-02 02:14:02 +02:00
Michael Niedermayer
4abc411b97
nutenc: choose for non audio streams a timebase with finer resolution.
...
While a 25 fps stream can in general store frame durations in 1/25
units, this is not true for the timestamps. For example a 25fps
and a 25000/1001 fps stream when they are stored together might have
a matching 0 timestamp point but when for example a chapter from
this is cut the new start is no longer aligned. The issue gets
MUCH worse when the streams are lower fps, like 1 or 2 fps.
This commit thus makes the muxer choose a multiple of the
framerate as timebase that is at least about 20 micro seconds precise
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-02 01:09:12 +02:00
Michael Niedermayer
e3fb5bc147
nut: store and read the r_frame_rate
...
With this, when we use a finer timebase than neccessary to store
durations the demuxer still knows what the original timebase was.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-02 01:09:12 +02:00
Michael Niedermayer
4eb0f5f635
nutenc: use 1/sample rate as timebase for audio instead of framesize/sample rate
...
This way audio frames can be exactly stored even when they are not
aligned with timestamp 0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-02 01:09:12 +02:00
Clément Bœsch
c4dba58f47
isom: fix redundant redeclaration of ff_mov_read_chan().
...
Silence a GCC warning. A leftover of the disabled version is still
available in lavf/isom.c.
2012-10-02 00:26:15 +02:00
Diego Elio Pettenò
5e3f9979fa
Use atexit() instead of defining a custom exit_program() interface.
2012-10-01 17:17:42 -04:00
Derek Buitenhuis
bd680c7b49
msvc: Fix detection of VFW & Avisynth required libs
...
It should be vfw32.lib with MSVC.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-10-01 16:39:40 -04:00
Clément Bœsch
2308c5bb25
lavfi/edgedetect: add missing minus in a comment.
2012-10-01 22:31:14 +02:00
Clément Bœsch
d771b1d137
lavfi: EBU R.128 scanner.
2012-10-01 22:26:19 +02:00
Clément Bœsch
81bbce9cf3
Move xGA font data from lavc to lavu.
...
This needs to be accessible for libavfilter in the next commit.
2012-10-01 22:24:17 +02:00
Luca Barbato
1e46c63eb7
avformat: refactor avformat_write_header
...
Split away option settings, sanity checks and general setup.
2012-10-01 19:57:57 +02:00
Luca Barbato
86bbdf865e
avformat: refactor avformat_write_header
...
Mostly cosmetic changes adding some intermediate to shorten the lines.
2012-10-01 19:57:57 +02:00
Luca Barbato
55f9037f38
avformat: split muxing functions from util.c
2012-10-01 19:57:57 +02:00
Justin Ruggles
bfcd4b6a16
adpcmdec: set AVCodec.sample_fmts
2012-10-01 13:42:44 -04:00
Justin Ruggles
1478a3601e
twinvq: use planar sample format
2012-10-01 13:42:44 -04:00
Justin Ruggles
a34be78546
ralf: use planar sample format
2012-10-01 13:42:44 -04:00
Justin Ruggles
1a3459033d
mpc7/8: use planar sample format
2012-10-01 13:42:44 -04:00
Justin Ruggles
fd41cb4370
avconv: improve sample format negotiation for decoder request
...
This takes into account planar vs. packed when comparing to find the closest
sample format match.
2012-10-01 13:42:43 -04:00
Justin Ruggles
3fca0d7210
iac/imc: use planar sample format
2012-10-01 13:42:43 -04:00
Justin Ruggles
64c312aa29
dcadec: use float planar sample format
2012-10-01 13:42:43 -04:00
Justin Ruggles
cbf6ee7823
cook: use planar sample format
2012-10-01 13:42:43 -04:00
Justin Ruggles
9af4eaa8ea
atrac3: use float planar sample format
2012-10-01 13:42:43 -04:00
Justin Ruggles
461ba7e97a
apedec: output in planar sample format
2012-10-01 13:42:43 -04:00
Justin Ruggles
cf8c93ada4
8svx: use planar sample format
2012-10-01 13:42:43 -04:00
Michael Niedermayer
c39916bc2f
jpeglsdec: move pict debug log under correct if()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-01 16:45:59 +02:00
Michael Niedermayer
64604e2679
cpu: improve av_get_cpu_flags() doxy
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-01 16:41:37 +02:00
Michael Niedermayer
31ab1575e5
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avcodec: Convert some commented-out printf/av_log instances to av_dlog
avcodec: Drop silly and/or broken printf debug output
avcodec: Drop some silly commented-out av_log() invocations
avformat: Convert some commented-out printf/av_log instances to av_dlog
avformat: Remove non-compiling and/or silly commented-out printf/av_log statements
Remove some silly disabled code.
ac3dec: ensure get_buffer() gets a buffer for the correct number of channels
Conflicts:
libavcodec/dnxhddec.c
libavcodec/ffv1.c
libavcodec/h264.c
libavcodec/h264_parser.c
libavcodec/mjpegdec.c
libavcodec/motion_est_template.c
libavcodec/mpegaudiodec.c
libavcodec/mpegvideo_enc.c
libavcodec/put_bits.h
libavcodec/ratecontrol.c
libavcodec/wmaenc.c
libavdevice/timefilter.c
libavformat/asfdec.c
libavformat/avidec.c
libavformat/avienc.c
libavformat/flvenc.c
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-01 16:12:38 +02:00
Nathan Caldwell
6cb8c85409
Opus encoder using libopus
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-10-01 14:42:40 +02:00
Diego Biurrun
15d35bee83
mpegts: Drop pointless casting of hex_dump_debug arguments
2012-10-01 13:18:28 +02:00
Diego Biurrun
d3c40a7d1d
avformat: const correctness for av_hex_dump / av_hex_dump_log
2012-10-01 13:18:28 +02:00
Diego Biurrun
d25fe4cc65
wmadec: Adjust debug printf argument length modifier
2012-10-01 12:46:41 +02:00
Diego Biurrun
1218777ffd
avcodec: Convert some commented-out printf/av_log instances to av_dlog
2012-10-01 10:24:28 +02:00
Diego Biurrun
9c6cf7f2c9
avcodec: Drop silly and/or broken printf debug output
2012-10-01 10:24:28 +02:00
Diego Biurrun
6f6b0311a3
avcodec: Drop some silly commented-out av_log() invocations
2012-10-01 10:24:28 +02:00
Diego Biurrun
72eaba5e4f
avformat: Convert some commented-out printf/av_log instances to av_dlog
2012-10-01 10:24:28 +02:00
Diego Biurrun
11d4e92ed9
avformat: Remove non-compiling and/or silly commented-out printf/av_log statements
2012-10-01 10:24:28 +02:00
Diego Biurrun
14d3e7ad11
Remove some silly disabled code.
2012-10-01 10:24:28 +02:00
Paul B Mahol
adc5539e7b
smacker: read escape codes in single get_bits() call
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-10-01 07:51:47 +00:00
Justin Ruggles
56b6a43056
ac3dec: ensure get_buffer() gets a buffer for the correct number of channels
...
If there is an error during frame parsing, but AVCodecContext.channels was
changed and AC3DecodeContext.out_channels was set previously, the two may not
match.
Fixes CVE-2012-2802
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
2012-10-01 00:10:59 -04:00
Michael Niedermayer
14fd34d73b
movenc: fix edit list for the case of negative pts.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-10-01 04:53:40 +02:00
Michael Niedermayer
015b805d13
sws: drop unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 23:14:20 +02:00
Michael Niedermayer
115e291b53
swscale: move main swscale wraper to swscale.c
...
It never belonged to swscale_unscaled.c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 23:10:56 +02:00
Michael Niedermayer
59003fe7c0
qt-faststart: simplify code by using FFMIN
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 22:19:54 +02:00
Michael Niedermayer
610efb6773
qt-faststart: dont allocate a bigger buffer than needed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 22:19:54 +02:00
Jan Ehrhardt
f4d9148fe2
qt-faststart: speedup
...
qt-faststart is terribly slow when the input file and the output file
are on a slow disk like a SD card. By increasing the copy_buffer from
1K to 32M I decreased the processing time on a sample file from
1600 seconds to 4 seconds. The timing difference is during 'copying
rest of file'.
S:\SD_VIDEO\PRG001>e:\utils\qt-faststart 00005.mp4 5.mp4
ftyp 0 32
free 32 8
mdat 40 13744391
moov 13744431 141848
patching stco atom...
patching stco atom...
writing ftyp atom...
writing moov atom...
copying rest of file...
Execution time: 1576.259 s
S:\SD_VIDEO\PRG001>s:\utils\qt-faststart 00005.mp4 5.mp4
ftyp 0 32
free 32 8
mdat 40 13744391
moov 13744431 141848
patching stco atom...
patching stco atom...
writing ftyp atom...
writing moov atom...
copying rest of file...
Execution time: 3.846 s
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 22:19:54 +02:00
Clément Bœsch
13d878366f
lavfi/ashowinfo: check plane value before deferencing.
2012-09-30 21:00:52 +02:00
Giorgio Vazzana
a8cb21fd62
xtea: fix decryption with --enable-small
...
iv decrypt handling code needs to be executed regardless of CONFIG_SMALL
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 20:52:13 +02:00
Clément Bœsch
178ecfc257
swscale: fix To{Y,UV} extern prototypes.
...
This fix a bunch of "assignment from incompatible pointer type" warnings
with GCC.
2012-09-30 20:45:32 +02:00
Clément Bœsch
0065d31dcd
APIchanges: fill hashes.
...
Also fix some dates (use the commit date instead of the author date).
2012-09-30 20:43:26 +02:00
Clément Bœsch
a04cb9823b
Move subrip/text API change info from Changelog to doc/APIchanges.
...
Note that a lavf bump was missing so I'm using 54.28.100 as a reference.
2012-09-30 20:38:05 +02:00
Michael Niedermayer
29619f47c1
fft-test: fix order of operations for calculating the average error
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 20:10:07 +02:00
Paul B Mahol
857797bc14
vima: check packet size before initializing bitstream reader
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-09-30 17:29:37 +00:00
Paul B Mahol
06f5edc9be
vima: fix typo in license header
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-09-30 17:29:37 +00:00
Michael Niedermayer
48154c2594
xtea: move iv decrypt handling code into xtea_crypt_ecb()
...
this simplifies things are avoids a temporary
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 17:52:45 +02:00
Michael Niedermayer
a4dcdd04d7
xtea-test: test inplace decryption
...
Based on test code by: Giorgio Vazzana <mywing81@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 17:51:45 +02:00
Giorgio Vazzana
8c3ee93be5
xtea: fix CBC mode when src=dst
...
In CBC mode, when src=dst and we are decrypting a block different
from the first one, we need to save the current block of ciphertext
(which will constitute the initialization vector for the next block)
before we overwrite it.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 17:51:45 +02:00
Michael Niedermayer
a0321dadfd
xtea-test: factorize test code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 17:51:45 +02:00
Paul B Mahol
3fa100244f
flac: use get_bits_longlong()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-09-30 14:05:04 +00:00
Paul B Mahol
01c9ffa913
tta: let samples declaration match cast
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2012-09-30 13:39:38 +00:00
Michael Niedermayer
f51c4bfe3f
bitstream: add get_bits_longlong() to support more than 32bits
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 15:20:40 +02:00
The makemkv authors
89a823ace9
ffmpeg: disable buffering for stderr, needed for win32 runtime
...
Found in http://www.makemkv.com/download/ffmpeg/mmffmpeg-1.7.7.patch.gz
Commit message by commiter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 15:13:35 +02:00
Michael Niedermayer
20bd921082
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
h264: avoid stuck buffer pointer in decode_nal_units
mpeg12: fix the semantics of the int* parameter of decode()
Conflicts:
libavcodec/mpeg12.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 14:28:35 +02:00
Michael Niedermayer
853a93804d
Merge commit 'd9a2e87b1ce44cce23801e7ec6810f8bf994fa23'
...
* commit 'd9a2e87b1ce44cce23801e7ec6810f8bf994fa23':
mpeg12: move mpeg_decode_frame() lower
avsdec: Set dimensions instead of relying on the demuxer.
wmalosslessdec: Reset put bit buffer when num_saved_bits is reset.
Conflicts:
libavcodec/avs.c
libavcodec/mpeg12.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 14:10:25 +02:00
Michael Niedermayer
e5ce6d447b
Merge commit 'd05f72c75445969cd7bdb1d860635c9880c67fb6'
...
* commit 'd05f72c75445969cd7bdb1d860635c9880c67fb6':
dfa: improve boundary checks in decode_dds1()
wmalosslessdec: Fix reading too many bits in decode_channel_residues()
wmalosslessdec: fix a get_bits(0) in decode_ac_filter
wmalosslessdec: make MCLMS arrays big enough for what is written into them.
indeo4/5: check empty tile size in decode_mb_info().
ivi_common: make ff_ivi_process_empty_tile() static.
indeo5: check tile size in decode_mb_info().
indeo3: fix out of cell write.
Conflicts:
libavcodec/dfa.c
libavcodec/indeo3.c
libavcodec/indeo5.c
libavcodec/ivi_common.c
libavcodec/wmalosslessdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 13:52:48 +02:00
Stefano Sabatini
301f6da039
ffprobe: extend disposition printing support
...
This generalizes the previous work on disposition printing.
Disposition flags are shown in a dedicated section, which should improve
output intellegibility, extensibility and filtering operations.
This breaks output syntax with the recently introduced disposition
printing.
2012-09-30 12:22:19 +02:00
Stefano Sabatini
50efde6bcb
ffprobe: generalize nesting model for the XML writer
...
Do not make use of ad-hoc "tags" code, introduce a new section flag
SECTION_FLAG_HAS_VARIABLE_FIELDS to deal with the tags in a
content-agnostic way.
This is required by the pending disposition change.
2012-09-30 12:07:47 +02:00
Nicolas George
e4b1fcd474
lavu/opt: cosmetic fixes forgotten in the previous patch.
2012-09-30 10:23:08 +02:00
Nicolas George
438978fb4b
opt: implement av_opt_set_from_string().
...
It is similar to av_set_options_string() but accepts a list
of options that can be in shorthand: if the key is omitted
on the first fields, the keys from the shorthand list are
assumed, in order.
2012-09-30 09:21:29 +02:00
Michael Niedermayer
5f1c3c785c
get_bits_long: fix variable type
...
This fixes a theoretical signed overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 02:37:40 +02:00
Michael Niedermayer
01aa664f21
cyuv: implement raw cyuv
...
Fixes Ticket1620
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-30 00:13:54 +02:00
Jindřich Makovička
1a8c6917f6
h264: avoid stuck buffer pointer in decode_nal_units
...
When decode_nal_units() previously encountered a NAL_END_SEQUENCE,
and there are some junk bytes left in the input buffer, but no start codes,
buf_index gets stuck 3 bytes before the end of the buffer.
This can trigger an infinite loop in the caller code, eg. in
try_decode_trame(), as avcodec_decode_video() then keeps returning zeroes,
with 3 bytes of the input packet still available.
With this change, the remaining bytes are skipped so the whole packet gets
consumed.
CC:libav-stable@libav.org
Signed-off-by: Jindřich Makovička <makovick@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-09-29 19:31:17 +02:00
Alexander Strasser
99b18b110c
doc/fate: Move fate config example into doc subdirectory
...
Be compatible with texi2html 5.0 which doesn't search relative
file names in search paths anymore.
Signed-off-by: Alexander Strasser <eclipse7@gmx.net >
2012-09-29 19:27:01 +02:00
Anton Khirnov
0f583d20d5
mpeg12: fix the semantics of the int* parameter of decode()
...
It is got_output, not data_size.
2012-09-29 19:18:39 +02:00
Anton Khirnov
d9a2e87b1c
mpeg12: move mpeg_decode_frame() lower
...
Avoids a forward declaration of decode_chunks().
2012-09-29 19:18:24 +02:00
Michael Niedermayer
85f477935c
avsdec: Set dimensions instead of relying on the demuxer.
...
The decode function assumes that the video will have those dimensions.
Fixes CVE-2012-2801
CC:libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-09-29 19:18:07 +02:00
Michael Niedermayer
d65d834731
wmalosslessdec: Reset put bit buffer when num_saved_bits is reset.
...
Fixes CVE-2012-2799
CC:libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-09-29 19:17:38 +02:00
Anton Khirnov
d05f72c754
dfa: improve boundary checks in decode_dds1()
...
Fixes CVE-2012-2798
CC:libav-stable@libav.org
2012-09-29 19:17:07 +02:00
Anton Khirnov
6a99310fce
wmalosslessdec: Fix reading too many bits in decode_channel_residues()
...
Fixes a part of CVE-2012-2795
CC:libav-stable@libav.org
Based on a patch by Michael Niedermayer <michaelni@gmx.at >
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
2012-09-29 19:16:32 +02:00
Michael Niedermayer
f48fbf2eb5
wmalosslessdec: fix a get_bits(0) in decode_ac_filter
...
Fixes a part of CVE-2012-2795
CC:libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-09-29 19:15:27 +02:00
Michael Niedermayer
607f57152c
wmalosslessdec: make MCLMS arrays big enough for what is written into them.
...
Fixes a part of CVE-2012-2795
CC:libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-09-29 19:14:25 +02:00
Anton Khirnov
ae3da0ae55
indeo4/5: check empty tile size in decode_mb_info().
...
This prevents writing into a too small array if some parameters changed
without the tile being reallocated.
Based on a patch by Michael Niedermayer <michaelni@gmx.at >
Fixes CVE-2012-2800
CC:libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
2012-09-29 19:13:45 +02:00
Anton Khirnov
5d2170c53b
ivi_common: make ff_ivi_process_empty_tile() static.
...
It's not used outside of ivi_common.c
2012-09-29 19:12:57 +02:00
Michael Niedermayer
2d09cdbaf2
indeo5: check tile size in decode_mb_info().
...
This prevents writing into a too small array if some parameters changed
without the tile being reallocated.
Fixes CVE-2012-2794
CC:libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-09-29 19:12:36 +02:00
Anton Khirnov
e4d4044339
indeo3: fix out of cell write.
...
Fixes CVE-2012-2776.
CC:libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
2012-09-29 19:12:04 +02:00
Michael Niedermayer
f049729e61
ffv1enc: fix integer overflow with high resolutions and lots of slices.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-29 19:11:25 +02:00
Michael Niedermayer
594b1fcb28
mov: add av_dlog() to dump edit lists.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-29 18:50:18 +02:00
Michael Niedermayer
3ceeb01c06
mov: only print multiple edit lists warning for actually unsupported cases
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-29 18:44:35 +02:00
Michael Niedermayer
44a7a6300d
lavf: free probe data in case we close before probing finished
...
Fixes Ticket1634
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-29 17:33:05 +02:00
Michael Niedermayer
acfe69669c
bink: reindent
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-29 16:25:29 +02:00
Michael Niedermayer
897d336984
bink: remove unneeded special case in the init code.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-29 16:25:25 +02:00
Michael Niedermayer
574e87943e
bink: get rid of double precision float use
...
Add a small table of integers instead as this is simpler and
avoid rounding issues (though such rounding issues are unlikely in this case)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-29 16:23:57 +02:00
jamal
062cd9acc1
fate: Fix --disable-zlib
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-29 16:09:05 +02:00
rogerdpack
1bdb4b26a8
dshow: enhance error message
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com >
Reviewed-by: Stefano Sabatini <stefasab@gmail.com >
Reviewed-by: Ramiro Polla <ramiro.polla@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-29 15:48:49 +02:00
Michael Niedermayer
6fcd4f3c72
dfa: replace redundant check by assert
...
The values are checked in the wraper function used to call this code.
This was introduced by: ee715f49a0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-29 15:34:22 +02:00
Michael Niedermayer
b96dc093ea
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
wmalosslessdec: increase channel_coeffs/residues size
wmalosslessdec: increase WMALL_BLOCK_MAX_BITS to 14.
lagarith: check count before writing zeros.
wmaprodec: check num_vec_coeffs for validity
avidec: use actually read size instead of requested size
avidec: return 0, not packet size from read_packet().
Conflicts:
libavcodec/lagarith.c
libavcodec/wmalosslessdec.c
libavcodec/wmaprodec.c
libavformat/avidec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-29 15:11:34 +02:00
Michael Niedermayer
8672fc7b04
Merge commit 'b146d74730ab9ec5abede9066f770ad851e45fbc'
...
* commit 'b146d74730ab9ec5abede9066f770ad851e45fbc':
indeo4: update AVCodecContext width/height on size change
dfa: check that the caller set width/height properly.
indeo5dec: Make sure we have had a valid gop header.
cavsdec: check for changing w/h.
lavc: set channel count from channel layout in avcodec_open2().
doc/platform: Rework the Visual Studio linking section
doc/faq: Change the Visual Studio entry to reflect current status
doc/platform: Replace Visual Studio section with build instructions
doc/platform: Nuke section on linking static MinGW-built libs with MSVC
doc/platform: Remove false claim about MinGW installer
doc/platform: Mention MinGW-w64
dsputil_mmx: fix reading prior of the src array in sub_hfyu_median_prediction()
mpegaudiodec: fix short_start calculation
Conflicts:
doc/faq.texi
doc/platform.texi
libavcodec/cavsdec.c
libavcodec/indeo5.c
libavcodec/ivi_common.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-29 14:45:55 +02:00
Anton Khirnov
065b3a1cfa
wmalosslessdec: increase channel_coeffs/residues size
...
Fixes CVE-2012-2792
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
2012-09-29 10:29:53 +02:00
Anton Khirnov
4a969030e4
wmalosslessdec: increase WMALL_BLOCK_MAX_BITS to 14.
2012-09-29 10:29:52 +02:00
Stefano Sabatini
74bd0cf49c
ffprobe: rework/fix ini writer
...
Do not build from scratch the section header for each section, but build
it using the previous level buffer, thus improving efficiency.
Also fix some few corner cases related to numbering which are exposed by
the pending disposition patch.
2012-09-29 10:25:11 +02:00
Stefano Sabatini
01e4537f66
ffprobe: rework/fix flat writer
...
Do not build from scratch the section header for each section, but build
using the previous level buffer, thus improving efficiency and fix some
few corner cases which are exposed by the pending disposition patch.
2012-09-29 10:25:04 +02:00
Stefano Sabatini
06fd4c2dfa
ffprobe: generalize nesting model for the compact writer
...
Regular section fields nested in a regular section are now prefixed by
the nested section name.
This is required by the pending change related to disposition.
2012-09-29 10:24:53 +02:00
Stefano Sabatini
44c1cc3f8e
ffprobe: generalize nesting model for the default writer
...
Regular section fields nested in a regular section are now prefixed by
the nested section name.
This is required by the pending change related to disposition.
2012-09-29 10:24:45 +02:00
Stefano Sabatini
b6ea9c8765
ffprobe: drop SECTION_ENTRY macro
...
The use of the macro makes to add new optional fields somewhat harder.
2012-09-29 10:24:36 +02:00
Stefano Sabatini
23564a4a4a
ffprobe: add support to library ident printing
2012-09-29 10:24:28 +02:00
Michael Niedermayer
b631e4ed64
lagarith: check count before writing zeros.
...
Fixes CVE-2012-2793
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-09-29 09:28:32 +02:00
Michael Niedermayer
99f392a584
wmaprodec: check num_vec_coeffs for validity
...
Fixes CVE-2012-2789
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-09-29 09:28:15 +02:00
Anton Khirnov
0af49a63c7
avidec: use actually read size instead of requested size
...
Fixes CVE-2012-2788
2012-09-29 09:27:59 +02:00
Anton Khirnov
eeade678f0
avidec: return 0, not packet size from read_packet().
2012-09-29 09:27:51 +02:00
Michael Niedermayer
b146d74730
indeo4: update AVCodecContext width/height on size change
...
Fixes CVE-2012-2787
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-09-29 09:27:32 +02:00
Anton Khirnov
ee715f49a0
dfa: check that the caller set width/height properly.
...
Fixes CVE-2012-2786.
2012-09-29 09:27:08 +02:00
Michael Niedermayer
891918431d
indeo5dec: Make sure we have had a valid gop header.
...
This prevents decoding happening on a half initialized context.
Fixes CVE-2012-2779
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-09-29 09:26:30 +02:00
Michael Niedermayer
c20a696306
cavsdec: check for changing w/h.
...
Our decoder does not support changing w/h.
Fixes CVE-2012-2777 and CVE-2012-2784.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-09-29 09:26:04 +02:00
Anton Khirnov
12e1e83461
lavc: set channel count from channel layout in avcodec_open2().
...
Some decoders (e.g. nellymoser) only set channel_layout and do not set
channel count.
2012-09-29 09:25:40 +02:00
Derek Buitenhuis
bad603c66a
doc/platform: Rework the Visual Studio linking section
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-09-28 16:35:49 -04:00
Derek Buitenhuis
08c3156dbf
doc/faq: Change the Visual Studio entry to reflect current status
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-09-28 16:34:18 -04:00
Derek Buitenhuis
f8241055c7
doc/platform: Replace Visual Studio section with build instructions
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-09-28 16:33:22 -04:00
Derek Buitenhuis
7147efa9f5
doc/platform: Nuke section on linking static MinGW-built libs with MSVC
...
This practice is not supported by the MinGW developers, and even requires
patching the MinGW runtimes in newer versions. Furthermore, we now support
build with MSVC, so this section is rendered useless.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-09-28 16:31:07 -04:00
Derek Buitenhuis
d41906f65d
doc/platform: Remove false claim about MinGW installer
...
This works just fine, and has for quite a while, using the mingw-get
installer.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-09-28 16:31:06 -04:00
Derek Buitenhuis
583661ee0d
doc/platform: Mention MinGW-w64
...
This is the toolchain most use to build.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-09-28 16:30:53 -04:00
Derek Buitenhuis
7d1d446990
doc/platform: Rework the Visual Studio linking section
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-09-28 15:52:21 -04:00
Derek Buitenhuis
ed8a2ddeea
doc/faq: Change the Visual Studio entry to reflect current status
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-09-28 15:50:45 -04:00
Derek Buitenhuis
f45b54437a
doc/platform: Replace Visual Studio section with build instructions
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-09-28 15:50:32 -04:00
Derek Buitenhuis
3e071551af
doc/platform: Nuke section on linking static MinGW-built libs with MSVC
...
This practice is not supported by the MinGW developers, and even requires
patching the MinGW runtimes in newer versions. Furthermore, we now support
build with MSVC, so this section is rendered useless.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-09-28 15:27:59 -04:00
Derek Buitenhuis
55254a3f7f
doc/platform: Remove false claim about MinGW installer
...
This works just fine, and has for quite a while, using the mingw-get
installer.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-09-28 15:27:25 -04:00
Derek Buitenhuis
6a3078bb89
doc/platform: Mention MinGW-w64
...
This is the toolchain most, including Libav's nightlies, use to build.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2012-09-28 15:27:13 -04:00
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 >
2012-09-28 20:30:37 +02:00
Michael Niedermayer
bfe735b582
aacdec: detect faac and skip correct amount of startup samples
...
This also fixes aac in adts and other containers than mov.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-28 20:30:37 +02:00
Michael Niedermayer
791b5954bc
dsputil_mmx: fix reading prior of the src array in sub_hfyu_median_prediction()
...
This should fix the utvideoenc valgrind failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-28 12:25:07 -04:00
Stefano Sabatini
ed2b69a4c3
ffprobe: remove unused "args" argument in writer init callback
...
The parameter is no longer used, since the arguments are parsed at the
framework level.
2012-09-28 16:37:27 +02:00
Luca Barbato
97cfa55eea
mpegaudiodec: fix short_start calculation
...
The value should be always 3, as it follows from the specification.
Fix a stack buffer overflow in exponents_from_scale_factors as reported
by asan. Thanks to Dale Curtis for the sample vector.
2012-09-28 16:02:39 +02:00
jamal
a70b4935f1
Add missing version macros to libraries
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-28 15:10:18 +02:00
jamal
b75c3d2b8b
swresample: Create version.h header
...
Reviewed-by: Stefano Sabatini <stefasab@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-28 15:10:36 +02:00
jamal
ec87389183
postproc: Create version.h header
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-28 15:06:26 +02:00
jamal
35e09036c4
avcodec: Add missing include to version.h
...
Reviewed-by: Stefano Sabatini <stefasab@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-28 15:06:08 +02:00
Michael Niedermayer
c402d36afa
nutdec: fix get_vb_trace() / -DTRACE compile
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-28 14:21:53 +02:00
Michael Niedermayer
2acb5cd907
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
libopus: Remap channels using libopus' internal remapping.
Opus decoder using libopus
avcodec: document the use of AVCodecContext.delay for audio decoding
vc1dec: add flush function for WMV9 and VC-1 decoders
http: Increase buffer sizes to cope with longer URIs
nutenc: const correctness for ff_put_v_trace/put_s_trace function arguments
h264_refs: Fix debug tprintf argument types
golomb: const correctness for get_ue()/get_se() function arguments
get_bits: const correctness for get_bits_trace()/get_xbits_trace() arguments
Conflicts:
Changelog
libavcodec/Makefile
libavcodec/version.h
libavformat/http.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-28 13:54:40 +02:00
Nathan Caldwell
d16860a237
libopus: Remap channels using libopus' internal remapping.
...
This way we can directly remap channels from Opus' channel order to
libav's internal channel order, instead of mapping channels from
Opus' order to Vorbis' order then to libav's order.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-09-28 11:03:32 +02:00
Nicolas George
44617d6ec9
Opus decoder using libopus
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-09-28 11:03:20 +02:00
Nathan Caldwell
e4aa3831b7
avcodec: document the use of AVCodecContext.delay for audio decoding
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-09-28 10:50:07 +02:00
Kostya Shishkov
4dc8c8386e
vc1dec: add flush function for WMV9 and VC-1 decoders
...
CC: libav-stable@libav.org
2012-09-28 07:08:54 +02:00
Michael Niedermayer
4fefe91a33
configure: add missing dependancies for gpl tests
...
fixes fate without --enable-gpl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-28 05:25:22 +02:00
Michael Niedermayer
7ed9ec033f
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
dwt: Drop unused functions spatial_compose{53|97}i()
nutdec: Remove unused and broken debug function stub
avcodec: Drop long-deprecated imgconvert.h header
Add Opus support to the Ogg muxer.
Add Opus codec id and codec description.
avformat: Identify anonymous AVIO typedef structs.
Conflicts:
libavcodec/avcodec.h
libavcodec/codec_desc.c
libavcodec/imgconvert.h
libavcodec/version.h
libavformat/oggenc.c
libavformat/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-28 05:11:19 +02:00
Michael Niedermayer
ac7d0c79c3
mp3dec: ask for 8khz switch point mp3s
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-28 04:39:10 +02:00
Michael Niedermayer
a96e3a3e77
tests/Makefile: fix ffprobe test dependancy
...
This fixes the ffprobe tests under mingw/wine
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2012-09-28 02:58:35 +02:00
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 >
2012-09-28 00:09:38 +03:00
Diego Biurrun
bc66827fb1
nutenc: const correctness for ff_put_v_trace/put_s_trace function arguments
2012-09-27 19:32:47 +02:00
Diego Biurrun
6c5b0517e0
h264_refs: Fix debug tprintf argument types
2012-09-27 19:10:10 +02:00
Diego Biurrun
80412997c8
golomb: const correctness for get_ue()/get_se() function arguments
2012-09-27 19:10:10 +02:00
Diego Biurrun
e00215040a
get_bits: const correctness for get_bits_trace()/get_xbits_trace() arguments
2012-09-27 19:10:10 +02:00
Diego Biurrun
4e5b7f31f7
dwt: Drop unused functions spatial_compose{53|97}i()
2012-09-27 12:08:09 +02:00
Diego Biurrun
83655442fa
nutdec: Remove unused and broken debug function stub
2012-09-27 12:02:33 +02:00
Diego Biurrun
0ae3ba8daa
avcodec: Drop long-deprecated imgconvert.h header
2012-09-27 12:02:33 +02:00
Nathan Caldwell
bcc1f7caeb
Add Opus support to the Ogg muxer.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-09-27 10:48:35 +02:00
Andrew D'Addesio
2a3d82ab46
Add Opus codec id and codec description.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2012-09-27 10:48:35 +02:00
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 >
2012-09-27 09:14:22 +02:00
Luca Barbato
22f7942fe7
ffv1: set the range coder state in decode_slice_header
2001-01-01 01:06:41 +01:00
Janne Grunau
dcdfb8ede3
pcmdec: change default of channels parameter to 1
...
This was previously implicitly done in ff_raw_read_header().
Fixes fate tests with pcm input.
2012-10-25 15:14:40 +02:00