Michael Niedermayer
9f8d8c57fb
update for 0.9
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-11 21:24:41 +01:00
Michael Niedermayer
16abd68779
seektest: floatfree
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-11 19:21:39 +01:00
Michael Niedermayer
616eaea8ad
doc/ffmpeg.texi
...
Merge changes done to avconv.texi since the last merge into ffmpeg.texi
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-11 18:50:39 +01:00
Reimar Döffinger
c3068d43a8
Support VP8 in NSV.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-11 18:16:55 +01:00
Michael Niedermayer
a7aa628e9c
regressiontest: try mp2 for wtv
...
our ac3 decoder outputs different things on different platforms.
Idea-by: Reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-11 17:52:40 +01:00
Michael Niedermayer
87d781de7a
regressiontest: try to fix wtv
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-11 16:23:30 +01:00
Clément Bœsch
cc2355817d
life: add mold, mold_color, life_color and death_color options.
2011-12-11 14:14:01 +01:00
Clément Bœsch
c88d6b18ce
life: add seed information in filter summary.
2011-12-11 13:36:58 +01:00
Stefano Sabatini
6c44ff38d6
lavfi: add cellauto source
2011-12-11 11:55:33 +01:00
Reimar Döffinger
60b252eb57
Add caf format regression test.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-11 09:45:17 +01:00
Reimar Döffinger
f22c5bae52
Enable already existing rso regression test.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-11 09:45:17 +01:00
Reimar Döffinger
7c875c2d59
Add regression test for "sox" format muxer/demuxer.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-11 09:45:17 +01:00
Reimar Döffinger
33a43695c6
Add wtv seek test.
...
I am not entirely sure the seek functionality is working correctly,
there are some strange cases like successful seek but no dts value.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-11 09:45:17 +01:00
Reimar Döffinger
5335bff9ec
Add wtv lavf regression test.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-11 09:45:17 +01:00
Michael Niedermayer
1f183733e0
MAINTAINERS: extend syntax for entries
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-11 03:05:37 +01:00
Hanspeter Niederstrasser
bed04e2b03
Correct use of OSX to Mac OS X and properly format yasm providers on Mac OS X
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-11 03:00:30 +01:00
Michael Niedermayer
964912aba5
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (21 commits)
Warn about avserver being broken.
avconv: drop code for special handling of avserver streams.
rawdec: don't set codec timebase.
lavf doxy: add muxing stuff to lavf_encoding group
lavf doxy: add demuxing stuff to lavf_decoding group
lavf doxy: expand/reword metadata API doxy.
lavf doxy: add installed headers to groups.
lavf doxy: add avio groups into the lavf_io group.
lavf doxy: rename lavf I/O group to lavf_io.
lavf doxy: add metadata docs to the main lavf group
ttadec: check channel count as read from extradata.
Add CLJR encoding and decoding regression tests
cljr: remove unused code
flacdec: Support for tracks in cuesheet metadata block
ptx: fix inverted check for sufficient data
flac muxer: fix writing of file header and STREAMINFO header from extradata
ptx: emit a warning on insufficient picture data
utvideo: add fate tests covering all codec variants
doc: update to refer to avconv
doc: remove some stale entries from the faq
...
Conflicts:
Changelog
avconv.c
doc/avconv.texi
doc/faq.texi
doc/ffplay.texi
doc/ffprobe.texi
doc/ffserver.texi
libavcodec/avcodec.h
libavcodec/cljr.c
libavformat/avformat.h
libavformat/riff.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-11 01:05:33 +01:00
Michael Niedermayer
cdba9b617f
eval.texi: document that variables are not shared between expressions.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-10 23:36:30 +01:00
Michael Niedermayer
3dea28cc2e
h264: Fix concealment regression introduced by babf4fe01a
...
Limit the new case to when the decoder is flushed instead of at each idr frame
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-10 23:26:38 +01:00
Michael Niedermayer
8743400961
h264: reset prev_poc_msb to the same value everywhere.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-10 23:03:49 +01:00
Anton Khirnov
2e87b4c511
Warn about avserver being broken.
...
Also remove mentions of it from other avtools' manuals.
2011-12-10 22:02:44 +01:00
Anton Khirnov
5bf6638022
avconv: drop code for special handling of avserver streams.
...
It's broken and doesn't work anyway.
This patch means that avconv will ignore encoding options from the ffm
file and will instead use whatever is provided on the commandline as for
normal output.
2011-12-10 22:02:44 +01:00
Anton Khirnov
e745d7525a
rawdec: don't set codec timebase.
...
It's not supposed to be set outside of lavc. Set r_frame_rate and
avg_frame_rate instead.
2011-12-10 22:02:44 +01:00
Anton Khirnov
489a7b07e9
lavf doxy: add muxing stuff to lavf_encoding group
2011-12-10 22:02:28 +01:00
Anton Khirnov
370f27dee3
lavf doxy: add demuxing stuff to lavf_decoding group
2011-12-10 22:02:28 +01:00
Anton Khirnov
28b4c06b9d
lavf doxy: expand/reword metadata API doxy.
2011-12-10 22:02:28 +01:00
Anton Khirnov
eca06cbed9
lavf doxy: add installed headers to groups.
2011-12-10 22:02:28 +01:00
Anton Khirnov
fb42db7c39
lavf doxy: add avio groups into the lavf_io group.
2011-12-10 22:02:28 +01:00
Anton Khirnov
e4f4a1f93e
lavf doxy: rename lavf I/O group to lavf_io.
2011-12-10 22:02:28 +01:00
Anton Khirnov
b262a05904
lavf doxy: add metadata docs to the main lavf group
2011-12-10 22:02:28 +01:00
Michael Niedermayer
934fe00680
ffmpeg: better warning about loop_input
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-10 21:03:47 +01:00
Shitiz Garg
8bd1f1a4c8
ttadec: check channel count as read from extradata.
...
fixes floating-point exception due to channels being set to 0.
fixes Bug 128.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2011-12-10 14:54:19 -05:00
Paul B Mahol
7d18d17abd
Add CLJR encoding and decoding regression tests
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-12-10 20:11:29 +01:00
Paul B Mahol
65c1011404
cljr: remove unused code
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-12-10 20:11:28 +01:00
Paul B Mahol
3c1f60860d
flacdec: Support for tracks in cuesheet metadata block
...
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2011-12-10 13:42:40 -05:00
Reimar Döffinger
78fde9323d
Run zmbv regression without md5sum.
...
Judging by the differences this should make all FATE
machines pass the test.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-10 19:34:28 +01:00
Reimar Döffinger
0849a0ebb2
rtmpproto: make condition work in overflow case.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-10 19:34:28 +01:00
Reimar Döffinger
8b8a47f6fb
Make detection of single-stream flv work again.
...
It had become dead code when code was added to avoid
exporting audio and video codec id as metadata.
Untested due to lack of sample.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-10 19:34:28 +01:00
Michael Niedermayer
cc61643123
h264: improve "no picture" debug output.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-10 18:51:48 +01:00
Michael Niedermayer
5b2873c1d5
h264: switch from qatars has_b_frames calculation back to mine.
...
Their 2nd try does like the first not work at all.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-10 18:51:48 +01:00
Michael Niedermayer
257c85cddd
adpcm: fix division by zero in fate/creative/intro-partial.wav with -s 2 and -r 0.001:1
...
Bug-Found-by: Shitiz Garg
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-10 18:51:48 +01:00
Janne Grunau
8d61eef917
ptx: fix inverted check for sufficient data
...
Fix regression introduced in 2b53e69 .
2011-12-10 17:01:27 +01:00
Nicolas George
337ce558b6
fftools: add -report option.
2011-12-10 16:40:03 +01:00
Justin Ruggles
28101f6c4e
flac muxer: fix writing of file header and STREAMINFO header from extradata
...
fixes Bug 119
2011-12-10 10:19:41 -05:00
Janne Grunau
2b53e696c8
ptx: emit a warning on insufficient picture data
...
Return the whole packet as consumed in this case and not the size the
packet should have had. Move the insufficient data check into the for
condition to fix a ISO C90 error on bigendian.
2011-12-10 15:29:54 +01:00
Aneesh Dogra
97334f106c
utvideo: add fate tests covering all codec variants
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-12-10 15:29:53 +01:00
Luca Barbato
708060d7d1
doc: update to refer to avconv
2011-12-10 15:15:05 +01:00
Luca Barbato
0395d37abb
doc: remove some stale entries from the faq
...
Some entries should be still amended.
2011-12-10 15:15:05 +01:00
Carl Eugen Hoyos
5207f9597e
Separate mxf_essence_container_uls for audio and video.
...
It is a really bad idea to assign a video codec id
when we have set codec_type to audio and vice versa.
Fixes ticket #721 .
2011-12-10 14:58:57 +01:00
Reimar Döffinger
2483f53693
mxfdec: do not try to use an obviously broken index.
...
Also fixes a memleak.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-10 13:19:24 +01:00
Kostya Shishkov
19341c58e0
Dxtory capture format decoder
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-12-10 11:58:03 +01:00
Michael Niedermayer
f5ecc4c616
lavc: 1000l, unbreak ABI
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-10 07:03:20 +01:00
Michael Niedermayer
cd519b7e83
avi: add escape130 support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-10 06:54:05 +01:00
Michael Niedermayer
02ce07f8c4
amvenc: support videos with heights that are not a multiple of 16.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-10 06:39:57 +01:00
Michael Niedermayer
02acfb1c01
wavdec: add ignore length option to ignore incorrect lengthes
...
like SOX
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-10 05:42:18 +01:00
Paul B Mahol
85cd1eb12f
add missing long_name for amv and dca encoder
...
Reviewed-by: Carl Eugen Hoyos
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-10 05:02:00 +01:00
Michael Niedermayer
4ac862f43c
Makefile: disable compiling avconv by default.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-10 04:46:20 +01:00
Hendrik Leppkes
b7bf93b923
mlp: Use correct speaker locations in TrueHD channel layout.
...
(cherry picked from commit d7787835ad737d4f4d8b6f17e04d981632eeaa91)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-10 02:11:24 +01:00
Michael Niedermayer
c59b80c8d3
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
isom: sort and pretty-print codec_movaudio_tags[]
isom: remove pointless comments in codec_movaudio_tags[]
isom: remove commented-out tag for vorbis
movenc: write 'chan' tag for AC-3 in MOV
mov: add support for reading and writing the 'chan' tag
audioconvert: add some additional channel and channel layout macros
audioconvert: change 7.1 "wide" layout to use side surround channels
movenc: simplify handling of pcm vs. adpcm vs. other compressed codecs
doc: update documentation to use avconv
doc: update demuxers section
doc: extend external library coverage
doc: split platform specific information
doc: port the git-howto to texinfo
doc: provide fallback css and customize @float
doc: document fate in a texinfo
doxy: change hue value to match our green
Conflicts:
doc/fate.txt
doc/ffserver.texi
doc/general.texi
doc/muxers.texi
doc/protocols.texi
doc/t2h.init
libavformat/isom.c
libavformat/mov.c
libavutil/avutil.h
tests/ref/acodec/pcm_s16be
tests/ref/acodec/pcm_s24be
tests/ref/acodec/pcm_s32be
tests/ref/acodec/pcm_s8
tests/ref/lavf/mov
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-10 02:01:03 +01:00
Michael Niedermayer
5b98ea1b73
vb: Add some checks on input buffer related values.
...
Fixes crash with INTRO_FAIL.VB
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-09 23:46:16 +01:00
Michael Niedermayer
4557d7d01f
libx264: workaround a bug in some versions of flash player
...
Fixes Ticket570
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-09 22:56:36 +01:00
Justin Ruggles
4c38633352
isom: sort and pretty-print codec_movaudio_tags[]
...
original order is retained within the same tag or codec id to maintain the
muxing/demuxing priority.
2011-12-09 16:12:58 -05:00
Justin Ruggles
7714770de1
isom: remove pointless comments in codec_movaudio_tags[]
2011-12-09 16:12:58 -05:00
Justin Ruggles
21ebf2d493
isom: remove commented-out tag for vorbis
2011-12-09 16:12:58 -05:00
Justin Ruggles
60cd802daf
movenc: write 'chan' tag for AC-3 in MOV
2011-12-09 16:12:58 -05:00
Justin Ruggles
1fdf18f4b7
mov: add support for reading and writing the 'chan' tag
...
This implements reading the tag in the demuxer and adds support for writing it
in the muxer. Some example channel layout tables for muxing are included for
ac3, aac, and alac, but they are not utilized yet.
2011-12-09 16:12:58 -05:00
Justin Ruggles
b2890f5ed6
audioconvert: add some additional channel and channel layout macros
2011-12-09 16:12:58 -05:00
Justin Ruggles
1d2449a613
audioconvert: change 7.1 "wide" layout to use side surround channels
2011-12-09 16:12:58 -05:00
Justin Ruggles
8e8c51318c
movenc: simplify handling of pcm vs. adpcm vs. other compressed codecs
...
Use Sound Sample Description Version 2 for all MOV files.
Updated FATE references accordingly.
Note that ADPCM is treated as compressed audio in version 2.
2011-12-09 16:12:58 -05:00
Michael Niedermayer
523da37f4c
cljrenc: 2x2 ordered dither support.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-09 19:04:47 +01:00
Michael Niedermayer
74d9b21340
cljrenc: add AVOption to disable dither
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-09 19:04:47 +01:00
Luca Barbato
d5837d7fe9
doc: update documentation to use avconv
2011-12-09 18:26:31 +01:00
Luca Barbato
ca410b4eb0
doc: update demuxers section
...
Cleanup tags usage and update commandline examples.
2011-12-09 18:26:31 +01:00
Luca Barbato
9bdfe9ac1c
doc: extend external library coverage
2011-12-09 18:26:31 +01:00
Luca Barbato
1de6e14efe
doc: split platform specific information
...
Move the platform-specific information in its own file.
2011-12-09 18:26:31 +01:00
Luca Barbato
2f017d9791
doc: port the git-howto to texinfo
2011-12-09 18:26:31 +01:00
Luca Barbato
c1f5da698b
doc: provide fallback css and customize @float
...
Add "note" or "important" class to the generated div.
2011-12-09 18:26:31 +01:00
Luca Barbato
1ebbdda1d2
doc: document fate in a texinfo
...
Summarize the information provided in the wiki and the one provided
in fate.txt
2011-12-09 18:26:17 +01:00
Stefano Sabatini
a1c676c248
filters.texi: remove confusing reference to never integrated -af option
2011-12-09 15:53:23 +01:00
Luca Barbato
b73a01eaf1
doxy: change hue value to match our green
2011-12-09 04:20:41 +01:00
Michael Niedermayer
43a36ad2ee
cljrenc: Add dither to avoid the banding artifcats caused by the very low
...
number of bits used to represent brightness levels.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-09 01:11:06 +01:00
Michael Niedermayer
25b9eef410
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
cljr: K&R cosmetics
cljr: return a more sensible value when encountering invalid headers
cljr: drop unnecessary emms_c() calls without MMX code
cljr: remove useless casts
cljr: group encode/decode parts under single ifdefs
cljr: remove stray semicolon
cljr: add missing return statement in decode_end()
doc: add pulseaudio to the input list
avconv: remove unsubstantiated comment
shorten: avoid abort() on unknown audio types
cljr: add encoder
build: merge lists of HTML documentation targets
tests/examples: Mark some variables only used within their files as static.
tests/tools/examples: Replace direct exit() calls by return.
x86 cpuid: set vendor union members separately
cljr: release picture at end of decoding
rv40: NEON optimised rv40 qpel motion compensation
Conflicts:
doc/examples/muxing.c
libavcodec/cljr.c
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-09 00:05:51 +01:00
Stefano Sabatini
b229485f1a
APIchanges: add entry after av_buffersink_poll_frame() addition
2011-12-08 22:55:33 +01:00
Michael Niedermayer
4ab495b4ee
Merge remote-tracking branch 'tjoppen/opatom_demuxing_and_seeking'
...
* tjoppen/opatom_demuxing_and_seeking:
mxfdec: Index table driven demuxing and seeking
mxfdec: Compute packet offsets properly
mxfdec: Use MaterialPackage - Track - TrackID instead of the system_item hack
mxfdec: Parse more values in PartitionPack
mxfdec: Parse TemporalOffsets
mxfdec: av_dlog():ify 'no corresponding source package found'
mxfdec: Compute essence container offsets and lengths into mxf->partitions
mxfdec: Make mxf->partitions sorted by offset
mxfdec: Parse ThisPartition
mxfdec: Speed up metadata and index parsing
mxfdec: Make sure DataDefinition is consistent between material track and source track
mxfdec: Add EssenceContainer UL found in 0001GL00.MXF.A1.mxf_opatom.mxf
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 21:29:31 +01:00
Michael Niedermayer
74436ad51e
libnut: NULL priv->nut after nut_demuxer_uninit() as a saftey precaution.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 21:21:34 +01:00
Michael Niedermayer
e21f8a07ca
libnut: Check nut_demuxer_init() return value.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 21:21:33 +01:00
Michael Niedermayer
6f7f239604
libnut: check for av_malloc failure.
...
No, ive no testcase, i just spoted these when looking ...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 21:21:32 +01:00
Michael Niedermayer
ec9d92700e
ffmpeg: Use the buffer sinks poll instead of its input.
...
This fixes the case that the buffer sinks fifo contains frames which
would not show up on the poll from its input
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 21:19:27 +01:00
Michael Niedermayer
a502939d64
buffersink: Implement a poll function.
...
With this the application can find out how many frames are available.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 21:19:23 +01:00
Tomas Härdin
ddcf3e0535
mxfdec: Index table driven demuxing and seeking
...
This adds OPAtom support and proper seeking.
D-10 and non-seekable OP1a streams still use the old demuxing/seeking code.
2011-12-08 20:28:49 +01:00
Diego Biurrun
6b60a4c9c9
cljr: K&R cosmetics
2011-12-08 20:28:27 +01:00
Diego Biurrun
1c45c64c9d
cljr: return a more sensible value when encountering invalid headers
2011-12-08 20:28:27 +01:00
Diego Biurrun
163682fab3
cljr: drop unnecessary emms_c() calls without MMX code
2011-12-08 20:28:26 +01:00
Michael Niedermayer
fab97adb66
docs: Minor project name cleanup
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 20:21:28 +01:00
Michael Niedermayer
a4bf093e7b
indevs.texi: fix application name to match the code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 20:21:28 +01:00
Michael Niedermayer
7c41995e00
ffmpeg: more exact comment about libavformat.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 20:21:28 +01:00
Tomas Härdin
5e67e3eac2
mxfdec: Compute packet offsets properly
...
This replaces the old essence_offset code
2011-12-08 19:13:18 +01:00
Tomas Härdin
5fb800f49a
mxfdec: Use MaterialPackage - Track - TrackID instead of the system_item hack
2011-12-08 19:11:57 +01:00
Tomas Härdin
fd34dbea58
mxfdec: Parse more values in PartitionPack
...
These values include KAGSize, HeaderByteCount and IndexByteCount.
The length of the pack itself is also stored, and KAGSize is sanity checked.
The FATE sample has KAGSize == 0, which is adjusted to 512.
Other bad KAGSizes are set to 1.
2011-12-08 19:11:16 +01:00
Carl Eugen Hoyos
935ac228e4
Fix typo: Correctly parse 64 byte umid tags in bext metadata.
2011-12-08 19:00:55 +01:00
Nicolas George
26c6fec9d9
lavu: introduce av_log_format_line.
2011-12-08 18:47:47 +01:00
Michael Niedermayer
15c481614b
Merge remote-tracking branch 'shariman/wmall'
...
* shariman/wmall:
Pass pointer to integer buffer instead of integer to memcpy
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 18:44:46 +01:00
jb@kdenlive.org
e2baaa21aa
mpegtsenc: recognize .mts as MPEG Transport Stream (encoding)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 18:36:20 +01:00
Paul B Mahol
118ca0c79a
Add Escape 130 to the documentation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 18:33:15 +01:00
Michael Niedermayer
bef8dfa056
escape130: replace can_safely_read() by get_bits_left()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 18:31:32 +01:00
Michael Niedermayer
f7da12350e
escape130: give all av_log() a context
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 18:31:32 +01:00
Michael Niedermayer
40d6296095
escape130: The minimum read in and after decode_skip_count() is 4 bits.
...
Thus we can check for 4 being available.
If the next block is skiped we need 4 bits to encode the skip. If the
next block is not skiped then we need 1 bit for the skip code and
at least 3 bits for the block.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 18:31:32 +01:00
Michael Niedermayer
59d3656f6e
escape130: Check dimensions to be a multiple of the block size.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 18:31:21 +01:00
Tomas Härdin
7560c26495
mxfdec: Parse TemporalOffsets
2011-12-08 18:19:48 +01:00
Tomas Härdin
623128d782
mxfdec: av_dlog():ify 'no corresponding source package found'
...
This isn't an error. It's also expected behavior for OPAtom files.
2011-12-08 18:19:48 +01:00
Tomas Härdin
336246238e
mxfdec: Compute essence container offsets and lengths into mxf->partitions
2011-12-08 18:19:44 +01:00
Mashiat Sarker Shakkhar
6d4deecfdf
Pass pointer to integer buffer instead of integer to memcpy
2011-12-08 22:53:36 +06:00
Carl Eugen Hoyos
8ac6469575
Silence a warning when compiling Escape 130 decoder.
...
Fixes:
libavcodec/escape130.c:177:17: warning: ISO C90 forbids mixed declarations and code
Reviewed-by: Paul B Mahol
2011-12-08 17:14:47 +01:00
Mans Rullgard
bbc10185ee
cljr: remove useless casts
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-08 15:56:31 +00:00
Mans Rullgard
baf3b6e594
cljr: group encode/decode parts under single ifdefs
...
This groups the encode/decode parts under single ifdefs and
eliminates the encode_init() function as it merely calls
common_init(). Also fix whitespace in moved code.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-08 15:56:30 +00:00
Mans Rullgard
9a1420bfda
cljr: remove stray semicolon
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-08 15:56:30 +00:00
Paul B Mahol
ca52bae6ec
cljr: add missing return statement in decode_end()
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-08 14:44:05 +00:00
Michael Niedermayer
31c55c572a
escape130: 10l for myself for not initializing y_base.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 13:25:40 +01:00
Nicolas George
e91c088055
lavf: lower the log level of "parser not found".
...
The information is relevant, but under normal circumstances
it raises far too many false alarms.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 13:04:02 +01:00
Luca Barbato
12dca02e9e
doc: add pulseaudio to the input list
2011-12-08 12:47:39 +01:00
Luca Barbato
f75e3d25d0
avconv: remove unsubstantiated comment
...
All the currently supported OS-es manage to use return values
properly.
2011-12-08 12:47:34 +01:00
John Brooks
8562d9bd6c
shorten: avoid abort() on unknown audio types
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-12-08 11:30:24 +01:00
Tomas Härdin
289bc14449
mxfdec: Make mxf->partitions sorted by offset
...
This also zeroes new entries for good measure (used by future patches).
2011-12-08 11:06:23 +01:00
Paul B Mahol
e93947b7d8
cljr: add encoder
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-12-08 09:47:53 +01:00
Michael Niedermayer
06798c6e3b
escape130: Fix y_base handling, this fixes some artifacts, vissible in most videos.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 06:01:50 +01:00
Michael Niedermayer
8ff3d1ccec
escape130: make sure cliping is done on signed values.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 05:59:36 +01:00
Michael Niedermayer
4f79c7dd08
Merge remote-tracking branch 'richardpl/escape130'
...
* richardpl/escape130:
escape130: fix colors
escape130: remove trailing whitespace
rpl: enable escape130 codec
escape130: minimal effort to make it compile without warnings
Escape 130 (RPL) decoder
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 05:47:27 +01:00
Carl Eugen Hoyos
0cc9949ead
Mark one colour as transparent in the gif image encoder
...
if the input palette contains at least one colour
that is more than 50% transparent.
Fixes ticket #715 .
2011-12-08 02:48:31 +01:00
Carl Eugen Hoyos
51d7cd3596
Decode RGB ljpeg to RGB24.
...
No alpha channel is decoded, the output used to be completely transparent.
2011-12-08 02:45:53 +01:00
Carl Eugen Hoyos
9608e3a182
Support decoding 56 byte BMP Bitmap Information Header.
...
Fixes ticket #719 .
2011-12-08 02:45:53 +01:00
Anatoliy Wasserman
6778f9d9f2
pthread: fixed thread initialization issues related to thread-safe buffer allocator
...
Signed-off-by: Anatoliy Wasserman <anatoliy.wasserman@yandex.ru >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 02:01:21 +01:00
Diego Biurrun
47b20a1db0
build: merge lists of HTML documentation targets
2011-12-08 01:01:00 +01:00
Diego Biurrun
4dccfff9dd
tests/examples: Mark some variables only used within their files as static.
2011-12-08 01:01:00 +01:00
Diego Biurrun
9a5d6c23c5
tests/tools/examples: Replace direct exit() calls by return.
2011-12-08 01:00:58 +01:00
Sean McGovern
be0675ce67
x86 cpuid: set vendor union members separately
...
Solaris Studio (suncc) has difficulty with filling in
members of a union. Instead, let's retrieve and store the
cpuid() results separately. This is still a compiler bug,
however this fix does not cause a regression on other platforms.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-12-08 00:57:11 +01:00
Michael Niedermayer
ec8a3e25d8
Merge remote-tracking branch 'shariman/wmall'
...
* shariman/wmall:
Partially fix CDLMS prediction
Conflicts:
libavcodec/wmalosslessdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 00:37:55 +01:00
Paul B. Mahol
04a5eaa1a5
cljr: release picture at end of decoding
...
Otherwise after transcoding from cljr we get: Found 1 unreleased buffers!
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-12-08 00:36:32 +01:00
Michael Niedermayer
8e2bab5d4b
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
drawtext: remove typo
pcm-mpeg: implement new audio decoding api
w32thread: port fixes to pthread_cond_broadcast() from x264.
doc: add editor configuration section with Vim and Emacs settings
dxva2.h: include d3d9.h to define LPDIRECT3DSURFACE9
avformat/utils: Drop unused goto label.
doxygen: Replace '\' by '@' in Doxygen markup tags.
cosmetics: drop some completely pointless parentheses
cljr: simplify CLJRContext
drawtext: introduce rand(min, max)
drawtext: introduce explicit draw/hide variable
rtmp: Use nb_invokes for all invoke commands
Conflicts:
libavcodec/mpegvideo.c
libavfilter/vf_drawtext.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-08 00:23:37 +01:00
Mans Rullgard
392107ad07
rv40: NEON optimised rv40 qpel motion compensation
...
Based on patch by Janne Grunau.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-07 22:38:14 +00:00
Mashiat Sarker Shakkhar
c5cd231151
Partially fix CDLMS prediction
2011-12-08 03:57:21 +06:00
Reimar Döffinger
7023fb81c7
One last try to get zmbv test to work across all fate machines.
...
Change compression level to 0 this time.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-07 21:46:48 +01:00
Michael Niedermayer
8b85c29463
qtrledec: Fix artifacts in tickets/226/qt_rle_bw.mov
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-07 21:11:51 +01:00
Alexis Ballier
1af91978db
qtrle.c: Fix for ticket #226 .
...
In 1bpp mode, interpret skip&0x80 as "start a new line" instead of "go to next line", this is almost the same except for the first line which was always skipped before and caused to try to write an extra line at the end of the frame (ticket #226 ).
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-07 21:11:51 +01:00
Luca Barbato
78212cefe1
drawtext: remove typo
...
It slipped through the last two iterations.
2011-12-07 20:40:18 +01:00
Hendrik Leppkes
bc057f7592
pcm-mpeg: implement new audio decoding api
...
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2011-12-07 13:52:00 -05:00
Ronald S. Bultje
8b03d7fe95
w32thread: port fixes to pthread_cond_broadcast() from x264.
2011-12-07 10:30:54 -08:00
Diego Biurrun
d8538f06e6
doc: add editor configuration section with Vim and Emacs settings
...
based on a patch by Victor Vasiliev, vasilvv gmail com
2011-12-07 18:57:43 +01:00
Tomas Härdin
e5f9c8927b
mxfdec: Parse ThisPartition
2011-12-07 17:43:36 +01:00
Tomas Härdin
dcd30b83b4
mxfdec: Speed up metadata and index parsing
...
Specifically, this means parsing as before until we run into essence.
At that point we seek to the footer and parse until EOF. After that we start
seeking backward to the previous partition and parse that until we run into
essence or the next partition. This procedure is repeated until we encounter
the last partition we parsed in the forward direction.
The end result of all this is that large essence containers aren't needlessly
parsed. This speeds up parsing large files a lot.
2011-12-07 17:22:02 +01:00
Rafaël Carré
7efea2a051
dxva2.h: include d3d9.h to define LPDIRECT3DSURFACE9
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-12-07 16:54:23 +01:00
Tomas Härdin
e1914b5a2f
mxfdec: Make sure DataDefinition is consistent between material track and source track
...
This fixes 0001GL.MXF.V1.mxf_opatom.mxf and 0001GL00.MXF.A1.mxf_opatom.mxf
getting two streams each due to both using the same SourcePackageID.
2011-12-07 16:26:09 +01:00
Tomas Härdin
1170749b39
mxfdec: Add EssenceContainer UL found in 0001GL00.MXF.A1.mxf_opatom.mxf
2011-12-07 16:26:09 +01:00
Michael Niedermayer
0be95fe183
MAINTAINERS: ask maintainers to help keep their entries in this file upto date.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-07 15:47:19 +01:00
Matthieu Bouron
070a40f1b7
gxfenc: support timecode option
...
Reviewed-by: Baptiste Coudurier
2011-12-07 15:29:26 +01:00
Diego Biurrun
c7e8187d9d
avformat/utils: Drop unused goto label.
...
libavformat/utils.c:2165:2: warning: label ‘fail’ defined but not used
2011-12-07 15:29:14 +01:00
Diego Biurrun
ff159e7816
doxygen: Replace '\' by '@' in Doxygen markup tags.
2011-12-07 15:29:14 +01:00
Diego Biurrun
ee41963f19
cosmetics: drop some completely pointless parentheses
2011-12-07 15:29:13 +01:00
Paul B. Mahol
fc9489f6ad
cljr: simplify CLJRContext
...
There is no need to have delta, offset and gb in CLJRContext.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-12-07 15:15:02 +01:00
Luca Barbato
f5edfc9e92
drawtext: introduce rand(min, max)
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-12-07 12:11:14 +01:00
Luca Barbato
73585620b8
drawtext: introduce explicit draw/hide variable
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-12-07 12:11:14 +01:00
Carl Eugen Hoyos
a99dbe014d
Do not ignore full transparency when writing png palette.
...
This reverts r6689, "Make PNG produce correct 8-bit pictures".
2011-12-07 11:31:27 +01:00
Martin Storsjö
1eef08f98c
rtmp: Use nb_invokes for all invoke commands
...
704af3e29c broke publishing
of rtmp streams, at least publishing to Wowza servers.
This changes all invoke commands to use nb_invokes.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-12-07 09:01:55 +02:00
Michael Niedermayer
901af94b69
movenc: Always write EDTS when we are able to.
...
Inspired by a patch from Michael Root
Idea-by: Baptiste Coudurier
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-07 05:21:37 +01:00
Michael Niedermayer
1fa8ff38e4
Merge remote-tracking branch 'shariman/wmall'
...
* shariman/wmall:
Fix lms_update()
Move num_lms reading out of a loop
Use correct value for range
Fix some int / int16_t / int32_t confusion
Implement revert_mclms() and associated functions
Fix two more int16_t vs. int confusion
Init s->cdlms[][].recent to order - 1
Add a size argument to dump_int_buffer()
Get rid of logging that are not required anymore
Fix some int vs. int16_t confusion
Conflicts:
libavcodec/wmalosslessdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-07 04:49:42 +01:00
Michael Niedermayer
76d7d1b0bd
img2: 10l typo
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-07 03:19:42 +01:00
Carl Eugen Hoyos
c1e2ca1e31
Allow auto-detection of ljpg images.
2011-12-07 02:32:59 +01:00
Michael Niedermayer
ff4800c16b
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
Code cleanup - mpegvideo.c - 500-1000line
rv40: NEON optimised weighted prediction
rv40: NEON optimised chroma MC
ARM: move NEON H264 chroma mc to a separate file
rv34: NEON optimised inverse transform functions
Conflicts:
libavcodec/mpegvideo.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-07 02:04:00 +01:00
Michael Niedermayer
d9ced9fec6
h264: init prev_frame_num to -1 on init
...
Fixes Ticket711
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-07 00:47:41 +01:00
Michael Niedermayer
6287a356e3
h264: Fix memleaks on close, reset more fields
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-07 00:47:41 +01:00
Carl Eugen Hoyos
ba3bb53bdc
Fix 8BPS RGB32 output, the alpha channel was ignored.
...
Reviewed-by: Roberto Togni
2011-12-06 23:06:27 +01:00
Konstantin Todorov
4d9ec050a2
Code cleanup - mpegvideo.c - 500-1000line
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-12-06 11:32:38 -08:00
Reimar Döffinger
6ecc78b707
Choose compression level 6 for zmbv test.
...
The default of 9 gives different results on different FATE systems.
However the zlib test using compression level 6 works, so
try this instead.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-06 19:49:33 +01:00
Michael Niedermayer
e1ccc9216b
movdec: remove redundant size<=8 check.
...
Its checked a few lines below too.
The only difference is that empty atoms with size=0 will now get parsed too.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-06 17:42:10 +01:00
Michael Niedermayer
7d90bc9f2a
movdec: Read extended 64bit size before the debug av_log() and only when there
...
was enough space to read the 32bit size.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-06 17:35:52 +01:00
Mihnea Balta
fef2da6a22
movdec: Fix bad computed size for atoms with size 0 in MOV files
...
The computed size doesn't contain the header size because it's already
skipped by incrementing total_size, but then it's skipped again in the
last line. The atom comes out 8 bytes short and the function
mov_read_chan() aborts the whole parsing process. I think the computed
size should be atom.size - total_size + 8.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-06 17:31:17 +01:00
Michael Niedermayer
f0d0ae3b1e
mov: increase total_size only when it actually increases.
...
This is just cosmetic as the if() is always true.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-06 17:21:05 +01:00
Michael Niedermayer
15130b94fc
movenc: support spliting fragments based on bytesize instead of duration.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-06 16:28:36 +01:00
Michael Niedermayer
cf8ec019ab
movenc: fragment support
...
Reviewed-by: Baptiste Coudurier
Tested-with-QT: Baptiste Coudurier
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-06 16:15:35 +01:00
Michael Niedermayer
c89488588b
ffmpeg: Warn if filters poll & request frame behave wrongly.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-06 16:08:29 +01:00
Stefano Sabatini
7ecabc8505
vsrc_life: fix comment in parse_rule()
2011-12-06 15:03:51 +01:00
Stefano Sabatini
3af5ddb24b
vf_scale: give a clue in case of invalid expression self-reference
...
Address trac ticket #706 .
2011-12-06 15:03:51 +01:00
Janne Grunau
6c88988866
rv40: NEON optimised weighted prediction
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-06 13:48:25 +00:00
Janne Grunau
f5c05b9aa5
rv40: NEON optimised chroma MC
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-06 13:48:25 +00:00
Mans Rullgard
f054a82727
ARM: move NEON H264 chroma mc to a separate file
...
This allows sharing code with the rv40 version of these functions.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-06 13:48:24 +00:00
Janne Grunau
42d32cf53c
rv34: NEON optimised inverse transform functions
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-06 13:48:24 +00:00
Michael Niedermayer
b404ab9e74
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
mov: Don't av_malloc(0).
avconv: only allocate 1 AVFrame per input stream
avconv: fix memleaks due to not freeing the AVFrame for audio
h264-fate: remove -strict 1 except where necessary (mr4/5-tandberg).
misc Doxygen markup improvements
doxygen: eliminate Qt-style doxygen syntax
g722: Add a regression test for muxing/demuxing in wav
g722: Change bits per sample to 4
g722dec: Signal skipping the lower bits via AVOptions instead of bits_per_coded_sample
api-example: update to use avcodec_decode_audio4()
avplay: use avcodec_decode_audio4()
avplay: use a separate buffer for playing silence
avformat: use avcodec_decode_audio4() in avformat_find_stream_info()
avconv: use avcodec_decode_audio4() instead of avcodec_decode_audio3()
mov: Allow empty stts atom.
doc: document preferred Doxygen syntax and make patcheck detect it
Conflicts:
avconv.c
ffplay.c
libavcodec/mlpdec.c
libavcodec/version.h
libavformat/mov.c
tests/codec-regression.sh
tests/fate/h264.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-06 01:37:27 +01:00
Carl Eugen Hoyos
a448a5d1c4
Do not fail fatally if chan atom is too short.
2011-12-06 00:16:22 +01:00
Gavin Kinsey
4547d883d3
Fix compilation for C++ applications
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-05 21:13:45 +01:00
Michael Niedermayer
b27ac355b7
movdec: Fix parsing of a very last empty atom of size 8.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-05 21:13:45 +01:00
Reimar Döffinger
61b1d85c1f
Add tests for several encoders.
...
More specifically, PNG, v210, zlib and zmbv codecs.
zmbv needs vf_scale to be able to produce PAL8.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-05 20:05:44 +01:00
Reimar Döffinger
c66bd78e3d
vf_scale: support PAL8 output by producing BGR8.
...
While quality is bad, PAL8 support is needed to allow testing some
encoders that only support PAL8 input.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-05 20:05:44 +01:00
Reimar Döffinger
d086c1203c
Add coverage exclusions for test code.
...
For some of the code e.g. doing timing measurements there is no
real point in running regression testing on it, thus it should
not be counted against coverage.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-05 20:05:44 +01:00
Reimar Döffinger
840ecc9e07
Add coverage support.
...
Adds --enable-coverage to configure and a "coverage-html" make target.
The dependency stuff in the Makefile is a bit questionable, but the
best I could think of so far.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-05 20:04:48 +01:00
Alex Converse
52401b82bd
mov: Don't av_malloc(0).
...
malloc() is allowed to return NULL when zero is the argument. This
causes us to think malloc has failed and return AVERROR(ENOMEM). In
addition OS X malloc() returns an unfreeable non-NULL pointer for size
zero when alignment is greater than 16.
2011-12-05 09:51:35 -08:00
Justin Ruggles
9179f27c64
avconv: only allocate 1 AVFrame per input stream
...
This avoids allocating/freeing an AVFrame for each packet decode. It also
simplifies error handling in transcode_audio() and transcode_video().
2011-12-05 11:54:24 -05:00
Justin Ruggles
110d2af28e
avconv: fix memleaks due to not freeing the AVFrame for audio
2011-12-05 10:53:29 -05:00
Ronald S. Bultje
b41995d20e
h264-fate: remove -strict 1 except where necessary (mr4/5-tandberg).
2011-12-05 07:39:46 -08:00
Michael Niedermayer
51177b1fe9
lavc: Mark fields that require av_opt_ptr()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-05 13:23:17 +01:00
Michael Niedermayer
31f93fc5f8
lavc: Fix sizeof(AVFrame) useability docs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-05 13:22:46 +01:00
Michael Niedermayer
b9d2b45165
lavc: Document AVFrame av_opt_ptr() relation.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-05 13:22:20 +01:00
Diego Biurrun
e873c03ac7
misc Doxygen markup improvements
2011-12-05 13:06:58 +01:00
Diego Biurrun
c68fafe0d2
doxygen: eliminate Qt-style doxygen syntax
2011-12-05 13:06:58 +01:00
Martin Storsjö
714cd7e758
g722: Add a regression test for muxing/demuxing in wav
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-12-05 12:41:46 +02:00
Sjoerd Simons
f32fd31858
g722: Change bits per sample to 4
...
Earlier, bits per sample was defined as 8, since
bits_per_coded_sample was used to indicate whether to ignore
the lower bits of the codeword, having values 6, 7 or 8.
g722 encodes 2 samples into one byte codeword, therefore the
bits per sample is 4. By changing this, the generated timestamps
for streams encoded with g722 become correct.
This makes timestamp generation for g722 data correct (both when
encoding and when demuxing from raw g722 files).
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-12-05 12:41:46 +02:00
Martin Storsjö
6fcbb0f553
g722dec: Signal skipping the lower bits via AVOptions instead of bits_per_coded_sample
...
This avoids using bits_per_coded_sample for this information.
bits_per_coded_sample should be 4 for this codec normally,
since two samples are encoded into one 8 bit codeword.
In principle, this might be info that needs to be passed from
a demuxer, and in that case, a private AVOption isn't the best
choice, but no such samples are available at the moment, so
that use case is purely theoretical at the moment.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-12-05 12:41:23 +02:00
Michael Niedermayer
406e9647a0
ffplay: Avoid directly accessing AVFrame fields that differ between forks.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-05 03:22:10 +01:00
Michael Niedermayer
738c603a22
ffmpeg: Avoid directly accessing AVFrame fields that differ between forks.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-05 03:22:08 +01:00
Michael Niedermayer
fef411ef3b
lavc: Add a AVClass for AVFrames.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-05 03:22:06 +01:00
Michael Niedermayer
dff97be808
av_opt: add av_opt_ptr() to return a pointer to a field of a object based on
...
an AVClass
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-05 03:22:04 +01:00
Michael Niedermayer
618fb9cc06
ffmpeg: handle stream copy timebase selection for mp4 as if it had VFPS set.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-05 03:19:28 +01:00
Justin Ruggles
0bafe04917
api-example: update to use avcodec_decode_audio4()
2011-12-04 18:29:51 -05:00
Justin Ruggles
f199f38573
avplay: use avcodec_decode_audio4()
2011-12-04 18:29:51 -05:00
Justin Ruggles
e2a2c49fcd
avplay: use a separate buffer for playing silence
2011-12-04 18:29:51 -05:00
Justin Ruggles
f08e54e83d
avformat: use avcodec_decode_audio4() in avformat_find_stream_info()
2011-12-04 18:29:51 -05:00
Justin Ruggles
d1241ff3b2
avconv: use avcodec_decode_audio4() instead of avcodec_decode_audio3()
2011-12-04 18:29:51 -05:00
Alex Converse
6d23d19729
mov: Allow empty stts atom.
...
Fixes regressions caused by 30c3d976
2011-12-04 15:20:48 -08:00
Michael Niedermayer
707138593a
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
adpcmenc: cosmetics: pretty-printing
ac3dec: cosmetics: pretty-printing
yuv4mpeg: cosmetics: pretty-printing
shorten: remove dead initialization
roqvideodec: set AVFrame reference before reget_buffer.
bmp: fix some 1bit samples.
latmdec: add fate test for audio config change
oma: PCM support
oma: better format detection with small probe buffer
oma: clearify ambiguous if condition
wavpack: Properly clip samples during lossy decode
Code clean-up for crc.c, lfg.c, log.c, random_see.d, rational.c and tree.c.
Cleaned pixdesc.c file in libavutil
zmbv.c: coding style clean-up.
xan.c: coding style clean-up.
mpegvideo.c: code cleanup - first 500 lines.
Conflicts:
Changelog
libavcodec/adpcmenc.c
libavcodec/bmp.c
libavcodec/zmbv.c
libavutil/log.c
libavutil/pixdesc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-05 00:11:57 +01:00
Diego Biurrun
def5dc1260
doc: document preferred Doxygen syntax and make patcheck detect it
2011-12-04 23:49:48 +01:00
Chris Berov
dc6d043050
adpcmenc: cosmetics: pretty-printing
...
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2011-12-04 17:07:48 -05:00
Chris Berov
541d083a40
ac3dec: cosmetics: pretty-printing
...
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2011-12-04 16:15:48 -05:00
Chris Berov
a4e21baa74
yuv4mpeg: cosmetics: pretty-printing
...
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2011-12-04 15:58:40 -05:00
Stefano Sabatini
2f8b6e909d
lavfi: add life source
2011-12-04 21:18:37 +01:00
Stefano Sabatini
6c26fe8b5a
aevalsrc: add duration option
2011-12-04 21:13:22 +01:00
Paul B. Mahol
eda8731285
shorten: remove dead initialization
...
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2011-12-04 15:12:05 -05:00
Peter Ross
ba8410cb44
Microsoft Windows ICO demuxer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-04 16:44:20 +01:00
Reimar Döffinger
7679bd6e60
roqvideodec: set AVFrame reference before reget_buffer.
...
Otherwise it might return a write-only frame which would break
decoding completely.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-12-04 16:04:27 +01:00
Carl Eugen Hoyos
1e92d58e44
bmp: fix some 1bit samples.
...
<= 8bpp BMP images always have palette.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-12-04 16:04:27 +01:00
Janne Grunau
8dd92eca74
latmdec: add fate test for audio config change
2011-12-04 15:38:14 +01:00
Michael Niedermayer
b4425f26bb
doc/filters.texi: Update drawtext docs so that the documented input width/height variables are compatible with qatar.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-04 15:31:58 +01:00
Michael Niedermayer
dda3d716d6
vf_drawtext: support W/H parameters to reduce UI differences to qatar
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-04 15:29:26 +01:00
Michael Niedermayer
594090c6c2
ffmpeg: select best pixel format for the encoder if no exact match.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-04 15:26:52 +01:00
David Goldwich
c8b27a0ec4
oma: PCM support
...
Signed-off-by: David Goldwich <david.goldwich@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-12-04 15:21:06 +01:00
David Goldwich
8ae5eb75df
oma: better format detection with small probe buffer
...
Signed-off-by: David Goldwich <david.goldwich@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-12-04 15:20:10 +01:00
David Goldwich
e96070074d
oma: clearify ambiguous if condition
...
Signed-off-by: David Goldwich <david.goldwich@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-12-04 15:19:51 +01:00
Michael Niedermayer
f88d5df383
vf_drawtext: cosmetics to reduce diff to qatar
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-04 02:27:45 +01:00
Michael Niedermayer
297422b338
vf_drawtext: Add main_w/h to improve compatibility with the modified UI
...
from the fork.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-04 02:08:56 +01:00
Michael Niedermayer
fb266f5973
h264: show when has_b_frames is being increased.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-04 01:41:22 +01:00
Michael Niedermayer
7f92f3d812
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
h264: fix frame reordering code.
fate: Add a test for the VBLE decoder
doc: break some long lines in developer.texi
drawtext: make x and y parametric
drawtext: manage memory allocation better
drawtext: refactor draw_text
doc: remove space between variable and post increment in example code
Conflicts:
doc/developer.texi
doc/filters.texi
libavcodec/h264.c
libavfilter/vf_drawtext.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-04 01:02:37 +01:00
Derek Buitenhuis
a548b6cbfc
wavpack: Properly clip samples during lossy decode
...
When decoding lossy WavPack samples, they are supposed
to be clipped, in order to be decoded correctly.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-12-03 15:32:21 -08:00
Yordan Makariev
425b45d4b0
Code clean-up for crc.c, lfg.c, log.c, random_see.d, rational.c and tree.c.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-12-03 15:13:48 -08:00
Tsvetelina Borisova
4a59eca97a
Cleaned pixdesc.c file in libavutil
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-12-03 14:36:11 -08:00
Nathan Adil Maxson
8f8c785ffc
zmbv.c: coding style clean-up.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-12-03 14:11:39 -08:00
Nathan Adil Maxson
6eedeefe0b
xan.c: coding style clean-up.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-12-03 14:11:26 -08:00
Konstantin Todorov
363114e813
mpegvideo.c: code cleanup - first 500 lines.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-12-03 14:03:27 -08:00
Michael Niedermayer
ff53c79d0a
flvdec: Stop searching for streams once a audio & a video stream has been found
...
instead of when the 2nd stream has been found.
This isnt ideal as we will likely still like before miss a data stream.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 21:39:53 +01:00
Reimar Döffinger
85372f9d57
Add forgotten %ifdef HAVE_AVX.
...
Fixes compilation with older YASM/NASM versions.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-12-03 20:46:42 +01:00
Ronald S. Bultje
adedd840e2
h264: fix frame reordering code.
...
Fixes fate-h264-conformance-{mr2_tandberg_e,mr3_tandberg_b} without
requiring -strict 1.
2011-12-03 08:24:27 -08:00
Nicolas George
976b095939
lavu/error: define AVERROR_BUG.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 15:18:58 +01:00
Nicolas George
757cb3b46a
avutil: av_x_if_null: remove const for the return value.
...
This is the usual weirdness with const/non-const pointers through a function.
See the prototype of strchr for a standard example.
The function had to be moved down, below the point where stdint.h is
indirectly included.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 15:18:15 +01:00
Michael Niedermayer
730945d941
ffmpeg: use standard duration calculation code in the stream copy case.
...
Fixes a.mkv non monotonic timestamps
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 15:15:06 +01:00
ami_stuff
28a11a67d2
BMP: Support BMP OS/2 v2 with RLE compression.
...
Fixes ticket #699 .
Patch also provided by Peter Ross.
2011-12-03 12:34:12 +01:00
Carl Eugen Hoyos
8dcd2a41ec
Allow last mov chunk to have an arbitrary number of samples.
...
Fixes ticket #673 .
2011-12-03 12:29:41 +01:00
Carl Eugen Hoyos
88bbabcc00
Support decoding right-to-left targa files.
...
Fixes ticket #698 .
2011-12-03 12:22:12 +01:00
Nicolas George
90bfd511c4
celtdec: adapt to avcodec_decode_audio4.
...
Original fix by Michael Niedermayer.
Slightly modified to avoid the now redundant multiplications
and divisions in the main code path.
2011-12-03 11:54:30 +01:00
Michael Niedermayer
a930cd0d19
oma: Fix out of array read.
...
Input: 01-Untitled-partial.oma
ZZUF params: zzuf[s=7157,r=0.001]
Bug-found-by: darkshikari
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 05:27:04 +01:00
Michael Niedermayer
aedd30b63a
id3v2: Fix null ptr crash in get_extra_meta_func()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 05:12:56 +01:00
Michael Niedermayer
8bd2b27f6b
zmbv: fix 2 memleaks
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 04:50:35 +01:00
Michael Niedermayer
3eb6e14618
zmbv: Fix keyframe fault protextion.
...
Fixes zzuf -s467 -r0.001 cat samples/zmbv/wc2_001-partial.avi
Bug-found-by: darkshikari
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 04:49:08 +01:00
Michael Niedermayer
7a5eb40ea1
audeo_get_buffer: fix pkt_pos
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 04:42:24 +01:00
Michael Niedermayer
acf22ec69e
developer.texi: Fix naming convention
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 03:46:14 +01:00
Peter Ross
52b7ed4f6e
iff: support ExtraHalfBrite (EHB) palette mode
...
Fixes ticket #663 .
Based on patch by ami_stuff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 03:46:14 +01:00
Peter Ross
56f6628bca
pictordec: decode 8bpp images when extra header marker is missing
...
Fixes ticket #696 .
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 03:46:14 +01:00
Carl Eugen Hoyos
2d6a45c12a
Silence warnings when decoding QNAP Systems H264 codec.
...
Fixes ticket #571 .
2011-12-03 03:34:23 +01:00
Clément Bœsch
215b7724e7
lavf: rename remaining av_set_pts_info() to avpriv_set_pts_info().
2011-12-03 03:24:32 +01:00
Michael Niedermayer
eac5987c4f
g723_1dec: update to new API
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 03:00:49 +01:00
Michael Niedermayer
7db5ff7996
g729dec: update to the new API
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 03:00:44 +01:00
Michael Niedermayer
e4de71677f
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
aac_latm: reconfigure decoder on audio specific config changes
latmdec: fix audio specific config parsing
Add avcodec_decode_audio4().
avcodec: change number of plane pointers from 4 to 8 at next major bump.
Update developers documentation with coding conventions.
svq1dec: avoid undefined get_bits(0) call
ARM: h264dsp_neon cosmetics
ARM: make some NEON macros reusable
Do not memcpy raw video frames when using null muxer
fate: update asf seektest
vp8: flush buffers on size changes.
doc: improve general documentation for MacOSX
asf: use packet dts as approximation of pts
asf: do not call av_read_frame
rtsp: Initialize the media_type_mask in the rtp guessing demuxer
Cleaned up alacenc.c
Conflicts:
doc/APIchanges
doc/developer.texi
libavcodec/8svx.c
libavcodec/aacdec.c
libavcodec/ac3dec.c
libavcodec/avcodec.h
libavcodec/nellymoserdec.c
libavcodec/tta.c
libavcodec/utils.c
libavcodec/version.h
libavcodec/wmadec.c
libavformat/asfdec.c
tests/ref/seek/lavf_asf
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 03:00:30 +01:00
Derek Buitenhuis
55a280569f
fate: Add a test for the VBLE decoder
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-12-03 01:50:07 +01:00
Luca Barbato
a0338b598b
doc: break some long lines in developer.texi
2011-12-03 01:35:38 +01:00
Luca Barbato
2cf74eca70
drawtext: make x and y parametric
...
Introduce variables "E", "PHI", "PI", "main_w"/"W", "main_h"/"H",
"text_w"/"w", "text_h"/"h", "x", "y", "n" and "t" in line with
vf_overlay and refactor the code accordingly.
2011-12-03 01:35:29 +01:00
Luca Barbato
ec11ff8407
drawtext: manage memory allocation better
...
Call dtext_prepare_text as early as possible
Do not draw if the memory allocation failed
2011-12-03 01:35:28 +01:00
Luca Barbato
a2fb4bcb01
drawtext: refactor draw_text
...
Split the memory allocation from the actual drawing.
2011-12-03 01:35:28 +01:00
Janne Grunau
84994421bc
doc: remove space between variable and post increment in example code
2011-12-03 01:11:12 +01:00
Michael Niedermayer
12804348f5
swr-test: drop one const, silence most const qualifer warnings.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 00:46:46 +01:00
Janne Grunau
d268b79e34
aac_latm: reconfigure decoder on audio specific config changes
2011-12-03 00:42:48 +01:00
Janne Grunau
fd095539d1
latmdec: fix audio specific config parsing
...
Pass the correct size in bits to mpeg4audio_get_config and add a flag
to disable parsing of the sync extension when the size is not known.
Latm with AudioMuxVersion 0 does not specify the size of the audio
specific config. Data after the audio specific config can be
misinterpreted as sync extension resulting in random and wrong configs.
2011-12-03 00:42:48 +01:00
Michael Niedermayer
ebe4d5adc5
swr-test_: Fix mixed declaration and statements:
...
swresample_test.c:123:21: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
swresample_test.c:127:25: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 00:40:15 +01:00
Giorgio Vazzana
208bcc6b5b
libavutil: increase struct SampleFmtInfo member 'name' length to 8
...
This is necessary since some sample format names are longer than 3 characters.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 00:35:20 +01:00
Michael Niedermayer
b552e3f6d8
swscale: Fix all cast qualifier warnings:
...
libswscale/swscale.c:2744:40: warning: to be safe all intermediate pointers in cast from ‘int16_t **’ to ‘const int16_t **’ must be ‘const’ qualified [-Wcast-qual]
libswscale/swscale.c:2745:41: warning: to be safe all intermediate pointers in cast from ‘int16_t **’ to ‘const int16_t **’ must be ‘const’ qualified [-Wcast-qual]
libswscale/swscale.c:2746:41: warning: to be safe all intermediate pointers in cast from ‘int16_t **’ to ‘const int16_t **’ must be ‘const’ qualified [-Wcast-qual]
libswscale/swscale.c:2747:78: warning: to be safe all intermediate pointers in cast from ‘int16_t **’ to ‘const int16_t **’ must be ‘const’ qualified [-Wcast-qual]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 00:12:56 +01:00
Michael Niedermayer
3fd4fe0e03
swscale_mmx: Fix cast qualifier warnings:
...
libswscale/x86/swscale_mmx.c:131:36: warning: to be safe all intermediate pointers in cast from ‘int16_t **’ to ‘const int16_t **’ must be ‘const’ qualified [-Wcast-qual]
libswscale/x86/swscale_mmx.c:132:37: warning: to be safe all intermediate pointers in cast from ‘int16_t **’ to ‘const int16_t **’ must be ‘const’ qualified [-Wcast-qual]
libswscale/x86/swscale_mmx.c:133:74: warning: to be safe all intermediate pointers in cast from ‘int16_t **’ to ‘const int16_t **’ must be ‘const’ qualified [-Wcast-qual]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 00:12:53 +01:00
Michael Niedermayer
a24c4758d5
sws: remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-03 00:04:42 +01:00
Justin Ruggles
0eea212943
Add avcodec_decode_audio4().
...
Deprecate avcodec_decode_audio3().
Implement audio support in avcodec_default_get_buffer().
Implement the new audio decoder API in all audio decoders.
2011-12-02 17:40:40 -05:00
Justin Ruggles
560f773c7d
avcodec: change number of plane pointers from 4 to 8 at next major bump.
...
Add AV_NUM_DATA_POINTERS to simplify the bump transition.
This will allow for supporting more planar audio channels without having to
allocate separate pointer arrays.
2011-12-02 17:40:40 -05:00
Michael Niedermayer
cf257f30b9
doc/example/muxing: fix video timestamps
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-02 23:31:20 +01:00
Victor Vasiliev
9b9815eec4
Update developers documentation with coding conventions.
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-12-02 23:06:41 +01:00
Michael Niedermayer
096701d9b2
muxing example: set encoder defaults
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-02 22:54:49 +01:00
Mans Rullgard
51a16077da
svq1dec: avoid undefined get_bits(0) call
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-02 21:52:09 +00:00
Mans Rullgard
59807fee6d
ARM: h264dsp_neon cosmetics
...
- Replace 'ip' with 'r12'.
- Use correct size designators for vld1/vst1.
- Whitespace fixes.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-02 19:59:18 +00:00
Janne Grunau
a760f530bb
ARM: make some NEON macros reusable
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-02 19:59:18 +00:00
Mans Rullgard
150ddbc148
Do not memcpy raw video frames when using null muxer
...
Commit 035af99 made avconv always call an encoder when using the
null muxer. While useful for 2-pass encodes, it inadvertently
caused an extra memcpy of raw frames when decoding only.
This hack restores the old behaviour when only decoding while
allowing use of the null muxer with encoded streams as well.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-02 18:49:50 +00:00
Luca Barbato
5a2e251645
fate: update asf seektest
2011-12-02 16:43:05 +01:00
Aaron Colwell
e02dec25ab
vp8: flush buffers on size changes.
2011-12-02 07:21:08 -08:00
Peter Ross
1fd6924320
pictordec: support uncompressed images
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-02 14:41:10 +01:00
Mashiat Sarker Shakkhar
460bec6800
Fix lms_update()
2011-12-02 16:24:50 +06:00
Luca Barbato
7d68f592f6
doc: improve general documentation for MacOSX
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-12-02 11:16:24 +01:00
John Stebbins
b88eb87630
asf: use packet dts as approximation of pts
...
Having a somehow off seeking is better than having none at all.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-12-02 11:11:47 +01:00
Luca Barbato
73f027c17b
asf: do not call av_read_frame
...
The asf_read_pts should read the bitstream directly.
2011-12-02 11:11:47 +01:00
Martin Storsjö
30266038bd
rtsp: Initialize the media_type_mask in the rtp guessing demuxer
...
The media_type_mask is initialized via AVOptions for the
rtsp and sdp demuxers, but it isn't available as an option
for the rtp guessing demuxer (since it doesn't really make
sense there). Therefore, it must be manually initialized
instead, since a zero value means no media types at all
are accepted.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-12-02 11:52:47 +02:00
Nathan Adil Maxson
d0fd6fc201
Cleaned up alacenc.c
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-12-01 20:14:21 -08:00
Carl Eugen Hoyos
bba8975a9c
Be less verbose when skipping RBSP data in H264 PPS.
...
Fixes ticket #693 .
2011-12-02 03:29:24 +01:00
Carl Eugen Hoyos
fab5973fa5
Be less verbose when skipping MPEG-4 ASP frames.
...
Fixes ticket #560 .
2011-12-02 03:27:14 +01:00
Carl Eugen Hoyos
40c36196d5
Support yuva420p encoding via libopenjpeg.
2011-12-02 03:26:21 +01:00
Carl Eugen Hoyos
d7fc100694
Support tiff RGBA encoding.
2011-12-02 03:23:07 +01:00
Paul B Mahol
7bd8b70f19
escape130: fix colors
2011-12-02 01:19:42 +00:00
Michael Niedermayer
7b0b10ce41
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (25 commits)
rtpenc: Add support for G726 audio
rtpdec: Interpret the different G726 names as bits_per_coded_sample
rtpenc: Change rtp_send_samples to handle sample sizes other than even bytes
rtpenc: Cast a rescaling parameter to int64_t
h264: cap max has_b_frames at MAX_DELAYED_PIC_COUNT - 1.
ARM: fix indentation in ff_dsputil_init_neon()
ARM: NEON put/avg_pixels8/16 cosmetics
ARM: add remaining NEON avg_pixels8/16 functions
ARM: clean up NEON put/avg_pixels macros
fate: split acodec-pcm into individual tests
swscale: #include "libavutil/mathematics.h"
pmpdec: don't use deprecated av_set_pts_info.
rv34: align temporary block of "dct" coefs
Add PlayStation Portable PMP format demuxer
proto: Realign struct initializers
proto: Use .priv_data_size to allocate the private context
mmsh: Properly clean up if the second ffurl_alloc failed
rtmp: Clean up properly if the handshake failed
md5proto: Remove the get_file_handle function
applehttpproto: Use the close function if the open function fails
...
Conflicts:
libavcodec/vble.c
libavformat/mmsh.c
libavformat/pmpdec.c
libavformat/udp.c
tests/ref/acodec/pcm
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-02 00:51:11 +01:00
Carl Eugen Hoyos
8b08f81949
Support transparency in 32bit bmp files.
2011-12-02 00:21:24 +01:00
Derek Buitenhuis
69035f3ec7
Revert "libutvideodec: Make buf_size local"
...
This change was dependent on a different patch that
never actually made it into FFmpeg, and it actually
ended up breaking builds.
This reverts commit 70cf7bb958 .
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 23:35:54 +01:00
Adrian Drzewiecki
dd7453a24e
Fix id3v2 extended header handling.
...
When skipping over the extended header, take into account
that the size field has already been read. The extended header
also takes up space, so adjust total header length accordingly.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 23:27:41 +01:00
Michael Niedermayer
18abf46b6f
configure: add forgotten libx264rgb_encoder_deps
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 22:29:58 +01:00
Martin Storsjö
04403ec2e4
rtpenc: Add support for G726 audio
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-12-01 23:19:25 +02:00
Martin Storsjö
fa6dce4c57
rtpdec: Interpret the different G726 names as bits_per_coded_sample
...
For the standardized 8 kHz sample rate, this works exactly the same.
For nonstandard sample rates, the different predefined G726
names (G726-16, G726-24, G726-32, G726-40) are interpreted as an
indication of the bits per coded sample, even though their
actual bitrates aren't what the name specifies.
This feels more sane than using free-form names for nonstandard
sample rate/bitrate combinations, e.g like G726-22, G726-33
for 11025 Hz.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-12-01 23:19:24 +02:00
Martin Storsjö
77e0c7584b
rtpenc: Change rtp_send_samples to handle sample sizes other than even bytes
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-12-01 23:19:22 +02:00
Martin Storsjö
2d31d890bf
rtpenc: Cast a rescaling parameter to int64_t
...
This avoids overflow if frame_size is over 2147, since both
frame_size and AV_TIME_BASE are plain integers.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-12-01 23:19:14 +02:00
Mashiat Sarker Shakkhar
075ebdf735
Move num_lms reading out of a loop
2011-12-02 03:11:59 +06:00
Mashiat Sarker Shakkhar
29c2fcb677
Use correct value for range
...
The current range value causes an underflow
when negated and pushes anything less than zero
to the minimum.
2011-12-02 03:11:21 +06:00
Mashiat Sarker Shakkhar
768261e50d
Fix some int / int16_t / int32_t confusion
...
For now force everything to int16_t, except
for variables used as index
2011-12-02 03:09:19 +06:00
Ronald S. Bultje
2574f08d4c
h264: cap max has_b_frames at MAX_DELAYED_PIC_COUNT - 1.
...
This prevents frame allocation overflows, and fixed
fate-h264-conformance-mr3_tandberg_b with 2 threads.
2011-12-01 12:46:28 -08:00
Michael Niedermayer
8c15f9d79c
Merge remote-tracking branch 'cus/stable'
...
* cus/stable:
ffplay: Copy audio side data too. This fixes handling of some rare nellymoser files that change the sample rate mid stream (sample file at: http://trac.videolan.org/vlc/ticket/5586 )
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 21:35:20 +01:00
Michael Niedermayer
dd974c1bc1
libx264: Implement rgb24 support through a seperate AVCodec.
...
This avoids people mistakely encoding in a way that many players dont support.
Fixes Ticket658
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 21:02:57 +01:00
Michael Niedermayer
59a58884b9
ffplay: Copy audio side data too. This fixes handling of some rare nellymoser files that change the sample rate mid stream (sample file at: http://trac.videolan.org/vlc/ticket/5586 )
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Marton Balint <cus@passwd.hu >
2011-12-01 20:55:01 +01:00
Mans Rullgard
3adba2de3d
ARM: fix indentation in ff_dsputil_init_neon()
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-01 19:41:36 +00:00
Mans Rullgard
96fef6cf31
ARM: NEON put/avg_pixels8/16 cosmetics
...
This makes whitespace and register names consistent with
the style used in more recent code.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-01 19:41:36 +00:00
Mans Rullgard
716f1705e9
ARM: add remaining NEON avg_pixels8/16 functions
2011-12-01 19:41:36 +00:00
Mans Rullgard
94267ddfb2
ARM: clean up NEON put/avg_pixels macros
...
Although this adds a few lines, the macro calls are less convoluted.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-01 19:41:35 +00:00
Michael Niedermayer
4a8e3324fb
libx264: fix generic boolean support
...
Fixes Ticket660
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 20:38:14 +01:00
Justin Ruggles
ca12401376
fate: split acodec-pcm into individual tests
...
this removes 2 redundant tests for pcm in mkv.
we can add the coverage back in later as fate-lavf tests if needed.
2011-12-01 13:27:56 -05:00
Reinhard Tartler
5089ce1b5a
swscale: #include "libavutil/mathematics.h"
...
this file uses the M_PI macro since
4e74187db2 , so include the correct header
directly.
Signed-off-by: Reinhard Tartler <siretart@tauware.de >
2011-12-01 19:12:26 +01:00
Michael Niedermayer
b50be4e38d
vc1_parser: fix NULL pointer dereference
...
Fixes Ticket456
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 18:46:22 +01:00
Carl Eugen Hoyos
d9cc6bb432
Support ffmpeg -dn to disable copying data streams.
...
Fixes ticket #647 .
2011-12-01 18:02:04 +01:00
Michael Niedermayer
3e1951e8f4
h264: More restrictive more_rbsp_data_in_pps()
...
Fixes Ticket697
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 17:28:46 +01:00
Anton Khirnov
74e96eb77e
pmpdec: don't use deprecated av_set_pts_info.
2011-12-01 17:28:36 +01:00
Paul B Mahol
1e8f77324e
escape130: remove trailing whitespace
2011-12-01 15:32:21 +00:00
Paul B Mahol
30961a8dd5
rpl: enable escape130 codec
2011-12-01 15:32:20 +00:00
Paul B Mahol
06029fbb7f
escape130: minimal effort to make it compile without warnings
2011-12-01 15:32:20 +00:00
Eli Friedman
7d64391441
Escape 130 (RPL) decoder
2011-12-01 15:32:20 +00:00
Mans Rullgard
37fed0e635
rv34: align temporary block of "dct" coefs
...
This is needed for optimised transforms.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-12-01 14:29:29 +00:00
Peter Ross
f3f488423a
pictordec: prevent segfault when reading corrupted files
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 14:35:46 +01:00
Peter Ross
43a2a8b4a3
pictordec: use correct context for another av_log
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 14:34:46 +01:00
Reimar Döffinger
f28070a123
Add PlayStation Portable PMP format demuxer
...
Not yet complete, for demuxing AAC the AAC header must be generated
manually.
Possibly the decoder could accept the header as extradata to simplify
this.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-12-01 13:54:43 +01:00
Martin Storsjö
c3b05d2159
proto: Realign struct initializers
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-12-01 13:47:28 +02:00
Martin Storsjö
7e58050590
proto: Use .priv_data_size to allocate the private context
...
This simplifies the open functions by avoiding one function
call that needs error checking, reducing the amount of
extra bulk code.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-12-01 13:47:26 +02:00
Martin Storsjö
9c6777bd93
mmsh: Properly clean up if the second ffurl_alloc failed
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-12-01 13:47:26 +02:00
Martin Storsjö
02490bf358
rtmp: Clean up properly if the handshake failed
...
This prevents memory leaks if this function returns an error.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-12-01 13:47:25 +02:00
Martin Storsjö
6af354436c
md5proto: Remove the get_file_handle function
...
The private data pointer isn't a file handle, this protocol
doesn't have any file handle to return.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-12-01 13:47:24 +02:00
Martin Storsjö
1ca87d600b
applehttpproto: Use the close function if the open function fails
...
This should clean up leaked memory.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-12-01 13:47:23 +02:00
Martin Storsjö
abe20c59b9
http: Make sure proxyauth is initialized
...
This string will be passed to ff_http_auth_create_response
even if no proxy is used, resulting in reading uninitialized
memory. The other auth string is always initialized by
av_url_split.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-12-01 12:05:14 +02:00
Michael Niedermayer
adfdcf87b1
vble: use dsp.add_hfyu_median_prediction() this allows asm optimizations to be used.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-11-30 21:06:32 -08:00
Michael Niedermayer
317ea97bff
vble: remove flags copy, its not used in any speed relevant code.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-11-30 21:06:15 -08:00
Derek Buitenhuis
e46abbcf77
vble: merge len and val arrays
...
There's no reason to use two arrays for this.
Based off commit 2fea60c600
to FFmpeg by Michael Niedermayer.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-11-30 21:05:55 -08:00
Michael Niedermayer
0dd704dbd4
vble: remove unused variable len.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-11-30 21:05:31 -08:00
Michael Niedermayer
67eb95ce15
ffmpeg: fix segfault with ffmpeg -h
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 04:32:27 +01:00
Michael Niedermayer
03b60509cb
ffmpeg: fix changing sample rate handling
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 04:06:59 +01:00
Michael Niedermayer
ec20fc1581
lavf: allow grouping packets in chunks of a user specified size and duration.
...
This is similar to MP4Boxs -inter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 03:53:13 +01:00
Michael Niedermayer
31f9032b78
lavf: add audio_preload option, this allows interleaving audio earlier
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 03:53:07 +01:00
Michael Niedermayer
54e40b9c14
ffmpeg: factorize duration calculation in transcode_video()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 03:49:38 +01:00
Michael Niedermayer
6e96ad8215
ffmpeg: make copy_tb tri state so the user can select either timebase or
...
leave it at auto
Inspired-by a change from Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 03:49:37 +01:00
Michael Niedermayer
9d76cf0b18
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
rtpdec: Templatize the code for different g726 bitrate variants
rv40: move loop filter to rv34dsp context
lavf: make av_set_pts_info private.
rtpdec: Add support for G726 audio
rtpdec: Add an init function that can do custom codec context initialization
avconv: make copy_tb on by default.
matroskadec: don't set codec timebase.
rmdec: don't set codec timebase.
avconv: compute next_pts from input packet duration when possible.
lavf: estimate frame duration from r_frame_rate.
avconv: update InputStream.pts in the streamcopy case.
Conflicts:
avconv.c
libavdevice/alsa-audio-dec.c
libavdevice/bktr.c
libavdevice/fbdev.c
libavdevice/libdc1394.c
libavdevice/oss_audio.c
libavdevice/v4l.c
libavdevice/v4l2.c
libavdevice/vfwcap.c
libavdevice/x11grab.c
libavformat/au.c
libavformat/eacdata.c
libavformat/flvdec.c
libavformat/mpegts.c
libavformat/mxfenc.c
libavformat/rtpdec_g726.c
libavformat/wtv.c
libavformat/xmv.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-12-01 02:54:24 +01:00
Michael Bradshaw
0275b75a7e
BPP fix, YUVP9, 10, 16 support, make RGB24 default
2011-11-30 16:48:03 -07:00
Carl Eugen Hoyos
9dcd8b86f9
Use correct context for av_log.
...
Fixes ticket #695 .
2011-12-01 00:28:46 +01:00
Michael Niedermayer
c863d3751f
movenc: replace cluster memset by zeroing only the needed field.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-30 23:11:49 +01:00
Martin Storsjö
c8f0e88b20
rtpdec: Templatize the code for different g726 bitrate variants
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-30 23:20:07 +02:00
Janne Grunau
bb8a6e03cc
rv40: move loop filter to rv34dsp context
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-30 20:54:59 +00:00
Michael Niedermayer
77af2672b4
lavc: Fix side data handling for audio decoders.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-30 21:19:23 +01:00
Michael Niedermayer
11828b8885
nellymoserdec: Use sidedata to support mid stream sample rate changes.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-30 21:17:57 +01:00
Michael Niedermayer
957a593cd9
flvdemux: export flags for nellymoser through side data.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-30 21:16:33 +01:00
Anton Khirnov
c3f9ebf743
lavf: make av_set_pts_info private.
...
It's supposed to be called only from (de)muxers.
2011-11-30 20:34:45 +01:00
Michael Niedermayer
8f025f2f60
avfilter: align allocated images to 32 for AVX and IFF
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-30 18:53:47 +01:00
Michael Niedermayer
fd3e75d2d4
lavc: horizontal align for IFF
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-30 18:45:33 +01:00
Michael Niedermayer
8d5078c10b
ac3probe: Change threshold from 500 to 200 to keep in sync with mp3.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-30 18:08:23 +01:00
Michael Niedermayer
b51eaf3b8c
mp3probe: Detect mp3 stronger with just 200 frames, this should speed up detection
...
on mp3 streams.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-30 18:07:20 +01:00
Mashiat Sarker Shakkhar
8aa831c07b
Implement revert_mclms() and associated functions
2011-11-30 22:44:59 +06:00
Mashiat Sarker Shakkhar
bf8715719a
Fix two more int16_t vs. int confusion
...
If everything works fine for 16-bit streams,
the current code could be extended to do 24-bit.
2011-11-30 22:44:45 +06:00
Miroslav Slugeň
06d7325ab1
rtpdec: Add support for G726 audio
...
This requires using a separate init function, since there
isn't necessarily any fmtp lines for this codec, so
parse_sdp_a_line won't be called. Incorporating it with the
alloc function wouldn't do either, since it is called before
the full rtpmap line is parsed (where the sample rate is
extracted).
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-30 17:39:32 +02:00
Martin Storsjö
2583660664
rtpdec: Add an init function that can do custom codec context initialization
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-30 17:32:18 +02:00
Michael Niedermayer
dd32a305bd
wmall: fix return type of dump_int_buffer()
...
Found-by: Dominique Leuenberger
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-30 15:23:39 +01:00
Michael Niedermayer
4710993800
movenc: memset(0) new cluster elements after realloc()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-30 15:23:34 +01:00
Michael Niedermayer
dae7ff0416
wmall: remove tabs that leaked in from a merge and seem to have
...
managed to silently bypass the push checks.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-30 15:21:46 +01:00
Anton Khirnov
7bb3e62594
avconv: make copy_tb on by default.
...
I.e. on streamcopy set output codec timebase from input stream timebase
(as opposed to input codec timebase). This should be more sane, because
since the stream is not decoded, the input codec tb has no relation to
the timestamps of the copied packets.
2011-11-30 07:47:43 +01:00
Anton Khirnov
c98c1f434e
matroskadec: don't set codec timebase.
...
It's not supposed to be set outside of lavc.
2011-11-30 07:47:43 +01:00
Anton Khirnov
d3e3ffa501
rmdec: don't set codec timebase.
...
It's not supposed to be set outside of lavc.
Set r_frame_rate instead.
2011-11-30 07:47:43 +01:00
Anton Khirnov
741a05a293
avconv: compute next_pts from input packet duration when possible.
2011-11-30 07:47:43 +01:00
Anton Khirnov
2092232581
lavf: estimate frame duration from r_frame_rate.
...
If r_frame_rate is set, it should be more reliable for this than either
codec or stream timebase.
2011-11-30 07:47:43 +01:00
Anton Khirnov
91b412e786
avconv: update InputStream.pts in the streamcopy case.
...
This was broken in 2a651b719c .
2011-11-30 07:47:43 +01:00
Joseph Wecker
b55dd10d62
Fix typeo in some rarely used memoization
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-30 05:28:08 +01:00
Joseph Wecker
d31c68a7ed
removes spurious warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-30 05:28:07 +01:00
Michael Niedermayer
c40a35f8a7
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
indeo3: check per-plane data buffer against input buffer bounds.
avconv: Handle audio sync for non-S16 sample formats.
pthread: don't increment index on zero-sized packets.
Conflicts:
libavcodec/indeo3.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-30 02:34:35 +01:00
Jean First
23b4f355bb
ffmpeg.c use b:v for video bitrates using a target
...
it's more consistent to use -b:v instead of just -b
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-30 00:22:31 +01:00
Clément Bœsch
b6ffe441cd
ffmpeg: do not use a negative total_size (AVERROR) in bitrate estimation.
2011-11-29 23:07:13 +01:00
Mashiat Sarker Shakkhar
be8a0d26db
Init s->cdlms[][].recent to order - 1
...
Not sure if this is correct. But looks like
it was giving us off-by-one's when used to index
buffers.
2011-11-30 02:17:44 +06:00
Mashiat Sarker Shakkhar
6dd19c97c4
Add a size argument to dump_int_buffer()
2011-11-30 02:16:48 +06:00
Mashiat Sarker Shakkhar
81a3c67169
Get rid of logging that are not required anymore
...
(Resolves some conflicts)
2011-11-30 02:15:08 +06:00
Mashiat Sarker Shakkhar
e6c66fcf68
Fix some int vs. int16_t confusion
...
Size should be determined from bits per sample.
The current code only accepts 16-bit streams.
2011-11-30 02:06:12 +06:00
Reimar Döffinger
7076967786
Consistently use %ifdef ARCH_X86_64
...
One out of 3 places used ifndef, which is needlessly confusing.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-29 19:55:38 +01:00
Aneesh Dogra
464ccb0144
indeo3: check per-plane data buffer against input buffer bounds.
...
Fixes : http://bugzilla.libav.org/show_bug.cgi?id=102
Signed-off-by: Alex Converse <alex.converse@gmail.com >
2011-11-29 09:58:05 -08:00
root
551b9eb9ef
docs: Spelling fixes to 9 texi files from /doc
...
credits to: Violet Lin (from Google Code-in)
Signed-off-by: burek <burek021@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-29 18:26:06 +01:00
root
b0a90c2004
faq.texi: fix spelling errors
...
credits to: Philip (from Google Code-in)
Signed-off-by: burek <burek021@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-29 18:25:43 +01:00
root
aadbf9f74c
developer.texi: fix spelling errors
...
credits to: KayC (from Google Code-in)
Signed-off-by: burek <burek021@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-29 18:25:18 +01:00
root
1c212a6465
general.texi: fix spelling errors
...
credits to: Samuel M (from Google Code-in)
Signed-off-by: burek <burek021@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-29 18:24:28 +01:00
Michael Niedermayer
4b4a02b847
lavc: dont call set_dimensions() on h264 codec init.
...
This fixes ffprobe showing an incorrect width with
http://panda-test-harness-videos.s3.amazonaws.com/panda.mp4
Idea-by: Joakim Plate <elupus@ecce.se >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-29 17:33:35 +01:00
Clément Bœsch
81a65b82fb
swr: handle correctly muted channel with u8 sample fmt.
2011-11-29 17:14:25 +01:00
Geek.Song
9cdf048ad2
movenc: Remove unneeded chunkSize field from MOVIentry
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-29 16:50:25 +01:00
Michael Niedermayer
313d30c180
avutil: revert project name messing
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-29 16:09:56 +01:00
Michael Niedermayer
6ffdc262b0
ac3enc: clenaup project name in one comment
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-29 16:09:56 +01:00
Alex Converse
fdab793a46
avconv: Handle audio sync for non-S16 sample formats.
...
Also fix reporting of the number of samples added/dropped.
2011-11-28 22:18:09 -08:00
Aaron Colwell
39a7a5b8ab
pthread: don't increment index on zero-sized packets.
...
The next call to decode() will update from an invalid index, which will
either lead to a memcpy() where dest==src (2 threads), or lead to a
crash (>2 threads).
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-11-28 20:30:30 -08:00
Michael Niedermayer
fc09bf57a6
movenc: Write file with minimal number of chunks for the given interleaving.
...
Reviewed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-29 04:51:47 +01:00
Michael Niedermayer
4dcd1a3145
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
adtsenc: Check frame size.
txd: Fix order of operations.
APIchanges: fill in some blanks
timer: fix misspelling of "decicycles"
Eliminate pointless 0/NULL initializers in AVCodec and similar declarations.
indeo3: cosmetics
md5proto: Fix order of operations.
dca: Replace oversized unused get_bits() with skip_bits_long().
Conflicts:
doc/APIchanges
libavformat/mmsh.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-29 00:20:29 +01:00
Alex Converse
ac47e014bb
adtsenc: Check frame size.
...
Inspired by work from: Michael Niedermayer <michaelni@gmx.at >.
Signed-off-by: Alex Converse <alex.converse@gmail.com >
2011-11-28 11:22:40 -08:00
Alex Converse
a27805189b
txd: Fix order of operations.
2011-11-28 11:22:36 -08:00
Mans Rullgard
b94a3b288e
APIchanges: fill in some blanks
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-28 17:29:47 +00:00
Michael Niedermayer
4b03d96022
ffv1dec: use PIX_FMT_0RGB32 when there is no transparency plane
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-28 17:41:27 +01:00
Michael Niedermayer
2027d073ae
ffv1dec: transparency plane support.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-28 17:40:39 +01:00
Michael Niedermayer
492aab8589
ffv1enc: PIX_FMT_0RGB32 support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-28 17:39:25 +01:00
Michael Niedermayer
f7b160e829
ffv1enc: Store transparency plane.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-28 17:38:04 +01:00
Mans Rullgard
60084a1723
timer: fix misspelling of "decicycles"
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-28 14:34:42 +00:00
Michael Niedermayer
ae5873f13b
huffyuvenc: switch from alphaless rgb32 to rgb24
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-28 15:14:41 +01:00
Clément Bœsch
fbe6e29646
ffprobe: print codec timecode if available.
2011-11-28 14:06:02 +01:00
Clément Bœsch
b1ca5634fd
mpeg12: raise timecode to codec context.
2011-11-28 14:06:02 +01:00
Diego Biurrun
c88ebdb42c
Eliminate pointless 0/NULL initializers in AVCodec and similar declarations.
2011-11-28 10:01:50 +01:00
Kostya Shishkov
1469f943ad
indeo3: cosmetics
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-11-28 10:01:49 +01:00
Carl
2cf4bd7751
sdp: Fix null pointer dereference with aac and ffserver.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-28 04:29:47 +01:00
Michael Niedermayer
d3fc335bac
huffyuvenc: support alphaless rgb32
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-28 04:29:42 +01:00
Michael Niedermayer
0af7d7082f
huffyuvenc: store alpha for bgr32
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-28 04:14:22 +01:00
Michael Niedermayer
b89ce2d6af
swscale: alpha less rgb32 support.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-28 04:14:22 +01:00
Michael Niedermayer
b14a2381f8
pixfmt: Add 32bit rgb without alpha formats
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-28 02:44:05 +01:00
Alex Converse
2b45222b6a
md5proto: Fix order of operations.
2011-11-27 16:16:44 -08:00
Michael Niedermayer
1e19927f12
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
vc1: use an enum for Frame Coding Mode
doc: cleanup filter section
indeo3: error out if no motion vector is set.
x86inc: Flag shufps as an floating-point instruction for the AVX emulation code.
mpegaudio: do not use init_static_data() for initializing tables.
musepack: fix signed shift overflow in mpc_read_packet()
mov: Make format string match variable type.
wmavoice: Make format string match variable type.
vc1: select interlaced scan table by FCM element
Generalize RIFF INFO tag support; support reading INFO tag in wav
pthread: track thread existence in a separate variable.
Conflicts:
doc/filters.texi
libavcodec/pthread.c
libavformat/avi.c
libavformat/riff.c
libavformat/riff.h
libavformat/wav.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-28 01:07:11 +01:00
Alex Converse
999e7ebd23
dca: Replace oversized unused get_bits() with skip_bits_long().
2011-11-27 15:57:38 -08:00
Luca Barbato
1f948745c3
vc1: use an enum for Frame Coding Mode
...
Document it a little and possibly fix a bug in dxva2_vc1.
2011-11-28 00:40:22 +01:00
Luca Barbato
9270b8a3d1
doc: cleanup filter section
...
Use the @command{} tag when needed and cleanup the examples.
2011-11-28 00:39:59 +01:00
Vitor Sessak
ca55606a51
x86inc: Flag shufps as an floating-point instruction for the AVX emulation code.
...
Without this, code like "shufps m0, m1, m2, 0xaa" would not work in CPUs
not supporting SSE2.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-28 00:24:21 +01:00
Aneesh Dogra
97980db487
indeo3: error out if no motion vector is set.
...
This fixes a crash on a corrupt bitstream (bugzilla #93 ).
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-11-27 13:30:00 -08:00
Vitor Sessak
6b6ee58249
x86inc: Flag shufps as an floating-point instruction for the AVX emulation code.
...
Without this, code like "shufps m0, m1, m2, 0xaa" would not work in CPUs
not supporting SSE2.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-11-27 13:10:33 -08:00
Michael Niedermayer
e64edeed3c
aacenc: make the aac coder user choosable.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-27 21:19:30 +01:00
Michael Niedermayer
1b1223872d
aacenc: add AAC_CODER_NB
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-27 21:19:07 +01:00
Michael Niedermayer
6d13499be0
cmdutils: pass AVCodec to filter_codec_opts()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-27 21:17:56 +01:00
Justin Ruggles
0df5e869cb
mpegaudio: do not use init_static_data() for initializing tables.
...
It is called once for each mpegaudio codec that is registered, which adds
significant overhead.
2011-11-27 13:59:34 -05:00
Michael Niedermayer
e99c4bbdf3
img2: update first file only when -updatefirst is specified
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-27 16:39:40 +01:00
Michael Niedermayer
b7c7eae7d9
tta: better check for totalframes.
...
Avoids crash, Fixes Ticket 690
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-27 15:37:15 +01:00
Michael Niedermayer
102a2463d3
img2: Allow writing multiple files onto the same output file.
...
Fixes Ticket687
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-27 15:07:49 +01:00
Mans Rullgard
d9ba767d61
musepack: fix signed shift overflow in mpc_read_packet()
...
Using an unsigned variable avoids problems with overflows.
There is further no need for a 64-bit intermediate here.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-27 10:30:16 +00:00
Michael Niedermayer
47044625ba
pthread: check pthread_create() return value.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-27 06:17:03 +01:00
Michael Niedermayer
2bb79b23fe
pthread: next try on freeing threads without crashing.
...
This should fix mingw
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-27 05:55:20 +01:00
Alex Converse
028a2375e2
mov: Make format string match variable type.
2011-11-26 19:41:54 -08:00
Alex Converse
f11b0e9543
wmavoice: Make format string match variable type.
2011-11-26 19:40:34 -08:00
Kostya Shishkov
498605b4ad
vc1: select interlaced scan table by FCM element
...
Interlaced videos can contain progressive frames too and now wrong scantable
is selected for them.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-11-26 18:14:07 -08:00
Peter Ross
3d977edb04
HAM6/HAM8 support for IFF ACBM decoder
...
Based on patch by ami_stuff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-27 03:11:08 +01:00
Peter Ross
b488679510
iff: fix invalid reads (ticket 689)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-27 03:11:08 +01:00
Victor Vasiliev
12bc20502a
Generalize RIFF INFO tag support; support reading INFO tag in wav
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-11-26 17:14:13 -08:00
Cheng Sun
3f5aa7dfa6
pthread: track thread existence in a separate variable.
...
This fixes a compile error on mingw32 when using p->thread
directly (as if it were a pointer) to track thread existence,
because the type is opaque and may be a non-pointer.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-11-26 17:14:13 -08:00
Kostya Shishkov
801393bc96
vc1: select interlaced scan table by FCM element
...
Interlaced videos can contain progressive frames too and now wrong scantable
is selected for them.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-27 02:03:25 +01:00
Michael Niedermayer
5c15b78e4a
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (42 commits)
swscale: fix signed overflow in yuv2mono_X_c_template
snow: fix integer overflows
svq1enc: remove stale altivec-related hack
snow: fix signed overflow in byte to 32-bit replication
adx: rename ff_adx_decode_header() to avpriv_adx_decode_header()
avformat: add CRI ADX format demuxer
adx: add an ADX parser.
adx: move header decoding to ADX common code
adx: calculate the number of blocks in a packet
adx: define and use 2 new macro constants BLOCK_SIZE and BLOCK_SAMPLES
adx: check for unsupported ADX formats
adx: simplify encoding by using put_sbits()
adx: calculate correct LPC coeffs
adx: use 12-bit coefficients instead of 14-bit to avoid integer overflow
adx: simplify adx_decode() by using get_sbits() to read residual samples
adx: fix the data offset parsing in adx_decode_header()
adx: remove unneeded post-decode channel interleaving
adx: validate header values
adx: cosmetics: general pretty-printing and comment clean-up
adx: remove useless comments
...
Conflicts:
Changelog
libavcodec/cook.c
libavcodec/fraps.c
libavcodec/nuv.c
libavcodec/pthread.c
libavcodec/version.h
libavformat/Makefile
libavformat/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-27 00:30:13 +01:00
Mans Rullgard
7c5ce99bd9
swscale: fix signed overflow in yuv2mono_X_c_template
...
As old bits are shifted out of the accumulator, they cause signed
overflows when they reach the end. Making the variable unsigned fixes
this.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-26 22:53:47 +00:00
Mans Rullgard
8540dcfd7a
snow: fix integer overflows
...
The way these values are used, they should have an unsigned type.
A similar change was made for mpegvideo in cb66847 .
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-26 22:53:47 +00:00
Mans Rullgard
0e55edcb57
svq1enc: remove stale altivec-related hack
...
altivec.h is no longer (indirectly) included, so this hack is not
needed.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-26 22:53:47 +00:00
Mans Rullgard
ff6d9cc558
snow: fix signed overflow in byte to 32-bit replication
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-26 22:53:46 +00:00
Michael Niedermayer
22cb8e7b34
fate: enable new sbr tests after our rsync server has them now.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-26 23:13:50 +01:00
Michael Niedermayer
4fd5e7639b
vc1: Fix pic_header_flag=0 (SA10143.vc1)
...
Bug introduced in:
commit 4509be3d2f
Author: Michael Niedermayer <michaelni@gmx.at >
Date: Tue Oct 11 11:56:42 2011 +0200
vc1: reset interlaced variables, prevent another bunch of crashes.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-26 23:13:50 +01:00
Justin Ruggles
9d2dd356c2
adx: rename ff_adx_decode_header() to avpriv_adx_decode_header()
...
It is used by the ADX decoder, and therefore needs to be exported in order to
work with shared libs.
2011-11-26 17:00:00 -05:00
Justin Ruggles
a17c3c7d15
avformat: add CRI ADX format demuxer
2011-11-26 16:25:07 -05:00
Justin Ruggles
27360ccc5e
adx: add an ADX parser.
...
This simplifies the decoder so it doesn't have to process an in-packet header
or handle arbitrary-sized packets. It also fixes decoding of files with large
headers.
2011-11-26 16:25:07 -05:00
Justin Ruggles
d8cec2d7fc
adx: move header decoding to ADX common code
2011-11-26 16:25:07 -05:00
Justin Ruggles
7ff55d9bdb
adx: calculate the number of blocks in a packet
2011-11-26 16:25:07 -05:00
Justin Ruggles
05c1f11b56
adx: define and use 2 new macro constants BLOCK_SIZE and BLOCK_SAMPLES
2011-11-26 16:25:07 -05:00
Justin Ruggles
d1745619db
adx: check for unsupported ADX formats
2011-11-26 16:25:07 -05:00
Justin Ruggles
994238536a
adx: simplify encoding by using put_sbits()
2011-11-26 16:25:07 -05:00
Justin Ruggles
b237248e29
adx: calculate correct LPC coeffs
...
Instead of using fixed coefficients, the correct way is to calculate the
coefficients using the highpass cutoff frequency from the ADX stream header
and the sample rate.
2011-11-26 16:25:06 -05:00
Justin Ruggles
954d94dd5e
adx: use 12-bit coefficients instead of 14-bit to avoid integer overflow
2011-11-26 16:25:06 -05:00
Justin Ruggles
c52ddc6024
adx: simplify adx_decode() by using get_sbits() to read residual samples
2011-11-26 16:25:06 -05:00
Justin Ruggles
ca9e4727ba
adx: fix the data offset parsing in adx_decode_header()
...
first 2 bytes are 0x80, 0x00. offset is only 16-bit.
this is according to format descriptions on multimedia wiki and wikipedia.
2011-11-26 16:25:06 -05:00
Justin Ruggles
837bbd19eb
adx: remove unneeded post-decode channel interleaving
...
instead interleave channels while decoding
2011-11-26 16:25:06 -05:00
Justin Ruggles
e2d1eace00
adx: validate header values
2011-11-26 16:25:06 -05:00
Justin Ruggles
8db67610c0
adx: cosmetics: general pretty-printing and comment clean-up
2011-11-26 16:25:06 -05:00
Justin Ruggles
fbc79a9101
adx: remove useless comments
2011-11-26 16:25:06 -05:00
Justin Ruggles
e0722d7fb7
adx: change short to int16_t
2011-11-26 16:25:06 -05:00
Justin Ruggles
dd1b9f7cd9
adx: rename struct PREV to ADXChannelState
2011-11-26 16:25:06 -05:00
Mans Rullgard
3a83b2461e
dnxhdenc: fix signed overflows
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-26 20:52:10 +00:00
Mans Rullgard
b6ae086682
dv: simplify bitstream splicing in dv_decode_ac()
...
This is simpler and fixes some overflow checker warnings.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-26 20:52:09 +00:00
Mans Rullgard
b02aa3a8ea
s3tc: fix shift overflow by using unsigned constant
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-26 18:50:42 +00:00
Mans Rullgard
f7f892e4d5
svq1enc: fix signed multiplication overflow
...
This multiplication can overflow the signed range but not the
unsigned. After right-shifting it will thus fit in the signed
range again.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-26 18:50:27 +00:00
Mans Rullgard
e4faa31a0a
svq1dec: use sign_extend()
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-26 18:50:02 +00:00
Mans Rullgard
171ec81223
rv34: fix signed multiplication overflow
...
Multiply by unsigned 0x01010101 to replicate bytes into 32-bit
word.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-26 18:49:51 +00:00
Cheng Sun
e524eadbf8
[PATCH] Fix crash when initializing multi-threaded decoding for corrupted file.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-11-26 10:46:08 -08:00
Clément Bœsch
c1ae524e2b
avfilter: fix AVFilterPad video only comment.
2011-11-26 19:30:30 +01:00
Michael Niedermayer
1b84e06244
lavfi-showfiltfmts.c: fix handling of null names
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-26 18:12:25 +01:00
Michael Niedermayer
61c2cec957
pthreads: fix segfault due to the thread beimg killed before it has been allocated
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-26 17:55:01 +01:00
kaptnole
cb8db6423a
aacdec: Fix Sound fragments after seeking
...
Fixes Ticket420
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-26 14:37:39 +01:00
Michael Niedermayer
8f37c8f0f8
opt_pix_fmts: try to fix segfault on open solaris
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-26 13:25:29 +01:00
Mans Rullgard
3d1af11df4
sol: use AV_RL32 instead of raw pointer cast
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-26 11:38:41 +00:00
Mans Rullgard
b7581b5c83
cook: use a table for xor key rotation
...
This is simpler and avoids an invalid shift by 32 in the
aligned case.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-26 11:38:41 +00:00
Mans Rullgard
644bff6c9b
apedec: fix signed integer overflows
...
This bit manipulation is equivalent but avoids undefined
shifts and overflows.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-26 11:38:41 +00:00
Mans Rullgard
93c286e54f
qtrle: simplify 32-bit decode using intreadwrite macros
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-26 11:38:41 +00:00
Mans Rullgard
3bd1162a52
gif: fix invalid signed shifts
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-26 11:38:40 +00:00
Stefano Sabatini
28338bc2a3
lavfi: add libass based subtitles renderer
2011-11-26 10:42:33 +01:00
Reimar Döffinger
7fb55e0b02
rtjpeg: simplify get_block() by using get_bits_left.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-26 08:40:51 +01:00
Reimar Döffinger
7a62ddb689
rtjpeg: check get_block return value for error.
...
This avoids crashes due to reading out-of-bounds.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-26 08:39:58 +01:00
Reimar Döffinger
f6afacdb3b
nuv: check per-frame header for validity.
...
Since it contains dimensions parsing an invalid one has rather
annoying effects.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-26 08:38:59 +01:00
Reimar Döffinger
785baa738a
nuv: use FFALIGN.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-26 08:38:14 +01:00
Carl Eugen Hoyos
1484b5dec5
flicvideo: check extradata_size before accessing extradata.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-26 08:36:16 +01:00
Michael Niedermayer
5ace144fe0
fraps: check for overread.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-26 08:35:57 +01:00
K.Y.H
51f316a997
cook: fix apparent typo in extradata parsing
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-26 08:33:31 +01:00
Anton Khirnov
488eec1044
lavc: update doxy to use nondeprecated API.
2011-11-26 08:26:24 +01:00
Michael Niedermayer
31a1342e7a
swscale: remove duplicate code from yesterdays merge.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-26 01:26:24 +01:00
Michael Niedermayer
022f8d27dd
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
swscale: Readd #define _SVID_SOURCE
Fix av_get_channel_layout_string() for positions >31
configure: Store vda lib flags in extralibs instead of ldflags
Make channel layout masks unsigned
dca: ARMv6 optimised decode_blockcode()
nullenc: drop AVFMT_RAWPICTURE from the flags
frame-mt: return consumed packet size in ff_thread_decode_frame
aacdec: add more fate tests covering SBR and PS
MK(BE)TAG: avoid undefined shifts
Conflicts:
configure
libavcodec/arm/dca.h
libavcodec/dca.c
libavcodec/mlp_parser.c
libavcodec/version.h
libavfilter/asrc_anullsrc.c
libavfilter/avfilter.c
libavfilter/avfilter.h
libavfilter/defaults.c
libavutil/audioconvert.c
libavutil/avutil.h
libswscale/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-26 01:12:08 +01:00
Stefano Sabatini
a11eeb9215
configure: sort entries
2011-11-26 00:56:01 +01:00
Michael Niedermayer
fc75e6f168
vc1dec: fix scantable for advanced P frames
...
Fixes: vc1 file from Ticket606
Fixes: vc1+vc1+++artifacts*.vc1
Fixes: mpeg+vc1+++salxxos.evo
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-25 23:44:39 +01:00
Michael Niedermayer
a3b3562b47
vc1dec: fix 10l typo
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-25 22:46:17 +01:00
Michael Niedermayer
9e794d103c
vc1dec: drop damaged B frames
...
Fixes: vc1_error_spilt.avi of Ticket606
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-25 20:55:25 +01:00
Michael Niedermayer
7d52f46db7
vc1dec: fix used ER flags in vc1_decode_b_blocks()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-25 20:54:57 +01:00
Martin Storsjö
f32dfad9dc
swscale: Readd #define _SVID_SOURCE
...
This was removed erroneously in
046f081b46 . This define still is
necessary for getting MAP_ANONYMOUS defined on linux/glibc,
despite the define reshuffling done in that commit.
Without MAP_ANONYMOUS defined, the mprotect calls for setting the
generated mmx2 scaler code pages executable are left out, causing
crashes if that codepath is chosen.
This patch fixes scaling from 192x144 to 320x240 with
-sws_flags fast_bilinear, which crashes on linux at the
moment.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-25 19:59:15 +02:00
Michael Niedermayer
1afe49b062
indeo3: out of array read checks for decode_plane()
...
Fixes: avi+indeo3+++1-dog.avi
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-25 18:04:17 +01:00
Michael Niedermayer
e9e642cbfb
indeo3: Check remaining bits in parse_bintree()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-25 17:55:23 +01:00
Anatoly Nenashev
a7cfef2994
H264: Check if more RBSP data in PPS provided by current profile due to Annex A.
...
This patch also fix issue https://ffmpeg.org/trac/ffmpeg/ticket/685 .
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-25 17:10:47 +01:00
Mans Rullgard
019dd23657
Fix av_get_channel_layout_string() for positions >31
...
A value shifted left by >31 needs to have a 64-bit type.
As there are no defined channels in this range, the fix
is purely theoretical at this point, although it does
avoid some invalid shifts triggering the overflow
checker.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-25 15:19:55 +00:00
Michael Niedermayer
e1d48786d5
ffmpeg: Warn if output file is empty
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-25 16:17:06 +01:00
Rafaël Carré
be1e872582
configure: Store vda lib flags in extralibs instead of ldflags
...
This way the needed linking flags end up in libavcodec.pc.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-25 15:52:55 +02:00
Dominique Leuenberger
12d276531c
RELEASE: We're now at 0.8.7.git
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-25 14:37:35 +01:00
Mans Rullgard
cc276c85d1
Make channel layout masks unsigned
...
It makes more sense for a bit mask to use an unsigned type.
The change should be source and binary compatible on all
supported systems, hence micro version bump.
Fixes a few invalid shifts.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-25 13:19:54 +00:00
Mans Rullgard
00a856e3f9
dca: ARMv6 optimised decode_blockcode()
...
This is a hand-tuned version of the code with impossible parts of
the FASTDIV function ommitted.
2-5% faster overall on Cortex-A8.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-25 13:19:53 +00:00
Stefano Sabatini
65f24858ed
ffprobe: always print int values with print_val()
...
In particular, make the json writer write size values, fix regression
introduced with the addition of the print_val() macro.
2011-11-25 13:25:56 +01:00
Luca Barbato
035af998ad
nullenc: drop AVFMT_RAWPICTURE from the flags
...
This makes the two pass encoding with x264 working with -f null - as
first pass.
2011-11-25 13:16:01 +01:00
Janne Grunau
117e2a30f2
frame-mt: return consumed packet size in ff_thread_decode_frame
...
This is required to fulfill avcodec_decode_video2() promise to return
the number of consumed bytes on success.
2011-11-25 08:25:12 +01:00
Janne Grunau
d14d4d982c
aacdec: add more fate tests covering SBR and PS
...
Add all seven test bitstreams of Coding Technologies "aacPlus Decoder
Check Package". The streams cover different ways to signal SBR and PS
in different formats.
2011-11-25 08:25:12 +01:00
Michael Niedermayer
6d16a96a95
vf_boxblur: fix memleak
...
As the filter uses the default start frame, the cleanup done by the
default end frame is needed.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-25 04:45:41 +01:00
Michael Niedermayer
92afb43162
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
snow: split snow in snowdec and snowenc
tiffenc: deprecate using compression_level
swscale: fix failing fate tests.
swscale: add support for planar RGB input.
h264: add support for decoding planar RGB images.
Clean up swscale pixfmt macros using av_pix_fmt_descriptors[].
pixfmt: add planar RGB formats.
Conflicts:
libavcodec/h264.c
libavcodec/snow.c
libavcodec/utils.c
libavutil/avutil.h
libavutil/pixdesc.c
libavutil/pixfmt.h
libswscale/swscale.c
libswscale/swscale_internal.h
libswscale/swscale_unscaled.c
libswscale/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-25 04:34:44 +01:00
Mans Rullgard
6b34fbba9b
MK(BE)TAG: avoid undefined shifts
...
Casting the left-most byte to unsigned avoids an undefined
result of the shift by 24 if bit 7 is set. This affects
the rm demuxer.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-25 00:20:03 +00:00
Carl Eugen Hoyos
3880b4541a
Do not claim that every unknown rm stream is a video stream.
...
Also reduce verbosity for the unsupported stream message, use
an AVFormatContext for av_log and and print the tag of the
unknown stream.
Improves ticket #672 .
2011-11-25 00:06:19 +01:00
Michael Niedermayer
e421b79d01
indeo3: fix null pointer dereference in vulnerable.mov
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-24 22:39:23 +01:00
Alex Zhukov
eb511ef636
yuv pixel formats support in openjpeg decoder + 10bit support
...
Signed-off-by: Alex Zhukov <zhukov.alex@gmail.com >
Reviewed-by: Jean First <jeanfirst@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-24 21:51:15 +01:00
Carl Eugen Hoyos
0a4f02117b
Add option -n to exit if output file exists.
2011-11-24 21:42:42 +01:00
Luca Barbato
7f1b427018
snow: split snow in snowdec and snowenc
...
The common non inlined code goes in snow.c, the common inlined code in
snow.h, tables move in snowdata.h (included only by snow.c)
2011-11-24 21:35:47 +01:00
Anton Khirnov
8b7412fe4e
tiffenc: deprecate using compression_level
2011-11-24 21:31:36 +01:00
Ronald S. Bultje
f7f1835258
swscale: fix failing fate tests.
...
isGray() is left as a FIXME for later.
2011-11-24 12:21:03 -08:00
Ronald S. Bultje
185655c601
swscale: add support for planar RGB input.
2011-11-24 10:40:05 -08:00
Ronald S. Bultje
db431f7efe
h264: add support for decoding planar RGB images.
2011-11-24 08:25:36 -08:00
Ronald S. Bultje
6b0768e202
Clean up swscale pixfmt macros using av_pix_fmt_descriptors[].
2011-11-24 08:24:55 -08:00
Ronald S. Bultje
bd97b2e1ce
pixfmt: add planar RGB formats.
2011-11-24 08:13:50 -08:00
Clément Bœsch
0232f788b6
swr: fix invalid sample format message.
...
If the sample format is invalid, av_get_sample_fmt_name() will always
return NULL.
2011-11-24 16:55:45 +01:00
Clément Bœsch
58205edcc6
swr: use native planar sample formats.
2011-11-24 16:55:45 +01:00
Clément Bœsch
573ffbb3b5
lavu: add av_get_alt_sample_fmt().
2011-11-24 16:55:45 +01:00
Clément Bœsch
afb0470a25
swr: fix test program.
...
The number of used channels need to be reset to zero when
swr_alloc_set_opts() is called successive times.
This is a regression introduced in c8136ebd .
2011-11-24 16:55:44 +01:00
Michael Niedermayer
2bf09826c1
loco: Fix error handling.
...
Fixes null pointer dereference / http://www.google-melange.com/gci/task/view/google/gci2011/7120335
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-24 15:39:41 +01:00
Michael Niedermayer
58030fc6c8
avio: Fix handling of filenames that contain :
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-24 15:03:27 +01:00
Sergiy Gur'yev
32ed7da135
Fix adts format creation in aac+ encoder modified: libavcodec/libaacplus.c
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-24 14:18:27 +01:00
Michael Niedermayer
957867ab13
ffmpeg: rewrite vsync / notimestamps handling
...
The qatar implementation makes no sense.
a muxer without timestamps is constant fps thus needs vsync.
the crc/mp5 are special cases that have timestamps yet allow any
nonsensical timestamps.
raw (yuv/rgb) video is constant fps thus needs vsync too.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-24 04:57:38 +01:00
Michael Niedermayer
8e576d5830
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
libavutil: add utility functions to simplify allocation of audio buffers.
libavutil: add planar sample formats and av_sample_fmt_is_planar()
avconv: fix segfault at EOF with delayed pictures
pcmdec: remove unneeded resetting of samples pointer
avconv: remove a now unused parameter from output_packet().
avconv: formatting fixes in output_packet()
avconv: declare some variables in blocks where they are used
avconv: use the same behavior when decoding audio/video/subs
bethsoftvideo: return proper consumed size for palette packets.
cdg: skip packets that don't contain a cdg command.
crcenc: add flags
avconv: use vsync 0 for AVFMT_NOTIMESTAMPS formats.
tiffenc: add a private option for selecting compression algorithm
md5enc: add flags
ARM: remove needless .text/.align directives
Conflicts:
doc/APIchanges
libavcodec/tiffenc.c
libavutil/avutil.h
libavutil/samplefmt.c
libavutil/samplefmt.h
tests/ref/fate/bethsoft-vid
tests/ref/fate/cdgraphics
tests/ref/fate/film-cvid-pcm-stereo-8bit
tests/ref/fate/mpeg2-field-enc
tests/ref/fate/nuv
tests/ref/fate/tiertex-seq
tests/ref/fate/tscc-32bit
tests/ref/fate/vmnc-32bit
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-24 03:32:24 +01:00
Justin Ruggles
bbb46f3ec7
libavutil: add utility functions to simplify allocation of audio buffers.
...
Based on code by Stefano Sabatini.
2011-11-23 18:39:28 -05:00
Justin Ruggles
8889cc4f5b
libavutil: add planar sample formats and av_sample_fmt_is_planar()
2011-11-23 18:39:28 -05:00
Alexander Strasser
7ffa9ea05a
doc: rewrite FATE documentation to be self-contained
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-24 00:34:29 +01:00
Alexander Strasser
e77b4b4ac6
tests: add a FATE configuration template
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-24 00:33:20 +01:00
Janne Grunau
aa38cff2c6
avconv: fix segfault at EOF with delayed pictures
...
At EOF it makes no sense to modify avpkt.{data,size} in output_packet
since no data is consumed. Frame threading with more than 1 threads
hits the segfault.
2011-11-24 00:33:02 +01:00
Michael Niedermayer
656911d84d
vsrc_mandelbrot: Fix vsrc_mandelbrot.c:358:85: warning: ‘epsilon’ may be used uninitialized in this function [-Wuninitialized]
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-24 00:08:05 +01:00
Michael Niedermayer
b329fc346e
ffmpeg: fix indention
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-23 23:20:20 +01:00
Michael Niedermayer
fec2025936
ffmpeg: Fix ffmpeg.c:1874:21: warning: unused variable ‘of’ [-Wunused-variable]
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-23 23:19:59 +01:00
Michael Niedermayer
183e832c53
githowto: git is generally available as package in most distros.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-23 23:03:37 +01:00
Justin Ruggles
c1848c4b26
pcmdec: remove unneeded resetting of samples pointer
2011-11-23 16:26:15 -05:00
Anton Khirnov
06d4e2fa5a
avconv: remove a now unused parameter from output_packet().
2011-11-23 22:03:32 +01:00
Anton Khirnov
8b0268a853
avconv: formatting fixes in output_packet()
2011-11-23 22:02:59 +01:00
Anton Khirnov
ffa0674e5a
avconv: declare some variables in blocks where they are used
2011-11-23 22:01:32 +01:00
Anton Khirnov
af8ad892bf
avconv: use the same behavior when decoding audio/video/subs
...
I.e. if the packet was only partially consumed, pass the rest of it into
the decoder again.
Also simplify the code so it's the same for video/audio/subs.
2011-11-23 21:58:53 +01:00
Anton Khirnov
3eedd29bd7
bethsoftvideo: return proper consumed size for palette packets.
...
Also check for sufficient packet size.
2011-11-23 21:58:30 +01:00
Justin Ruggles
5872c78122
cdg: skip packets that don't contain a cdg command.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-23 21:58:10 +01:00
Michael Niedermayer
98d1e9f915
lavf: give more weight to the extension during probing if there is a id3
...
tag that is larger than the probe buffer.
Fixes Ticket336
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-23 21:56:16 +01:00
Michael Niedermayer
6a3a54f5e3
lavf: minor cleanup of av_probe_input_format3()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-23 21:55:25 +01:00
Anton Khirnov
0844b57c11
crcenc: add flags
...
AVFMT_NOTIMESTAMPS for crc, as it ignores the timestamps.
AVFMT_VARIABLE_FPS for framecrc, as it prints dts.
Many FATE changes, because avconv is no longer duplicating frames in
those tests.
Also added -vsync 0 for some tests to prevent avconv from dropping
frames until it can be fixed more properly.
2011-11-23 21:43:46 +01:00
Anton Khirnov
e1edfbcb24
avconv: use vsync 0 for AVFMT_NOTIMESTAMPS formats.
...
Prevent avconv from duplicating or dropping frames for formats where it
makes even less sense than usual, e.g. image2.
2011-11-23 21:38:17 +01:00
Anton Khirnov
a94c769dad
tiffenc: add a private option for selecting compression algorithm
2011-11-23 20:29:25 +01:00
Anton Khirnov
50efd3cad8
md5enc: add flags
...
AVFMT_NOTIMESTAMPS for md5, as it ignores the timestamps.
AVFMT_VARIABLE_FPS for framemd5, as it prints dts.
-vsync 0 for the vp8 test is needed because with vsync 2 the timestamp
guessing code gets confused by an altref frame that is never displayed
and drops a frame later.
2011-11-23 20:19:26 +01:00
Mans Rullgard
3a0b72dee0
ARM: remove needless .text/.align directives
...
The 'function' macro already includes the appropriate
directives.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-23 15:06:50 +00:00
Michael Niedermayer
248bb81ebc
avfilter: Error out from avfilter_merge_formats() when there are duplicates
...
instead of trying to continue.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-23 14:14:01 +01:00
Michael Niedermayer
4d874fc2b1
vf_mp: rewrite vf_mp filter warning message
...
Warning text by: Clément Bœsch <ubitux@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-23 13:22:46 +01:00
Michael Niedermayer
8cda755c2f
avfilter: dont write out of array for duplicate formats in avfilter_merge_formats()
...
Note, this is a theoretical fix, iam not aware of a case where this function receives
duplicates in its input.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-23 13:18:11 +01:00
Michael Niedermayer
0b9a69f244
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (22 commits)
aacdec: Fix PS in ADTS.
avconv: Consistently use PIX_FMT_NONE.
dsputil: use cpuflags in x86 emu_edge_core
dsputil: use movups instead of movdqu in ff_emu_edge_core_sse()
wma: initialize prev_block_len_bits, next_block_len_bits, and block_len_bits.
mov: Remove some redundant and obsolete comments.
Add libavutil/mathematics.h #includes for INFINITY
doxy: structure libavformat groups
doxy: introduce an empty structure in libavcodec
doxy: provide a start page and document libavutil
doxy: cleanup pixfmt.h
regtest: split video encode/decode tests into individual targets
ARM: add explicit .arch and .fpu directives to asm.S
pthread: do not touch has_b_frames
avconv: cleanup the transcoding loop in output_packet().
avconv: split subtitle transcoding out of output_packet().
avconv: split video transcoding out of output_packet().
avconv: split audio transcoding out of output_packet().
avconv: reindent.
avconv: move streamcopy-only code out of decoding loop.
...
Conflicts:
avconv.c
libavcodec/aaccoder.c
libavcodec/pthread.c
libavcodec/version.h
libavutil/audioconvert.h
libavutil/avutil.h
libavutil/mem.h
tests/ref/vsynth1/dv
tests/ref/vsynth1/mpeg2thread
tests/ref/vsynth2/dv
tests/ref/vsynth2/mpeg2thread
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-23 04:02:17 +01:00
Lou Logan
a8e6d4d403
patcheck: spelling and grammar nits
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-23 02:03:10 +01:00
Alex Converse
963f685535
aacdec: Fix PS in ADTS.
...
Fixes File1.aac and Bug 80.
2011-11-22 14:33:11 -08:00
Alex Converse
105ab61c5f
avconv: Consistently use PIX_FMT_NONE.
...
Use PIX_FMT_NONE instead of -1 when dealing with PixelFormat variables.
2011-11-22 14:33:11 -08:00
Clément Bœsch
530a540cec
doc: add a -map_channel example for splitting channels into streams.
2011-11-22 21:54:23 +01:00
Justin Ruggles
0e8fdd41c2
dsputil: use cpuflags in x86 emu_edge_core
...
avoids passing around the extra argument among all the macros it uses
2011-11-22 15:40:51 -05:00
Justin Ruggles
395f2e70dd
dsputil: use movups instead of movdqu in ff_emu_edge_core_sse()
...
This allows emulated_edge_mc_sse() and gmc_sse() to be used under
AV_CPU_FLAG_SSE.
2011-11-22 15:40:51 -05:00
Michael Niedermayer
b429440d85
Merge remote-tracking branch 'shariman/wmall'
...
* shariman/wmall:
call revert_cdlms()
Fix some loop conditions to prevent overreads
Initialize pred in lms_predict()
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-22 21:32:11 +01:00
Michael Niedermayer
6161c41817
avio: Support private options in URLProtocols
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-22 20:54:51 +01:00
Justin Ruggles
05d1e45d1f
wma: initialize prev_block_len_bits, next_block_len_bits, and block_len_bits.
...
The initial values are not checked against the number of block sizes.
Initializing them to frame_len_bits will result in a block size index of 0
in these cases instead of something that might be out-of-range.
Fixes Bug 81.
2011-11-22 13:50:18 -05:00
Michael Niedermayer
c12e1bd1bc
avio: allow any chars in protocols
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-22 18:57:01 +01:00
Clément Bœsch
2bb1c713cc
http: add user_agent option.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-22 18:57:01 +01:00
Alex Converse
9f8c190bb0
mov: Remove some redundant and obsolete comments.
2011-11-22 09:39:45 -08:00
Mans Rullgard
85770d6e56
Add libavutil/mathematics.h #includes for INFINITY
...
This fixes build errors in some environments.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-22 16:36:44 +00:00
Luca Barbato
e361b5089a
doxy: structure libavformat groups
2011-11-22 17:16:02 +01:00
Luca Barbato
e97e5a2e02
doxy: introduce an empty structure in libavcodec
2011-11-22 17:16:02 +01:00
Luca Barbato
757cd8d876
doxy: provide a start page and document libavutil
...
Introduce a basic layout, the subpages are currently left empty.
Split libavutil in multiple groups as example of the structure
2011-11-22 17:16:02 +01:00
Luca Barbato
384bdaceeb
doxy: cleanup pixfmt.h
...
Remove the dubious warning about the header being private and
add some formatting
2011-11-22 17:16:02 +01:00
Michael Niedermayer
78317881f0
graphparser: Fix doxy on avfilter_graph_parse() return value.
...
Found-by: ZacS123
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-22 15:09:26 +01:00
Mans Rullgard
3fe5fc9325
regtest: split video encode/decode tests into individual targets
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-22 12:13:04 +00:00
Mans Rullgard
8ee2b4672f
ARM: add explicit .arch and .fpu directives to asm.S
...
This prevents build errors when compiler and assembler default
targets differ. Ideally each file would declare the highest
level it requires. This is however not easily possible as it
complicates assembling pre-armv6t2 code in Thumb-2 mode.
HAVE_NEON is used as indicator for ARMv7-A since no other
symbol exists for this and NEON is only available in this
variant.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-22 12:13:02 +00:00
Janne Grunau
0945eddec0
pthread: do not touch has_b_frames
...
Adding the thread count in frame level multithreading to has_b_frames
as an additional delay causes more problems than it solves.
For example inconsistent behaviour during timestamp calculation in
libavformat.
Thread count and frame level multithreading are both set by the user.
If the additional delay caused by frame level multithreading needs
to be considered in the calling code it has all information to take
it into account.
Should it become necessary to calculate a maximum delay inside
libavcodec it should be exported as its own field and not reusing
an existing field.
Based on a patch by Michael Niedermayer.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-11-22 09:50:33 +01:00
Michael Niedermayer
7876f14f8b
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
pthread: add some malloc failure checks
avconv: cosmetics, reformat transcode_init()
avconv: rename 'os' variable to 'oc'
doc/filters: fix some typos.
configure: add libpulse to help output
Conflicts:
avconv.c
configure
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-22 02:54:50 +01:00
Mike Melanson
2a0e180144
Document a critical gotcha in FATE
...
FATE samples paths can not be contain a '~' character. This has bitten me
on multiple occasions and I have heard I'm not the only victim.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-21 23:52:23 +01:00
Michael Niedermayer
70974bdb27
ffmpeg: Fix segfault when using ffmpeg with ffserver where ffmpeg does not supply all requested streams.
...
Fixes Ticket675
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-21 23:32:39 +01:00
ami_stuff
cf14c82227
[PATCH] IFF Amiga Continuous Bitmap (ACBM)decoder
...
Some sample IFF ACBM files can be found here:
http://aminet.net/package/dev/basic/ABdemos
Thanks to Peter Ross for his help with this patch.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-21 23:06:53 +01:00
Michael Niedermayer
7f6a019096
Merge remote-tracking branch 'mjbshaw/master'
...
* mjbshaw/master:
Applied patches from Michael Niedermayer to clean up the code
Added support for J2K encoding with libopenjpeg
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-21 23:04:02 +01:00
Anton Khirnov
82963f8f04
avconv: cleanup the transcoding loop in output_packet().
2011-11-21 21:43:48 +01:00
Michael Niedermayer
2c28e26913
ffplay: Check for pix_fmt changes Fixes Ticket238 by not crashing but also not playing the file.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Marton Balint <cus@passwd.hu >
2011-11-21 20:20:48 +01:00
Mashiat Sarker Shakkhar
ea0323b0fa
call revert_cdlms()
2011-11-22 01:03:15 +06:00
Mashiat Sarker Shakkhar
6cf31ef263
Fix some loop conditions to prevent overreads
2011-11-22 01:01:30 +06:00
Mashiat Sarker Shakkhar
a3a8d5e0c1
Initialize pred in lms_predict()
2011-11-22 00:54:01 +06:00
Clément Bœsch
2f0f9a87d0
Fix various if parenthesis misplacements.
2011-11-21 19:35:33 +01:00
Anton Khirnov
9595234c94
avconv: split subtitle transcoding out of output_packet().
2011-11-21 18:12:38 +01:00
Anton Khirnov
45d4b66f6f
avconv: split video transcoding out of output_packet().
2011-11-21 18:12:38 +01:00
Anton Khirnov
ded28ba35b
avconv: split audio transcoding out of output_packet().
2011-11-21 18:12:38 +01:00
Anton Khirnov
78162b4ea2
avconv: reindent.
2011-11-21 18:12:38 +01:00
Anton Khirnov
2a651b719c
avconv: move streamcopy-only code out of decoding loop.
2011-11-21 18:12:37 +01:00
Anton Khirnov
51aeb69452
avconv: remove an always true condition and reindent.
2011-11-21 18:12:37 +01:00
Anton Khirnov
7204ec1a88
avconv: split off streamcopy handling into a separate loop.
...
This is easier to understand and is less likely to break horribly when a
stream is to be both decoded and copied.
2011-11-21 18:12:37 +01:00
Michael Niedermayer
4931c8f0f1
svq1dec: call avcodec_set_dimensions() after dimensions changed.
...
Fixes NGS00148
Found-by: Phillip Langlois
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-21 16:39:34 +01:00
Michael Niedermayer
eef5c35b43
vp3dec: Check coefficient index in vp3_dequant()
...
Fixes NGS00145
Found-by: Phillip Langlois
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-21 16:39:34 +01:00
Michael Niedermayer
895d258e9b
qdm2dec: fix buffer overflow.
...
Fixes NGS00144
Thanks to Phillip for suggestions to improve the patch.
Found-by: Phillip Langlois
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-21 16:36:49 +01:00
Justin Ruggles
a8fe9a7242
pthread: add some malloc failure checks
2011-11-21 10:18:25 -05:00
Michael Niedermayer
919c00ba5a
alsdec: update checked AV_EF flags.
...
A user who wishes to use default error concealment cannot set the
AV_EF_CRCCHECK flag because not every CRC in every format is a
reliable indicator of bitstream damage. In some formats crcrs
can be nonsensical in absence of any damage. We thus add the
AV_EF_CAREFUL flag in addition to the AV_EF_CRCCHECK flag to
allow a user to enable this reliable CRC check without having to
enable all CRC checks in all formats.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-21 15:51:53 +01:00
Anton Khirnov
03f30c837b
avconv: cosmetics, reformat transcode_init()
...
Fix spacing, vertically align, break some long lines, add some empty
lines for readability.
2011-11-21 08:13:37 +01:00
Anton Khirnov
1bb77e51a8
avconv: rename 'os' variable to 'oc'
...
Output AVFormatContext is called 'oc' in most other places.
2011-11-21 08:13:32 +01:00
Anton Khirnov
b0641ab7a0
doc/filters: fix some typos.
2011-11-21 06:45:39 +01:00
Anton Khirnov
7c9224111e
configure: add libpulse to help output
...
Fixes Bug 72.
2011-11-21 06:44:43 +01:00
Michael Niedermayer
2c44aed82a
vsrc_mandelbrot: fix inner=period, the previous optimizations broke it.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-21 04:16:41 +01:00
Michael Niedermayer
833a195905
h264: Fix invalid interlaced progressive MB combinations for direct mode prediction.
...
Fixes Ticket312
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-21 02:18:47 +01:00
Lou Logan
d2e0a6dd64
MAINTAINERS: add myself as a web site maintainer
...
Also add GPG fingerprint.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-21 00:07:52 +01:00
Michael Niedermayer
9b62241850
ffmpeg: 10l add back show_banner() that was lost in the last merge.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-21 00:06:23 +01:00
Michael Niedermayer
3cc04b6a9a
git-howto: update git url.
...
git.videolan.org is confusing to some users as videolan is a seperate project from ffmpeg.
the new name points to git.videolan.org but avoids the confusion.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-20 22:59:33 +01:00
Michael Niedermayer
15a686b714
h263: make default color black, like flv
...
Fixes Ticket126
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-20 20:40:22 +01:00
Michael Niedermayer
50d6f81956
mpegvideo: dont use ff_mspel_motion() for vc1
...
Fixes Ticket655
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-20 17:19:25 +01:00
Clément Bœsch
bdd22e3523
swr: change minimum I/O channel count to zero.
...
This will silence the warning of av_set_opt_int() in swr for
input/output channels when the layout is not yet defined (or supported).
2011-11-20 16:06:16 +01:00
Michael Niedermayer
34465bbcb4
Merge remote-tracking branch 'shariman/wmall'
...
* shariman/wmall: (24 commits)
Clean-up
dump_int_buffer() to dump samples from a buffer
Implement revert_cdlms()
Doxy for reset_codec()
Store transient state and position of transient area
Implement use_high_update_speed() and use_normal_update_speed()
Initialize num_logged_tiles and remove unnecessary codes
Log index for each line of output
Log tile size
Output decoded residues
Replace placeholders with actual calls to clear_codec_buffers() and reset_codec()
Implement lms_update()
Implement lms_predict()
Implement reset_codec()
Add missing syntax elements to WmallDecodeCtx
Add .recent syntax element to cdlms struct
Implement clear_codec_buffers()
Add buffers to context necessary for reverting cdmls and mclms filter
Use avpriv_copy_bits() instead of ff_copy_bits()
Cosmetics
...
Conflicts:
libavcodec/wmalosslessdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-20 15:43:19 +01:00
Michael Niedermayer
a9011623ea
avopts: Fix random values being printed in error messages:
...
Bug introduced in:
commit 7bb1807c2d
Author: Anton Khirnov <anton@khirnov.net >
Date: Tue Aug 23 12:58:49 2011 +0200
AVOptions: refactor set_number/write_number
write_number() does the actual writing of the supplied
number to destination. Move finding the option and choosing destination
address out of it.
2011-11-20 15:02:36 +01:00
Reimar Döffinger
e8ab4bac0c
Fix compilation with YASM.
...
YASM does not support %ifempty even though it is in the official
NASM documentation and supported since NASM 2.02.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-20 15:03:32 +01:00
Reimar Döffinger
03f1caec61
HACK: fix compilation with NASM.
...
This issue is actually already fixed in NASM, however it will be a
bit before it arrives everywhere.
This should work as a temporary work-around.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-20 12:35:10 +01:00
Mashiat Sarker Shakkhar
7a9807dea4
Clean-up
2011-11-20 14:51:40 +06:00
Mashiat Sarker Shakkhar
3e2f664b99
dump_int_buffer() to dump samples from a buffer
2011-11-20 14:51:40 +06:00
Mashiat Sarker Shakkhar
caf9eb85b1
Implement revert_cdlms()
2011-11-20 14:51:40 +06:00
Mashiat Sarker Shakkhar
d47782df26
Doxy for reset_codec()
2011-11-20 14:51:40 +06:00
Mashiat Sarker Shakkhar
3e4901b24e
Store transient state and position of transient area
2011-11-20 14:51:40 +06:00
Mashiat Sarker Shakkhar
3f3d2b5f65
Implement use_high_update_speed() and use_normal_update_speed()
2011-11-20 14:51:40 +06:00
Mashiat Sarker Shakkhar
1e0db1c52a
Initialize num_logged_tiles and remove unnecessary codes
2011-11-20 14:51:39 +06:00
Mashiat Sarker Shakkhar
5b2680a2af
Log index for each line of output
2011-11-20 14:51:39 +06:00
Mashiat Sarker Shakkhar
a7c31f1595
Log tile size
2011-11-20 14:51:39 +06:00
Mashiat Sarker Shakkhar
d5aef477e6
Output decoded residues
2011-11-20 14:51:39 +06:00
Mashiat Sarker Shakkhar
f3d349f697
Replace placeholders with actual calls to clear_codec_buffers() and reset_codec()
2011-11-20 14:51:39 +06:00
Mashiat Sarker Shakkhar
269a0dee19
Implement lms_update()
2011-11-20 14:51:39 +06:00
Mashiat Sarker Shakkhar
0faae518e9
Implement lms_predict()
2011-11-20 14:51:39 +06:00
Mashiat Sarker Shakkhar
03684c8ff3
Implement reset_codec()
2011-11-20 14:51:39 +06:00
Mashiat Sarker Shakkhar
93d2cabd61
Add missing syntax elements to WmallDecodeCtx
2011-11-20 14:51:39 +06:00
Mashiat Sarker Shakkhar
79b16e780d
Add .recent syntax element to cdlms struct
2011-11-20 14:51:39 +06:00
Mashiat Sarker Shakkhar
87b9c23b9a
Implement clear_codec_buffers()
2011-11-20 14:51:38 +06:00
Mashiat Sarker Shakkhar
d58db7207d
Add buffers to context necessary for reverting cdmls and mclms filter
2011-11-20 14:51:38 +06:00
Mashiat Sarker Shakkhar
a80a10bd73
Use avpriv_copy_bits() instead of ff_copy_bits()
2011-11-20 14:51:38 +06:00
Mashiat Sarker Shakkhar
374582acfe
Cosmetics
2011-11-20 14:51:38 +06:00
Mashiat Sarker Shakkhar
fa3e0190f9
Add missing ff_ before the AVCodec struct for wmalossless
2011-11-20 14:51:38 +06:00
Andreas Öman
4d9d9a443f
wmall: Working bitstream parser
2011-11-20 14:51:38 +06:00
John Stebbins
c40e1757a1
httpproxy: Fix dependencies
...
Fix building with --disable-network.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-20 09:51:17 +02:00
Martin Storsjö
66e9c0b6ab
httpproxy: Specify the object files needed in the Makefile
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-20 09:41:43 +02:00
Michael Niedermayer
dbb38bc389
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
swscale: Fix stack alignment for SSE
avcodec: move some AVCodecContext fields to an internal struct.
avcodec: use av_opt_set() instead of deprecated av_set_string3()
avcodec: fix some const warnings
avcodec: remove pointless AVOption, internal_buffer_count
imgutils: Fix illegal read.
Conflicts:
doc/APIchanges
libavcodec/avcodec.h
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-20 02:46:06 +01:00
Michael Niedermayer
90c02ae142
vsrc_mandelbrot: increase maxiter to 7189
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 23:52:29 +01:00
Michael Niedermayer
690860d0d5
vsrc_mandelbrot: Use threshold to detect cycles.
...
This way cycles are detected much earlier.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 23:28:56 +01:00
Michael Niedermayer
a5dfedd381
vsrc_mandelbrot: detect edges in interpol()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 22:22:21 +01:00
Michael Niedermayer
4ebbcdb3eb
vsrc_mandelbrot: avoid a | in interpol()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 22:11:53 +01:00
Michael Niedermayer
c88bdafe25
lavc: translate FF_ER_EXPLODE to AV_EF_EXPLODE|COMPLIANT
...
This is most likely what the user wants.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 20:43:44 +01:00
Michael Niedermayer
5dd16af6b5
vsrc_mandelbrot: increase default zoom speed by a factor of 2
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 19:42:24 +01:00
Michael Niedermayer
ca14808275
vsrc_mandelbrot: spatial interpolation
...
speeds the code up by a factor of about 2-3.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 19:41:28 +01:00
John Stebbins
09d243ddd0
swscale: Fix stack alignment for SSE
...
Although gcc guarantees 16 byte stack alignment, threads under WinXP
don't appear to be guaranteed to start stack aligned. So fix the
alignment.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-11-19 09:55:07 -08:00
Justin Ruggles
f3a29b750a
avcodec: move some AVCodecContext fields to an internal struct.
...
A new field, AVCodecContext.internal is used to hold a new struct
AVCodecInternal, which has private fields that are not codec-specific and are
used by general libavcodec functions.
Moved internal_buffer, internal_buffer_count, and is_copy.
2011-11-19 10:01:05 -05:00
Michael Niedermayer
56fc4cf04f
vsrc_mandelbrot: always store values for periodicity checking, this avoids a few checks.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 15:02:34 +01:00
Michael Niedermayer
da1344e0cd
vsrc_mandelbrot: simplify second bailout search by not recalculating values.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 15:00:26 +01:00
Michael Niedermayer
e749b3780c
vsrc_mandelbrot: increase zyklus array size so that optimizations can write a bit more.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 14:16:53 +01:00
Michael Niedermayer
649d3932db
vsrc_mandelbrot: check bailout only once every 8 iterations, this is around 10% faster.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 14:15:56 +01:00
Michael Niedermayer
fe2efc5264
vsrc_mandelbrot: factorize periodicity checking too.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 13:55:51 +01:00
Michael Niedermayer
cf670fbc96
vsrc_mandelbrot: factorize main calculation out into a macro.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 13:51:44 +01:00
Justin Ruggles
513b691955
avcodec: use av_opt_set() instead of deprecated av_set_string3()
2011-11-19 01:14:27 -05:00
Justin Ruggles
fa9aeb82e2
avcodec: fix some const warnings
...
libavcodec/options.c:583: warning: assignment discards qualifiers from pointer
target type
libavcodec/options.c:589: warning: initialization discards qualifiers from
pointer target type
2011-11-19 01:10:58 -05:00
Justin Ruggles
86d3730360
avcodec: remove pointless AVOption, internal_buffer_count
2011-11-19 00:36:49 -05:00
Michael Niedermayer
0af8d20755
h261dec: correct AV_EF flags.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 04:07:26 +01:00
Michael Niedermayer
b0ccebe448
mpeg12dec: correct AV_EF flags.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 04:07:26 +01:00
Michael Niedermayer
7fbe87c079
lavc: remove incorrect mapping between semantically incompatible error recognization values and flags.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 04:07:26 +01:00
Michael Niedermayer
85ab33b87f
mpegaudeiodec: correct AV_EF flags.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 04:07:26 +01:00
Michael Niedermayer
02bd11e969
lavc: Add AV_EF flags to restore support for the error_resilience framework in the new API.
...
The existing flags prior to this have a semantically different meaning and cannot be
used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 04:07:26 +01:00
Thierry Foucu
c693aa6f71
imgutils: Fix illegal read.
...
Found with address sanitizer.
Signed-off-by: Alex Converse <alex.converse@gmail.com >
2011-11-18 17:42:49 -08:00
Michael Niedermayer
328a3545c6
udp: update to new interrupt callback API
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 02:14:28 +01:00
Michael Niedermayer
e161b079de
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (22 commits)
configure: add check for w32threads to enable it automatically
rtmp: do not hardcode invoke numbers
cinepack: return non-generic errors
fate-lavf-ts: use -mpegts_transport_stream_id option.
Add an APIchanges entry and a minor bump for avio changes.
avio: Mark the old interrupt callback mechanism as deprecated
avplay: Set the new interrupt callback
avconv: Set new interrupt callbacks for all AVFormatContexts, use avio_open2() everywhere
cinepak: remove redundant coordinate checks
cinepak: check strip_size
cinepak, simplify, use AV_RB24()
cinepak: simplify, use FFMIN()
cinepak: Fix division by zero, ask for sample if encoded_buf_size is 0
applehttp: Fix seeking in streams not starting at DTS=0
http: Don't use the normal http proxy mechanism for https
tls: Handle connection via a http proxy
http: Reorder two code blocks
http: Add a new protocol for opening connections via http proxies
http: Split out the non-chunked buffer reading part from http_read
segafilm: add support for raw videos
...
Conflicts:
avconv.c
configure
doc/APIchanges
libavcodec/cinepak.c
libavformat/applehttp.c
libavformat/version.h
tests/lavf-regression.sh
tests/ref/lavf/ts
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 02:00:06 +01:00
Michael Niedermayer
36a60fad62
lavf: cdg has large non keyframe segments and should thus be exempt from the non keyframe check in seeking.
...
Improves seeking for cdg files.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-19 01:15:40 +01:00
Michael Bradshaw
1b987c4bb0
Applied patches from Michael Niedermayer to clean up the code
2011-11-18 15:02:44 -07:00
Janne Grunau
ff3755cbde
configure: add check for w32threads to enable it automatically
2011-11-18 22:36:06 +01:00
Michael Niedermayer
fca85ce5ec
rawdec: use a default sample rate if none is specified.
...
Fixes "ffmpeg -f s16le -i /dev/zero"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-18 22:34:41 +01:00
Michael Bradshaw
b0a453bf24
Merge branch 'master' of git://git.videolan.org/ffmpeg
2011-11-18 14:04:11 -07:00
Michael Niedermayer
6f326b5054
sws: fix:
...
libswscale/swscale_unscaled.c:915:9: warning: new qualifiers in middle of multi-level non-const cast are unsafe
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-18 22:00:33 +01:00
Michael Niedermayer
8c3ab3094b
sws: Fix:
...
libswscale/swscale_unscaled.c:805:5: warning: passing argument 1 of ‘check_image_pointers’ from incompatible pointer type
libswscale/swscale_unscaled.c:774:12: note: expected ‘uint8_t **’ but argument is of type ‘const uint8_t * const*’
libswscale/swscale_unscaled.c:809:5: warning: passing argument 1 of ‘check_image_pointers’ discards qualifiers from pointer target type
libswscale/swscale_unscaled.c:774:12: note: expected ‘uint8_t **’ but argument is of type ‘uint8_t * const*’
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-18 22:00:33 +01:00
Michael Niedermayer
58eca5178a
sws: Fix:
...
libswscale/utils.c:941:13: warning: passing argument 5 of ‘initMMX2HScaler’ from incompatible pointer type
libswscale/utils.c:524:12: note: expected ‘int32_t *’ but argument is of type ‘int16_t *’
libswscale/utils.c:942:13: warning: passing argument 5 of ‘initMMX2HScaler’ from incompatible pointer type
libswscale/utils.c:524:12: note: expected ‘int32_t *’ but argument is of type ‘int16_t *’
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-18 22:00:27 +01:00
Michael Niedermayer
6ed000c8e6
sws: Fix warning: ‘abase’ may be used uninitialized in this function
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-18 21:51:29 +01:00
Michael Niedermayer
0a3a125fd9
sws: update copyright dates
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-18 21:44:26 +01:00
Joakim Plate
babf4fe01a
Don't fill in frame gaps with copied refs after flush
...
The filled in refs cause corruptions in the video frame
for a long time after it should have recovered.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-18 21:08:48 +01:00
Michael Niedermayer
14db3af4f2
qdm2dec: check remaining input bits in the mainloop of qdm2_fft_decode_tones()
...
This is neccessary but likely not sufficient to prevent out of array reads.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-18 20:05:00 +01:00
Clément Bœsch
1fbf7165d5
lavfi: reimplement MPlayer's af_pan filter for libavfilter.
...
Original code by Clément Bœsch.
Parameters parsing and misc enhancements by Nicolas George.
2011-11-18 19:39:26 +01:00
Michael Bradshaw
99252726e8
Merge branch 'master' of git://git.videolan.org/ffmpeg
2011-11-18 08:28:03 -07:00
Tomas Härdin
fd1cea6549
mxfdec: Add hack that adjusts the n_delta calculation when system items are present
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-18 15:33:44 +01:00
Tomas Härdin
7ddb0607f3
mxfdec: Parse IndexTableSegments and convert them into AVIndexEntry arrays
...
Based on work by Georg Lippitsch <georg.lippitsch@gmx.at >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-18 15:33:36 +01:00
Josh Allmann
704af3e29c
rtmp: do not hardcode invoke numbers
...
Note: FCPublish/FCUnpublish are adobe server specific and not described
in the rtmp specification. Some servers might not cope with them at
all.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-11-18 13:57:44 +01:00
Luca Barbato
b7d939d998
cinepack: return non-generic errors
2011-11-18 12:10:41 +01:00
Anton Khirnov
81ac4cda0b
fate-lavf-ts: use -mpegts_transport_stream_id option.
...
Serves as a test of muxer private options.
2011-11-18 11:01:46 +01:00
Anton Khirnov
f872e4d0a7
Add an APIchanges entry and a minor bump for avio changes.
2011-11-18 11:01:16 +01:00
Martin Storsjö
45f511ece7
avio: Mark the old interrupt callback mechanism as deprecated
...
Prepare for removing it at an upcoming major bump.
2011-11-18 11:01:16 +01:00
Martin Storsjö
40972f7c54
avplay: Set the new interrupt callback
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-18 11:01:16 +01:00
Martin Storsjö
2abe947ac0
avconv: Set new interrupt callbacks for all AVFormatContexts, use avio_open2() everywhere
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-18 11:01:16 +01:00
Michael Niedermayer
a4009c6a9a
cinepak: remove redundant coordinate checks
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-18 11:58:45 +02:00
Michael Niedermayer
867b496681
cinepak: check strip_size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-18 11:58:43 +02:00
Michael Niedermayer
d92fea2b14
cinepak, simplify, use AV_RB24()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-18 11:58:42 +02:00
Michael Niedermayer
a2b51fe87c
cinepak: simplify, use FFMIN()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-18 11:36:05 +02:00
Michael Niedermayer
b55aa7df6b
cinepak: Fix division by zero, ask for sample if encoded_buf_size is 0
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-18 11:35:56 +02:00
Panagiotis H.M. Issaris
795d9594cf
applehttp: Fix seeking in streams not starting at DTS=0
...
The Apple HTTP Live Streaming demuxer's implementation of
seeking searches for the MPEG TS segment which contains the
requested timestamp. In its current implementation it assumes
that the first segment will start from 0.
But, MPEG TS streams do not necessarily start with timestamp
(near) 0, causing seeking to fail for those streams.
This also occurs when using live streaming of HTTP Live Streams.
In this case sliding playlists may be used, which means that in
that case only the last x encoded segments are stored, the earlier
segments get deleted from disk and removed from the playlist.
Because of this, when starting playback of a stream in the middle
of such a broadcast, the initial segment fetched after parsing
the m3u8 playlist will not start from timestamp (near) 0, causing
(the admittedly limited live) seeking to fail.
This patch changes this demuxers seeking implementation to use
the initial DTS as an offset for searching the segments containing
the requested timestamp.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-18 11:33:44 +02:00
Stefano Sabatini
a7e5679054
ffprobe: make writer_print_integer support long long int values
...
This makes possible to use writer_print_integer for printing int64_t
values.
2011-11-18 10:09:26 +01:00
Martin Storsjö
dbc2424baa
http: Don't use the normal http proxy mechanism for https
...
The tls protocol handles connections via proxies internally.
With TLS/SSL, the peer verification requires that the client
speaks directly with the server, since the proxy doesn't have
the remote server's private key.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-18 10:59:53 +02:00
Martin Storsjö
2565dbeb3e
tls: Handle connection via a http proxy
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-18 10:59:53 +02:00
Martin Storsjö
f5c5d57b57
http: Reorder two code blocks
...
This is in preparation for a later commit.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-18 10:59:53 +02:00
Martin Storsjö
9f1dae944e
http: Add a new protocol for opening connections via http proxies
...
This opens a plain TCP connection through the proxy via the
CONNECT HTTP method. Normally, this is allowed for connections
on port 443, but can in general be used to allow connections
to any port (depending on proxy configuration), and could thus
be used to tunnel any TCP connection via a HTTP proxy.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-18 10:59:53 +02:00
Martin Storsjö
bf7723a640
http: Split out the non-chunked buffer reading part from http_read
...
This is in preparation for a later commit, where this function
is reused.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-18 10:59:16 +02:00
Matthew Hoops
ddf9b510e7
segafilm: add support for raw videos
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-18 10:54:44 +02:00
John Brooks
525c5b08fb
rtpdec: only use RTCP for PTS when synchronizing multiple streams
...
RTCP timestamps are only necessary to synchronize time between
multiple streams. For a single stream, the RTP packet timestamp
provides more reliable timing. As a result, single-stream RTP
sessions should now have accurate and monotonic PTS.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-18 10:47:28 +02:00
John Brooks
12348ca25e
rtpdec: unwrap RTP timestamps for PTS calculation
...
The timestamp field in RTPDemuxContext was unused before this.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-18 10:31:17 +02:00
Michael Niedermayer
95d6e5bdd5
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
vp5: Fix illegal read.
vp6: Fix illegal read.
tls: Use TLSv1_client_method for OpenSSL
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-18 02:55:32 +01:00
Michael Niedermayer
640424e080
j2kdec: fix 10l typo in initializing sgnd.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-18 02:35:49 +01:00
Michael Bradshaw
856b33f578
Added support for J2K encoding with libopenjpeg
...
Note: Some of the previous patches have had two bugs that have been fixed
in this patch.
Signed-off-by: Michael Bradshaw <mbradshaw@sorensonmedia.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-18 01:20:40 +01:00
Michael Bradshaw
7c92c03b8d
Added support for J2K encoding with libopenjpeg
...
Note: Some of the previous patches have had two bugs that have been fixed
in this patch.
2011-11-17 16:57:09 -07:00
Michael Niedermayer
32aa9590ac
vf_scale: Fix slice position assert to take vertical subsampling into account.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-17 22:39:46 +01:00
Michael Niedermayer
5bccb2d096
sws: handle jpeg pixel formats in sws_init_context()
...
Fixes Ticket576
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-17 22:00:20 +01:00
Clément Bœsch
3495817468
libutvideo: use K&R style.
2011-11-17 21:06:46 +01:00
Alex Converse
bb4b0ad83b
vp5: Fix illegal read.
...
Found with Address Sanitizer
2011-11-17 11:58:49 -08:00
Thierry Foucu
e0966eb140
vp6: Fix illegal read.
...
Found with Address Sanitizer
Signed-off-by: Alex Converse <alex.converse@gmail.com >
2011-11-17 11:58:40 -08:00
Michael Niedermayer
30ca700ba1
ac3probe: Detect Sonic Foundry Soft Encode AC3 as raw AC3.
...
Our ac3 code chain can handle it fine.
More ideal would be to write a demuxer that actually extracts what can be from the additional
headers and uses it for whatever it can be used for.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-17 20:29:55 +01:00
Michael Niedermayer
4fef94c6d2
swr: doxument matrix fields.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-17 20:29:55 +01:00
Clément Bœsch
0bfc03df3a
swr: move code to avoid resample forward declaration.
2011-11-17 18:30:03 +01:00
Clément Bœsch
eafa2b6005
swr: introduce a public function to customize the channel mapping.
2011-11-17 18:30:03 +01:00
Tim Nicholson
d3baced24f
doc: reword and clarify default stream selection.
2011-11-17 18:30:03 +01:00
Michael Niedermayer
5a2b3f3a52
aacdec: Avoid unneeded reinit due to ADTS headers
...
Fixes Ticket 662
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-17 18:11:41 +01:00
Clément Bœsch
1dbd433f0d
swr: use av_opt_set_int() instead of manual assignments in swr_alloc_set_opts().
2011-11-17 17:57:20 +01:00
Clément Bœsch
f03afd5d54
swr: surround mixing is obviously used, fix comment.
2011-11-17 17:57:07 +01:00
Clément Bœsch
68d3144e89
swr: doxycomment public API.
2011-11-17 17:56:55 +01:00
Clément Bœsch
acd56efbeb
swr: correctly raise rematrix AVERROR.
2011-11-17 17:56:52 +01:00
Michael Bradshaw
31ec694771
libopenjpeg: rename decoder source file.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-17 16:28:37 +01:00
Carl Eugen Hoyos
d50122eafa
Do not try to read total disc or track number if data atom is too short.
...
Fixes ticket #659 .
2011-11-17 14:12:34 +01:00
Martin Storsjö
92db95e9ca
tls: Use TLSv1_client_method for OpenSSL
...
TLSv1 is compatible with SSLv3, so this doesn't change much
in terms of compatibility. By explicitly using TLSv1, OpenSSL
sends the server name indication (SNI) header, which we
already set using SSL_set_tlsext_host_name (earlier, this
didn't have any effect).
SNI allows servers to serve SSL content for different host
names with separate certificates on one single port (vhosts).
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-17 15:11:38 +02:00
Clément Bœsch
7cdfce4f63
swr: fix "control reaches end of non-void function" compiler warning.
2011-11-17 10:16:08 +01:00
Clément Bœsch
809631af1a
swr: bump minor version.
2011-11-17 10:16:07 +01:00
Clément Bœsch
af1eb298c1
swr: use int16_t instead of short for resampling.
2011-11-17 10:16:07 +01:00
Clément Bœsch
4c0bad513a
swr: start doxycommenting the API.
2011-11-17 10:16:07 +01:00
Clément Bœsch
a768b9d825
swr: make swr_* functions match the prototypes.
2011-11-17 10:16:07 +01:00
Clément Bœsch
645c61fb2b
swr: rename swr_alloc2() to swr_alloc_set_opts().
2011-11-17 10:16:07 +01:00
Clément Bœsch
c4deb90cfa
swr: use "swri_" prefix instead of "swr_" for the private API.
2011-11-17 10:16:07 +01:00
Clément Bœsch
64db5a1a57
swr: drop 'AV' prefix from ResampleContext.
...
This type/struct is not part of the public API.
2011-11-17 10:16:07 +01:00
Clément Bœsch
fc6351d019
swr: make audio convert code explicitely private.
...
Only what's declared in libswresample/swresample.h is public.
2011-11-17 10:16:07 +01:00
Clément Bœsch
3a5fc38574
swr: fix #endif comment ref.
2011-11-17 10:16:07 +01:00
Michael Niedermayer
3e971fc6b5
h264: fix cur_chroma_format_idc with slice multithreading.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-17 05:42:18 +01:00
Michael Niedermayer
1d23e5246c
mjpeg: support mpo
...
Fixes stereoscopic_photo.mpo
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-17 03:13:50 +01:00
Michael Niedermayer
8709ba907a
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
mpegaudiodec: Don't use a nonexistent log context for av_dlog
avformat: Accept the ISO8601 separate format as input, too
avformat: Interpret times in ff_iso8601_to_unix_time as UTC
avutil: Add av_timegm as a public function
cinepak: Add another special case so that it can handle the following file:
lagarith: add some RGBA decoding support
lagarith: Add correct line prediction for RGB
Conflicts:
doc/APIchanges
libavcodec/cinepak.c
libavutil/avutil.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-17 02:44:33 +01:00
Michael Niedermayer
4f7ad4c3e4
h264: migrate poc gap based has_b_frames calculation into new has_b_frame calculation code.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-17 01:08:17 +01:00
Michael Niedermayer
ed83f84891
h264: minor simplification
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-17 00:36:38 +01:00
Michael Niedermayer
bfca35114a
h264: rewrite has_b_frame calculation code,
...
the previous implementation was too buggy.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-17 00:01:40 +01:00
Michael Niedermayer
18b7f40007
h264: reset last_pocs on IDRs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-16 23:57:17 +01:00
Michael Niedermayer
7056f13a89
cinepak: remove redundant coordinate checks
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-16 20:47:05 +01:00
Michael Niedermayer
cea0c82d9b
cinepak: check strip_size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-16 20:47:05 +01:00
Michael Niedermayer
f35f50b311
cinepak, simplify, use AV_RB24()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-16 20:46:59 +01:00
Michael Niedermayer
111ffa55b7
cinepak: simplify, use FFMIN()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-16 20:45:11 +01:00
Clément Bœsch
69a501e6a1
ffprobe: small align cosmetic in json writer struct init.
2011-11-16 19:37:11 +01:00
Clément Bœsch
9813af259a
ffprobe: make Writers constant.
2011-11-16 19:35:23 +01:00
Stefano Sabatini
f0db05008d
ffprobe: apply misc cosmetics to compact writer definition
2011-11-16 18:40:09 +01:00
Stefano Sabatini
1f0d937f77
ffprobe: add csv writer
2011-11-16 18:40:03 +01:00
Michael Niedermayer
4e7b3ef3b3
cinepak: Fix division by zero, ask for sample if encoded_buf_size is 0
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-16 15:19:57 +01:00
Mike Melanson
12d9a36481
Add another special case to the Cinepak video decoder so that it can handle the following file:
...
http://samples.mplayerhq.hu/V-codecs/CVID/bad_cinepak_frame_size.mov
This fix works around another work around which handles a different type
of odd Cinepak data.
Thanks to Matthew Hoops (clone2727 - gmail.com) for the sample and fix.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-16 15:13:01 +01:00
Michael Niedermayer
974d25e2db
mandelbrot: make mincol description and code match.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-16 15:13:01 +01:00
Martin Storsjö
268fb3f985
mpegaudiodec: Don't use a nonexistent log context for av_dlog
...
This fixes builds with DEBUG defined, broken since
1158745a2d .
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-16 12:01:32 +02:00
Martin Storsjö
18579f08e7
avformat: Accept the ISO8601 separate format as input, too
...
This makes the function accept the format of creation_time
as output by demuxers (e.g. the mov demuxer), making the
creation timestamp stay intact if transcoding.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-16 11:22:43 +02:00
Martin Storsjö
4a83541650
avformat: Interpret times in ff_iso8601_to_unix_time as UTC
...
This function is used in muxers for parsing the 'creation_time'
metadata key, for converting it to a time value.
This makes it match the behaviour of the exported 'creation_time'
metadata from demuxers, where it is in UTC, too.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-16 11:22:42 +02:00
Martin Storsjö
627067118c
avutil: Add av_timegm as a public function
...
This is useful, since the normal timegm function isn't a standard
function (requiring _BSD_SOURCE or _SVID_SOURCE on glibc to
be visible, and not available on e.g. windows). The widely available
function mktime uses the local time zone, which requires ugly
workarounds to handle UTC time.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-16 11:22:41 +02:00
Clément Bœsch
16b809ce8e
lavfi: fix misc typo in avfilter.h header.
2011-11-16 09:53:58 +01:00
Mike Melanson
747283a078
cinepak: Add another special case so that it can handle the following file:
...
http://samples.mplayerhq.hu/V-codecs/CVID/bad_cinepak_frame_size.mov
This fix works around another work around which handles a different type
of odd Cinepak data.
Thanks to Matthew Hoops (clone2727 - gmail.com) for the sample and fix.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-16 10:50:52 +02:00
Kostya Shishkov
ffc638c283
lagarith: add some RGBA decoding support
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-16 10:49:51 +02:00
Nathan Caldwell
39616fc307
lagarith: Add correct line prediction for RGB
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-16 10:46:30 +02:00
Clément Bœsch
4da45aff28
cleanup: remove various double end ';' all over the code.
2011-11-16 07:48:23 +01:00
Clément Bœsch
df72ae673f
swr: replace deprecated av_set_int() with av_opt_set_int().
2011-11-16 07:27:20 +01:00
Clément Bœsch
ad561b5707
swr: replace deprecated av_opt_set_defaults2() with av_opt_set_defaults().
2011-11-16 07:27:20 +01:00
Clément Bœsch
180aa82c1d
swr: replace deprecated av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().
2011-11-16 07:27:20 +01:00
Clément Bœsch
f9368466c4
swr: use designated initializers for the class.
2011-11-16 07:27:20 +01:00
Clément Bœsch
7e516a11ca
swr: rename resample2 to resample.
2011-11-16 07:27:20 +01:00
Clément Bœsch
fc42550097
swr: move format convert code to dedicated functions.
...
This should easier common case optimizations.
2011-11-16 07:27:20 +01:00
Michael Niedermayer
20431a9982
wma: Check channel number before init.
...
Fixes Ticket240
Based on patch by ami_stuff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-16 03:37:44 +01:00
Michael Niedermayer
c1c836d9eb
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavf: fix multiplication overflow in avformat_find_stream_info()
cosmetics: indentation
mpegaudiodec: init static tables in AVCodec.init_static_data()
Conflicts:
libavcodec/mpegaudiodec.c
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-16 02:27:31 +01:00
Michael Niedermayer
cd6851c5ef
lavf: if timestamps are invalid (pts=dts) only drop dts.
...
Because if we drop both we have no timestamps at all for some files.
Fixes Ticket344
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-16 01:25:42 +01:00
Mans Rullgard
52767d891c
lavf: fix multiplication overflow in avformat_find_stream_info()
...
Converting to double before the multiplication rather than after
avoids an integer overflow in some cases.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-15 23:41:04 +00:00
Stefano Sabatini
1c43713e57
ffprobe: add compact writer
2011-11-16 00:32:08 +01:00
Stefano Sabatini
0491a2a07a
ffprobe: force display of missing fields, depending on writer.flags
...
Add flags field to Writer, and define the
WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS flag which forces the display of
optional fields, for example non-available or invalid fields.
Also set the flag in the default writer.
This change is required as for some writers it is preferable to show all
fields (for example for avoiding a variable number of fields in CSV
output), while for other formats (e.g. JSON, XML) it is better to leave
invalid/unavailable fields unspecified and thus simplify the parsing
stage on the deserializer side.
2011-11-16 00:30:35 +01:00
Michael Niedermayer
7776091b9f
diracdec: obmc accesses arent aligned for all files.
...
Thus use unaligned accesses.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-15 23:37:40 +01:00
Michael Niedermayer
d5e1244ca7
opt: Fix *av_opt_find2(NULL)
...
Fixes Ticket650
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-15 22:43:21 +01:00
Michael Niedermayer
04bb26e3ee
mandelbrot: add dither to convergence & mincol colorings.
...
This avoids banding artifacts.
Note, low end TFTs still show some banding.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-15 21:33:11 +01:00
Michael Niedermayer
7575980ba4
mandelbrot: make mincol the default.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-15 20:04:25 +01:00
Michael Niedermayer
8d51cb4fb8
mandelbrot: add mincol inner coloring method.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-15 20:04:25 +01:00
Panagiotis H.M. Issaris
6f20921dee
Fix seeking when using Apple HTTP Live Streaming
...
The Apple HTTP Live Streaming demuxer's implementation of seeking searches for
the MPEG TS segment which contains the requested timestamp. In its current
implementation it assumes that the first segment will start from 0.
But, MPEG TS streams do not necessarily start with timestamp (near) 0, causing
seeking to fail for those streams.
This also occurs when using live streaming of HTTP Live Streams. In this case
sliding playlists may be used, which means that in that case only the last x
encoded segments are stored, the earlier segments get deleted from disk and
removed from the playlist. Because of this, when starting playback of a stream
in the middle of such a broadcast, the initial segment fetched after parsing
the m3u8 playlist will not start from timestamp (near) 0, causing (the
admittedly limited live) seeking to fail.
This patch changes this demuxers seeking implementation to use the initial DTS
as an offset for searching the segments containing the requested timestamp.
2011-11-15 18:35:03 +01:00
Justin Ruggles
f1d1516e55
cosmetics: indentation
2011-11-15 12:17:20 -05:00
Justin Ruggles
1158745a2d
mpegaudiodec: init static tables in AVCodec.init_static_data()
2011-11-15 12:17:20 -05:00
Panagiotis H.M. Issaris
bf0ca404c6
Update my GnuPG fingerprint.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-15 18:13:59 +01:00
Michael Niedermayer
5a68b1ac3b
mandelbrot: add inner drawing method to show converence time
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-15 17:26:51 +01:00
Michael Niedermayer
5582e557e6
mandelbrot: add "fractal" to the description
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-15 17:26:46 +01:00
Michael Niedermayer
4c52adad69
mandelbrot: Fix "warning: passing argument 2 of ‘draw_mandelbrot’ from incompatible pointer type"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-15 17:26:41 +01:00
Michael Niedermayer
53cb0de25b
asfdec: mark only ts1 as av_unused
...
Idea-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-15 13:06:36 +01:00
Michael Niedermayer
7ea3963817
mpegts: Completely ignore H222 spec and consider reserved adaption
...
fields to be perfectly fine mpeg TS.
Fixes Ticket580
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-15 04:15:34 +01:00
Michael Niedermayer
a72580fc9e
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
binkvideo: simplify and remove invalid shifts
pulse: compute frame_duration once and fix it
lavf: simplify format_child_class_next()
hwaccel: OS X Video Decoder Acceleration (VDA) support.
doc: add support for an optional navigation bar in texi2html pages
Conflicts:
configure
libavcodec/Makefile
libavcodec/allcodecs.c
libavcodec/vda.c
libavcodec/vda.h
libavcodec/vda_h264.c
libavcodec/vda_internal.h
libavcodec/version.h
libavformat/options.c
libavutil/avutil.h
libavutil/pixfmt.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-15 03:13:42 +01:00
Michael Niedermayer
be4c9a440f
mpeg4videodec: dont treat empty frames as errors for QMP4, it seems thats normal.
...
Fixes remaining complaints in Ticket560 possibly.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-15 02:25:19 +01:00
Michael Niedermayer
66cd3c12ab
mpegaudio: prettify avpriv_mpa_bitrate_tab
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-15 01:59:59 +01:00
Michael Niedermayer
6760bd0a19
asfdec: avoid unused variable warning.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-15 01:58:13 +01:00
Michael Niedermayer
ba7f18876c
asfdec: use dts for seeking.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-15 01:08:04 +01:00
Michael Niedermayer
bb4eabacea
asfdec: restore timestamp reading code
...
This reverts part of:
commit e65ab9d94f
Author: Mans Rullgard <mans@mansr.com >
Date: Wed Jun 1 17:26:27 2011 +0100
Remove unused variables
2011-11-15 00:57:08 +01:00
Clément Bœsch
edc26bfae5
vda: use K&R style.
2011-11-15 00:41:36 +01:00
Stefano Sabatini
2b1a4c5b34
amovie: avoid crash in amovie_request_frame() if no samplesref is available
...
The crash occurrs when a frame is successfully decoded, but no decoded
data is immediately available (typically happens with ogg/vorbis).
2011-11-15 00:10:15 +01:00
Sebastien Zwickert
81852ef5d6
vda: get correctly the frame from h264 context.
2011-11-14 22:24:03 +01:00
Sebastien Zwickert
4590e161e6
vda: check allocation result.
2011-11-14 22:24:03 +01:00
Sebastien Zwickert
c7fa3eeab9
vda: removes useless casts.
2011-11-14 22:24:03 +01:00
Sebastien Zwickert
6e1e49385e
vda: cosmetic.
2011-11-14 22:24:03 +01:00
Sebastien Zwickert
a40867f27b
configure: add vda dependencies.
2011-11-14 22:24:03 +01:00
Sebastien Zwickert
b46134f659
vda: reordering headers inclusion.
2011-11-14 22:24:03 +01:00
Sebastien Zwickert
9837442a39
vda: undef Picture.
2011-11-14 22:24:02 +01:00
Clément Bœsch
c8136ebd6a
swr: set the default used_ch_count value to zero.
...
This allows an appropriate behaviour when it is not specified (fallback
to the number of input channels).
Fixes Ticket523
2011-11-14 22:11:28 +01:00
Michael Niedermayer
40176fc314
mp3enc: Try to use a matching bitrate in the xing header.
...
Might Fix Ticket431
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-14 20:59:28 +01:00
Michael Niedermayer
1fea432b7a
mp3enc: simplify mp3_write_xing()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-14 20:52:42 +01:00
Michael Niedermayer
ecf5e70548
vble: use dsp.add_hfyu_median_prediction() this allows asm optimizations to be used.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-14 18:29:37 +01:00
Michael Niedermayer
75c0ddc9c2
vble: move 2nd pass bitreading into vble_restore_plane()
...
this improves data cache hits and speeds up grayscale only decoding
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-14 18:29:29 +01:00
Michael Niedermayer
6718536ba5
diracdec: fix empty data units.
...
Fixed Ticket636
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-14 18:14:20 +01:00
Mans Rullgard
3f5d6a665a
binkvideo: simplify and remove invalid shifts
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-11-14 15:35:29 +00:00
Luca Barbato
2625b621ce
pulse: compute frame_duration once and fix it
...
The frame duration was calculated without taking in account the
bytes per sample.
Thanks to Lorenzo Pistone <blaffablaffa@gmail.com > for pointing
the issue and providing an initial fix.
2011-11-14 16:16:41 +01:00
Luca Barbato
caf27e37b6
lavf: simplify format_child_class_next()
...
And fix the error introduced when adding private option to avio.
See 32caa7b13c
2011-11-14 16:16:32 +01:00
Sebastien Zwickert
ac3dbb4d58
hwaccel: OS X Video Decoder Acceleration (VDA) support.
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-11-14 16:07:32 +01:00
Clément Bœsch
07c7ffc04b
Rename remaining get_le32 to avio_rl32.
2011-11-14 07:22:31 +01:00
Clément Bœsch
c142e2a00f
Rename remaining get_le16 to avio_rl16.
2011-11-14 07:22:31 +01:00
Clément Bœsch
49651063da
Use AVIOContext.seekable instead of deprecated url_is_streamed.
2011-11-14 07:22:31 +01:00
Clément Bœsch
7b79305a47
Rename remaining url_fskip to avio_skip.
2011-11-14 07:22:31 +01:00
Clément Bœsch
b04ee90043
Rename remaining av_metadata_set2 to av_dict_set.
2011-11-14 07:22:31 +01:00
Clément Bœsch
63b796b0dd
Rename remaining url_ftell to avio_tell.
2011-11-14 07:22:31 +01:00
Clément Bœsch
055cda8acc
Rename remaining get_byte to avio_r8.
2011-11-14 07:22:31 +01:00
Clément Bœsch
f3c47e4100
Rename remaining url_fsize to avio_size.
2011-11-14 07:22:31 +01:00
Clément Bœsch
53d70a334a
Rename remaining get_buffer to avio_read.
2011-11-14 07:22:30 +01:00
Clément Bœsch
39edfcc9e8
Rename remaining url_fseek to avio_seek.
2011-11-14 07:22:30 +01:00
Clément Bœsch
eef3ea8c71
Rename remaining ByteIOContext to AVIOContext.
2011-11-14 07:22:30 +01:00
Michael Niedermayer
73af8ea356
mandelbrot: add math.h for log2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-14 05:56:03 +01:00
Michael Niedermayer
70eb58cd92
mandelbrot: avoid INFINITY as openbsd seems not to like it.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-14 05:47:56 +01:00
Michael Niedermayer
b1b0fd2790
pad: fix format string length
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-14 05:42:10 +01:00
Janne Grunau
d8a091698a
doc: add support for an optional navigation bar in texi2html pages
...
The navigation header for the web pages lives in a different repository.
Read it during documentation regeneration to use the same navigation bar
on all pages.
2011-11-14 01:12:15 +01:00
Michael Niedermayer
5f268ca5c5
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavf: pass options from AVFormatContext to avio.
avformat: Use avio_open2, pass the AVFormatContext interrupt_callback onwards
avio: add avio_open2, taking an interrupt callback and options
avio: add support for passing options to protocols.
avio: add and use ffurl_protocol_next().
avformat: Pass the interrupt callback on to chained muxers/demuxers
avio: Add an AVIOInterruptCB parameter to ffurl_open/ffurl_alloc
avformat: Use ff_check_interrupt
avio: Add an internal utility function for checking the new interrupt callback
avio: Add AVIOInterruptCB
texi2html: remove stray \n
doc: prettyfy the texi2html documentation
swscale: handle unaligned buffers in yuv2plane1
Conflicts:
libavformat/avformat.h
libavformat/avio.c
libavformat/mov.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-14 00:33:39 +01:00
Clément Bœsch
4fa6e9d0b4
doc: replace an "avconv" reference with "ffmpeg" in indevs.
2011-11-13 23:35:57 +01:00
Clément Bœsch
9466237b8b
doc: drop "./" binary prefixes.
2011-11-13 23:35:45 +01:00
Stefano Sabatini
3a9f2f1d65
vsrc_mandelbrot: set options through the opt framework
2011-11-13 21:31:23 +01:00
Giorgio Vazzana
c15400afc5
mandelbrot: remove always-false condition in fill_from_cache
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-13 19:41:21 +01:00
Michael Niedermayer
102db4f6e7
MAINTAINER: add libavfilter section and add myself to yadif & mandelbrot
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-13 19:33:34 +01:00
Michael Niedermayer
08dadd331f
mandelbrot: allow visualizing the period of converged points.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-13 19:28:24 +01:00
Michael Niedermayer
e8499ab171
mandelbrot: Add inner variable & enum for inner coloring schemes.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-13 19:26:22 +01:00
Michael Niedermayer
3cbe9afba5
mandelbrot: only check bailout once every 2 iterations.
...
Once we bailed out we calculate the exact iteration in which it would have happened if needed.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-13 18:14:40 +01:00
Michael Niedermayer
41fd1b2d5a
mandelbrot: add SQR() macro
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-13 18:14:10 +01:00
Giorgio Vazzana
e555119c73
mandelbrot: correct and simplify the formula used in NORMALIZED_ITERATION_COUNT
...
Use log(sqrt(mb->bailout)) instead of log(mb->bailout) because mb->bailout represent
the bailout radius squared, and then simplify the two sqrt().
This is also slightly faster.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-13 17:33:09 +01:00
KO Myung-Hun
ad0bdd2fd2
lavc: add supports of OS/2 threads
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-13 17:33:09 +01:00
Michael Niedermayer
88166fc579
mandelbrot: unroll the innermost loop once.
...
This allows us to remove a if() and a variable assignment.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-13 17:01:56 +01:00
Michael Niedermayer
1d06608732
mandelbrot: only check periodicity once for each period instead of twice.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-13 17:01:56 +01:00
Michael Niedermayer
2fee131b9e
mandelbrot: use period detection depening on left pixel and not the
...
previous calculated pixel, this is more accurate due to the last
calculated often being farther away.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-13 17:01:56 +01:00
Carl Eugen Hoyos
9117592549
Cosmetics: Increase readability.
2011-11-13 15:43:09 +01:00
Carl Eugen Hoyos
eb664d4ae3
Increase Westwood Studios VQA palette dynamics.
2011-11-13 15:12:43 +01:00
Carl Eugen Hoyos
1fc573dd25
Increase Sierra VMD palette dynamics.
2011-11-13 15:04:29 +01:00
Carl Eugen Hoyos
a95906af57
Increase Pictor/PC Paint palette dynamics.
2011-11-13 14:52:21 +01:00
Carl Eugen Hoyos
105cf82acb
Increase FLI/FLC Animation palette dynamics for some samples.
2011-11-13 14:50:01 +01:00
Carl Eugen Hoyos
2b656844f8
Increase eXtended BINary text palette dynamics.
2011-11-13 14:42:22 +01:00
Carl Eugen Hoyos
942e9be5d7
Increase Bethesda VID palette dynamics.
2011-11-13 14:40:32 +01:00
Anton Khirnov
32caa7b13c
lavf: pass options from AVFormatContext to avio.
2011-11-13 13:21:46 +01:00
Martin Storsjö
9d77a8faf9
avformat: Use avio_open2, pass the AVFormatContext interrupt_callback onwards
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-13 13:20:49 +01:00
Martin Storsjö
1dee0aca74
avio: add avio_open2, taking an interrupt callback and options
...
The interrupt callback has to be passed in during opening (setting it
after opening isn't enough), since a blocking open couldn't be
interrupted otherwise.
Options are passed down to procotols and also need to be available
during open() in most cases.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-13 13:17:04 +01:00
Anton Khirnov
ddffc2fdc3
avio: add support for passing options to protocols.
...
Not used anywhere yet, support for passing options from avio_open() will
follow.
2011-11-13 13:14:39 +01:00
Anton Khirnov
163a31136d
avio: add and use ffurl_protocol_next().
2011-11-13 13:14:14 +01:00
Martin Storsjö
6ef350c16b
avformat: Pass the interrupt callback on to chained muxers/demuxers
...
There are a few more cases of chained demuxers, but they
only use custom IO which don't do any blocking IO and thus
don't need the callback.
2011-11-13 13:13:57 +01:00
Martin Storsjö
6f1b7b3944
avio: Add an AVIOInterruptCB parameter to ffurl_open/ffurl_alloc
...
Change all uses of these function to pass the relevant
callback on.
2011-11-13 13:12:17 +01:00
Martin Storsjö
9957cdbfd5
avformat: Use ff_check_interrupt
2011-11-13 13:08:13 +01:00
Martin Storsjö
c4a090ddb5
avio: Add an internal utility function for checking the new interrupt callback
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-13 13:07:48 +01:00
Martin Storsjö
6aa0b98fb2
avio: Add AVIOInterruptCB
...
This is a better io interrupt callback function, which has an
opaque parameter, which is given to the interrupt callback.
This allows callers to precisely cancel IO for one single
AVFormatContext, without interrupt other ones in the same
process.
Note, it's not needed in AVIOContext, at the moment.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-13 12:59:56 +01:00
Luca Barbato
58b68d6b36
texi2html: remove stray \n
...
Single-quoted strings are printed verbatim in perl.
2011-11-13 12:42:39 +01:00
Luca Barbato
84fb63ed23
doc: prettyfy the texi2html documentation
...
make it use the website css and start structuring it so it is consistent
2011-11-13 12:00:44 +01:00
Ronald S. Bultje
8283f90a52
swscale: handle unaligned buffers in yuv2plane1
...
The issue had been introduced in
c435653627
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-11-13 08:27:20 +01:00
Michael Niedermayer
46eae15567
mkvtimestamp v2 muxer: rename so as to avoid confusion with SMPTE timecodes.
...
Requested-by: Baptiste Coudurier
Approved-by: David Conrad
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-13 05:19:28 +01:00
Michael Niedermayer
17c95361e9
mkvtimestamp v2 muxer: remove unneeded prefixes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-13 05:16:54 +01:00
Carl Eugen Hoyos
7ea77a6197
Set some Pictor/PC Paint palettes opaque.
2011-11-13 03:08:25 +01:00
Carl Eugen Hoyos
0d49dd3725
Set more KMVC palettes opaque.
2011-11-13 03:01:30 +01:00
Carl Eugen Hoyos
789da2e9f1
Set second Delphine Software International CIN palette opaque.
2011-11-13 02:47:47 +01:00
Carl Eugen Hoyos
b3c67372a5
Force opaque alpha channel for 32bit x11grab image.
...
Fixes ticket #163 .
Approved-by: Clemens Fruhwirth
Approved-by: Edouard Gomez
2011-11-13 02:02:06 +01:00
Giorgio Vazzana
be97e7b9c2
mandelbrot: remove unused variables
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-13 01:27:30 +01:00
Giorgio Vazzana
459bba58d2
mandelbrot: add missing options to the parsing code
...
The following options were added: end_scale, end_pts, bailout, outer.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-13 01:27:30 +01:00
Michael Niedermayer
545ec935a4
h264: Use mismatching frame numbers in fields to synchronize the
...
first/second field state independant of them being reference or not.
Fixes Ticket354
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-13 01:27:18 +01:00
Dominique Leuenberger
05423d3afd
RELEASE: bump to 0.8.6.git after the release
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 21:00:13 +01:00
Dominique Leuenberger
8a25d0a860
Trivial: j2kenc: fix compiler warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 21:00:12 +01:00
Giorgio Vazzana
6024bdb21a
mandelbrot: fix sscanf format string
...
Replace ',' with ':'
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 21:00:12 +01:00
Carl Eugen Hoyos
3230c756f8
Increase Bitmap Brothers JV palette dynamics.
...
Approved-by: Peter Ross
2011-11-12 20:56:07 +01:00
Carl Eugen Hoyos
9780c33eca
Increase Psygnosis YOP palette dynamics.
2011-11-12 20:49:53 +01:00
Carl Eugen Hoyos
ac0042f55f
Set Psygnosis YOP palette opaque.
2011-11-12 20:48:39 +01:00
Carl Eugen Hoyos
0e8da94c2f
Increase AVS palette dynamics.
2011-11-12 20:47:33 +01:00
Carl Eugen Hoyos
7b40f46fe2
Set AVS palette opaque.
2011-11-12 20:46:58 +01:00
Carl Eugen Hoyos
1d38c746fd
Set Westwood Studios VQA palette opaque.
2011-11-12 20:23:34 +01:00
Carl Eugen Hoyos
90f75f9804
Set Sierra VMD palette opaque.
2011-11-12 20:22:01 +01:00
Carl Eugen Hoyos
e9a2ffa117
Set Beam Software VB palette opaque.
2011-11-12 20:21:07 +01:00
Carl Eugen Hoyos
3b5733bcf9
Set TIFF default grascale palette opaque.
2011-11-12 20:19:51 +01:00
Carl Eugen Hoyos
fd09cd08c0
Set Tiertex Limited SEQ palette opaque.
2011-11-12 20:19:07 +01:00
Carl Eugen Hoyos
58c3538839
Set Sun Rasterfile palette opaque.
2011-11-12 20:17:56 +01:00
Carl Eugen Hoyos
7cd906c179
Set Smacker palette opaque.
2011-11-12 20:16:43 +01:00
Carl Eugen Hoyos
c99cd3e2e2
Set RL2 palette opaque.
2011-11-12 20:15:56 +01:00
Carl Eugen Hoyos
9f9a1f424e
Set QuickDraw palette opaque.
2011-11-12 20:15:21 +01:00
Carl Eugen Hoyos
3bf54ab565
Set American Laser Games MM palette opaque.
2011-11-12 20:13:58 +01:00
Carl Eugen Hoyos
64176bc1a3
Set KMVC palette opaque.
2011-11-12 20:13:14 +01:00
Carl Eugen Hoyos
4e8078e6a8
Set FLI/FLC Animation palette opaque.
2011-11-12 20:09:56 +01:00
Carl Eugen Hoyos
c0be4ea0f2
Set Electronic Arts TGV palette opaque.
2011-11-12 20:08:56 +01:00
Carl Eugen Hoyos
f628134e77
Set Electronic Arts CMV palette opaque.
2011-11-12 20:08:23 +01:00
Carl Eugen Hoyos
1567243e8f
Set ScummVM DXA palette opaque.
2011-11-12 20:07:31 +01:00
Carl Eugen Hoyos
dcbd18c615
Set Delphine Software International CIN palette opaque.
2011-11-12 20:06:35 +01:00
Carl Eugen Hoyos
e18f70c2d1
Set Chronomaster DFA palette opaque.
2011-11-12 20:05:35 +01:00
Carl Eugen Hoyos
320f0f04a1
Fix Chronomaster DFA palette.
...
The palette had a blue cast.
2011-11-12 20:03:44 +01:00
Carl Eugen Hoyos
973f3d3e0e
Set CD Graphics palette opaque.
2011-11-12 20:01:50 +01:00
Carl Eugen Hoyos
5be097c703
Set Interplay C93 palette opaque.
2011-11-12 20:01:05 +01:00
Carl Eugen Hoyos
d6e14e24b0
Set Discworld II BMV palette opaque.
2011-11-12 19:37:24 +01:00
Carl Eugen Hoyos
3fd9f08971
Set BFI palette opaque.
2011-11-12 19:36:23 +01:00
Carl Eugen Hoyos
f98722443f
Set Bethesda VID palette opaque.
2011-11-12 19:34:07 +01:00
Carl Eugen Hoyos
0c5fd6372e
Do not try to read 16bit gray png files with alpha channel.
...
FFmpeg does not support gray16a.
Fixes the crash in ticket #644 .
2011-11-12 19:30:27 +01:00
Michael Niedermayer
32dd67162a
mandelbrot: Print a note if the cache is too small
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 17:05:11 +01:00
Michael Niedermayer
905202ef6e
mandelbrot: increase cache size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 17:04:50 +01:00
Michael Niedermayer
fd8d03457a
mandelbrot: increase resolution, and decrease zoom speed to maintain the cpu requirement.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 17:04:08 +01:00
Michael Niedermayer
40d6e30c55
mandelbrot: increase default maxiter
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 16:46:41 +01:00
Michael Niedermayer
6c5dd858b4
mandelbrot: Only use cycle detection if previous pixel was an interior pixel
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 16:46:21 +01:00
Michael Niedermayer
50b8f9388a
mandelbrot: detect cycles to speed up interior rendering.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 16:46:16 +01:00
Michael Niedermayer
3de934c873
mandelbrot: increase default maxiter to 1024
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 16:44:53 +01:00
Michael Niedermayer
07f272bdbb
mandelbrot: use cache to avoid recalculating points.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 16:44:53 +01:00
Michael Niedermayer
8ca891fc1a
mandelbrot: more interresting zoom coordinates borrowed from wikipedia.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 16:44:53 +01:00
Peter Ross
070d2d7589
jvdec: set alpha component
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 04:26:37 +01:00
Peter Ross
341d4903a6
set ff_cga_palette and ff_ega_palette alpha component
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 04:26:37 +01:00
Michael Niedermayer
ef97d59fb3
vble: remove flags copy, its not used in any speed relevant code.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 03:12:13 +01:00
Michael Niedermayer
2fea60c600
vble: remove len array, its unneeded
...
also remove unneeded memset()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 03:11:22 +01:00
Michael Niedermayer
177bcc1ad9
vble: remove unused variable len.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 03:08:49 +01:00
Michael Niedermayer
dde0af2df1
vble: move get_bits_left() check out of inner loop, we can perform the check completely before the loop.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 03:08:38 +01:00
Michael Niedermayer
e3618cd4a8
vble: remove vble_read_reverse_unary(), the code is a bit simpler this way
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 03:06:57 +01:00
Michael Niedermayer
35fd7b2968
vble: use LUT for vble_read_reverse_unary()
...
slightly faster
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 03:02:49 +01:00
Michael Niedermayer
c5e55e214c
vble: change variable to int, its slightly faster and int is preferable if no specific size is needed.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 03:01:05 +01:00
Michael Niedermayer
29582df797
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
vble: remove vble_error_close
VBLE Decoder
tta: use an integer instead of a pointer to iterate output samples
shorten: do not modify samples pointer when interleaving
mpc7: only support stereo input.
dpcm: do not try to decode empty packets
dpcm: remove unneeded buf_size==0 check.
twinvq: add SSE/AVX optimized sum/difference stereo interleaving
vqf/twinvq: pass vqf COMM chunk info in extradata
vqf: do not set bits_per_coded_sample for TwinVQ.
twinvq: check for allocation failure in init_mdct_win()
swscale: add padding to conversion buffer.
rtpdec: Simplify finalize_packet
http: Handle proxy authentication
http: Print an error message for Authorization Required, too
AVOptions: don't return an invalid option when option list is empty
AIFF: add 'twos' FourCC for the mux/demuxer (big endian PCM audio)
Conflicts:
libavcodec/avcodec.h
libavcodec/tta.c
libavcodec/vble.c
libavcodec/version.h
libavutil/opt.c
libswscale/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 02:50:25 +01:00
Janne Grunau
6761b6b825
vble: remove vble_error_close
...
It does not make much sense to factor the error handling to its own
av_always_inline function. Fixes "format not a string literal and no
format arguments" warning in the av_log.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 01:21:01 +01:00
Derek Buitenhuis
0c251257b5
VBLE Decoder
...
Add a decoder for the VBLE Lossless Codec, which
still has a cult following. Used to be popular
several years ago on doom9.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 01:21:01 +01:00
Carl Eugen Hoyos
5f36065ca6
Use AC-3 as default codec for wtv.
2011-11-12 00:15:03 +01:00
Michael Niedermayer
ddeb194b14
mandelbrot: add a end_scale and pts so we can zoom in.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 00:04:16 +01:00
Michael Niedermayer
dece017280
mandelbrot: center coordinate reference on the images center
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 00:04:15 +01:00
Michael Niedermayer
aa198ad679
mandelbrot: make 2 variables const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 00:04:15 +01:00
Michael Niedermayer
0e5b05134b
mandelbrot: fix typo that led to hardcoded max iteration count.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-12 00:04:15 +01:00
ami_stuff
ef4f403159
Never use MP3 as default audio codec for asf.
...
Some Windows versions do not ship an appropriate MP3 decoder.
2011-11-11 23:49:30 +01:00
Michael Niedermayer
4ccd898af2
mandelbrot: support different outer coloring methods.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 23:22:04 +01:00
Michael Niedermayer
75e309160b
mandelbrot: make bailout a variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 23:21:42 +01:00
Michael Niedermayer
847e61de4a
avfilter: bump minor for mandelbrot
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 23:20:25 +01:00
Michael Niedermayer
658d166da0
avfilter: add mandelbrot fraktal source
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 22:47:06 +01:00
Janne Grunau
29ae0565d9
vble: remove vble_error_close
...
It does not make much sense to factor the error handling to its own
av_always_inline function. Fixes "format not a string literal and no
format arguments" warning in the av_log.
2011-11-11 22:05:51 +01:00
Derek Buitenhuis
c433a3f9a5
VBLE Decoder
...
Add a decoder for the VBLE Lossless Codec, which
still has a cult following. Used to be popular
several years ago on doom9.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-11 22:46:47 +02:00
Justin Ruggles
b656c4d08e
tta: use an integer instead of a pointer to iterate output samples
2011-11-11 14:18:22 -05:00
Justin Ruggles
5c210e2cb9
shorten: do not modify samples pointer when interleaving
2011-11-11 14:18:22 -05:00
Justin Ruggles
befc473c00
mpc7: only support stereo input.
...
The Musepack SV7 reference encoder converts mono to stereo when encoding.
2011-11-11 14:17:40 -05:00
Justin Ruggles
8dbc6d03c0
dpcm: do not try to decode empty packets
2011-11-11 14:17:39 -05:00
Justin Ruggles
e79da63282
dpcm: remove unneeded buf_size==0 check.
...
It is already checked in avcodec_decode_audio3()
2011-11-11 14:17:39 -05:00
Justin Ruggles
9d06037d48
twinvq: add SSE/AVX optimized sum/difference stereo interleaving
2011-11-11 14:13:58 -05:00
Justin Ruggles
7b966566da
vqf/twinvq: pass vqf COMM chunk info in extradata
...
This is needed because the twinvq decoder cannot rely on bit_rate to be set.
The API documentation says that bit_rate is set by libavcodec, not by the
user.
2011-11-11 14:06:14 -05:00
Justin Ruggles
ca482ce420
vqf: do not set bits_per_coded_sample for TwinVQ.
...
It is a lossy codec with varying quantization, so bits_per_coded_sample is
not applicable.
2011-11-11 14:06:14 -05:00
Justin Ruggles
a8a6da4a0e
twinvq: check for allocation failure in init_mdct_win()
2011-11-11 14:06:14 -05:00
ami_stuff
e2adce3b8e
asfenc: Use wmav2 audio codec by default.
2011-11-11 18:40:19 +01:00
Carl Eugen Hoyos
0b7aec5fa4
Make PAL8 pcx images opaque.
2011-11-11 18:40:19 +01:00
Carl Eugen Hoyos
e22eff964f
Set palette for 1bit pcx.
...
The stored palette contains zeroes only.
Fixes ticket #637 .
2011-11-11 18:40:19 +01:00
Michael Niedermayer
393b234fa1
yadif, its 2011
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 17:06:47 +01:00
Michael Niedermayer
825481e87b
yadif: reject reuse2 buffers as we cant use frames that change under our
...
fingers.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 17:06:07 +01:00
Sean McGovern
124e56454d
swscale: add padding to conversion buffer.
...
Altivec does unaligned reads from this buffer in
hscale_altivec_real(), and can thus read up to 16 bytes beyond
the end of the buffer. Therefore, add an extra 16 bytes of
padding at the end of the conversion buffer.
This fixes fate-lavfi-pixfmts_scale on AltiVec-enabled builds
under valgrind.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-11-11 07:44:35 -08:00
Sebastien Zwickert
89d7f92661
vda: use fast reallocation.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 16:23:23 +01:00
Michael Niedermayer
7437db84a9
sws: Fix compilation with disabled MMX2
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 15:54:08 +01:00
John Brooks
b8a1b880ee
rtpdec: Simplify finalize_packet
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-11 14:26:37 +02:00
Martin Storsjö
b911518d1c
http: Handle proxy authentication
...
Tested with both Basic and Digest authentication, and tested with
both proxy authentication and authentication for the requested
resource at the same time.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-11 14:07:57 +02:00
Martin Storsjö
b01f5ba207
http: Print an error message for Authorization Required, too
...
The error was hidden before, to avoid showing an error on the
first request where no auth has been provided, when the server
indicates which authentication method to use.
Now the error is printed if an authentication method was used,
but failed.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-11 14:07:48 +02:00
Anton Khirnov
e1e22851c1
AVOptions: don't return an invalid option when option list is empty
2011-11-11 08:27:16 +01:00
Mike Melanson
45fcb86cf8
AIFF: add 'twos' FourCC for the mux/demuxer (big endian PCM audio)
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-11 08:27:16 +01:00
Michael Niedermayer
985e768024
ffprobe: use av_noreturn
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 04:26:07 +01:00
Michael Niedermayer
db29da9ac8
ffserver: use av_noreturn
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 04:25:53 +01:00
Michael Niedermayer
109d23e0b4
ffplay: use av_noreturn
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 04:25:35 +01:00
Michael Niedermayer
8a2e768318
ffmpeg: use av_noreturn
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 04:24:25 +01:00
Michael Niedermayer
6d4731e1f7
avutil: add av_noreturn
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 04:24:00 +01:00
Michael Niedermayer
ec3c9a3020
ffmpeg: check debug scanf() return value.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 04:05:25 +01:00
Michael Niedermayer
7d3982bf42
ffmpeg: get rid of deprecated warnings due to AVOption useage.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 03:57:46 +01:00
Mashiat Sarker Shakkhar
9ef5d707e6
Implement use_high_update_speed() and use_normal_update_speed()
...
(cherry picked from commit 9ebc93fa4623791eca9efeee4de65b23dc015de1)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 03:30:50 +01:00
Mashiat Sarker Shakkhar
144d815912
Initialize num_logged_tiles and remove unnecessary codes
...
(cherry picked from commit 69bca779e5d8409cde336406a26b5173002cac97)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 03:30:46 +01:00
Mashiat Sarker Shakkhar
9634b1c6f2
Log index for each line of output
...
(cherry picked from commit 9e2ccb2de8d4dc5179cd86610b129500e6223be7)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 03:30:41 +01:00
Mashiat Sarker Shakkhar
2f8b8f6953
Log tile size
...
(cherry picked from commit 257e5c4829cd916938c9e1922e50668636346f71)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 03:30:30 +01:00
Mashiat Sarker Shakkhar
6e4a86a3f8
Output decoded residues
2011-11-11 03:30:18 +01:00
Mashiat Sarker Shakkhar
8f8dcf4486
Replace placeholders with actual calls to clear_codec_buffers() and reset_codec()
2011-11-11 03:28:39 +01:00
Mashiat Sarker Shakkhar
80fa79a306
Implement lms_update()
...
(cherry picked from commit 17219c79360bc2bdaf3e7f47178af42fade140a8)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 03:26:48 +01:00
Mashiat Sarker Shakkhar
afd930dca2
Implement lms_predict()
...
(cherry picked from commit 83e31db195b9d0a07b0526eab5780817d8ce9444)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 03:26:42 +01:00
Mashiat Sarker Shakkhar
f12f189638
Implement reset_codec()
...
(cherry picked from commit c56313aa7969691f1a779e5ac5666f012676836f)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 03:26:35 +01:00
Mashiat Sarker Shakkhar
06b67051d5
Add missing syntax elements to WmallDecodeCtx
...
(cherry picked from commit 2d6ca09c0f6ea318e439b9b073f507c802623ced)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 03:26:26 +01:00
Mashiat Sarker Shakkhar
8a41fdf127
Add .recent syntax element to cdlms struct
...
(cherry picked from commit a7820f3c5a0f4d2a5f005f9ca3766d29b2111380)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 03:26:19 +01:00
Mashiat Sarker Shakkhar
a868b6fea9
Analysis and spec comparison
...
(cherry picked from commit 6b05ea8b690ecab0e98924f0887f24311843d080)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 03:26:12 +01:00
Mashiat Sarker Shakkhar
9152866455
Implement clear_codec_buffers()
...
(cherry picked from commit d34e3cf342219e9825125d4f9327cf1feab15c79)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 03:26:05 +01:00
Mashiat Sarker Shakkhar
fd9ea0402c
Add buffers to context necessary for reverting cdmls and mclms filter
2011-11-11 03:25:30 +01:00
Mashiat Sarker Shakkhar
1f273373ec
Analysis and spec comparison
2011-11-11 03:22:05 +01:00
Mashiat Sarker Shakkhar
7344b75c63
Cosmetics
...
(cherry picked from commit 3197968bedf9f0d6d3cccf11cfbd19c23063493b)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 03:18:46 +01:00
Michael Niedermayer
6d91045d83
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (29 commits)
doc: update libavfilter documentation
tls: Use the URLContext as logging context
aes: Avoid illegal read and don't generate more key than we use.
mpc7: Fix memset call in mpc7_decode_frame function
atrac1: use correct context for av_log()
apedec: consume the whole packet when copying to the decoder buffer.
apedec: do not needlessly copy s->samples to nblocks.
apedec: check output buffer size after calculating actual output size
apedec: remove unneeded entropy decoder normalization.
truespeech: use memmove() in truespeech_update_filters()
vorbisdec: remove AVCODEC_MAX_AUDIO_FRAME_SIZE check
vorbisdec: remove unneeded buf_size==0 check
vorbisdec: return proper error codes instead of made-up ones
http: Don't add a Range: bytes=0- header for POST
sunrast: Check for invalid/corrupted bitstream
http: Change the chunksize AVOption into chunked_post
http: Add encoding/decoding flags to the AVOptions
avconv: remove some codec-specific hacks
crypto: add decoding flag to options.
tls: use AVIO_FLAG_NONBLOCK instead of deprecated URL_FLAG_NONBLOCK
...
Conflicts:
doc/libavfilter.texi
libavcodec/atrac1.c
libavcodec/sunrast.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 02:50:35 +01:00
Luca Barbato
299809defb
doc: update libavfilter documentation
...
Update the reference to the conversion tool to use avconv and
make sure the example line works as supposed.
Remove the paragraph pointing to the svn repo
2011-11-10 15:55:29 -08:00
K.Y.H
554caed2d3
cook: fix apparent typo in extradata parsing
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-11 00:30:39 +01:00
Nir Ben David
083d9ba448
golomb: Fix overread in get_ur_golomb_jpegls()
...
Fixes Ticket600
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-10 23:09:44 +01:00
Lou Logan
a14708d4ac
doc: update examples to use -b:v or -b:a
...
Fixes Ticket613
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-10 23:09:17 +01:00
Carl Eugen Hoyos
0e609d7418
Fix some 1bit bmp samples, they are palletised.
...
Fixes ticket #632 .
2011-11-10 23:07:27 +01:00
Martin Storsjö
371d15ec36
tls: Use the URLContext as logging context
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-10 23:23:10 +02:00
Alex Converse
c9e5ac3380
aes: Avoid illegal read and don't generate more key than we use.
2011-11-10 10:15:59 -08:00
Alex Converse
88b2436911
mpc7: Fix memset call in mpc7_decode_frame function
2011-11-10 09:30:49 -08:00
Justin Ruggles
164fca39bd
atrac1: use correct context for av_log()
2011-11-10 10:25:47 -05:00
Justin Ruggles
c298b2b8db
apedec: consume the whole packet when copying to the decoder buffer.
...
This avoids artifically consuming a partial packet but ignoring remaining data
in subsequent calls.
2011-11-10 10:25:47 -05:00
Justin Ruggles
de157f2118
apedec: do not needlessly copy s->samples to nblocks.
...
also move nblocks to the local scope where it is used.
2011-11-10 10:25:47 -05:00
Justin Ruggles
4315c7d35a
apedec: check output buffer size after calculating actual output size
2011-11-10 10:25:47 -05:00
Justin Ruggles
ad17207b51
apedec: remove unneeded entropy decoder normalization.
...
The decoder already skips data at the end of the packet without this.
Also remove 2 APEContext fields that were only used for the end-of-frame
normalization.
2011-11-10 10:25:47 -05:00
Justin Ruggles
59f4d1b8bb
truespeech: use memmove() in truespeech_update_filters()
2011-11-10 10:25:46 -05:00
Justin Ruggles
41899b9acb
vorbisdec: remove AVCODEC_MAX_AUDIO_FRAME_SIZE check
...
The user could provide a larger buffer, which is already checked separately
before writing output.
2011-11-10 10:25:46 -05:00
Justin Ruggles
e551a6f49a
vorbisdec: remove unneeded buf_size==0 check
2011-11-10 10:25:46 -05:00
Justin Ruggles
f666276fa6
vorbisdec: return proper error codes instead of made-up ones
2011-11-10 10:25:46 -05:00
Michael Niedermayer
eb4fc6acfe
ffmpeg: update timestamping code to handle frame threads
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-10 15:27:54 +01:00
Michael Niedermayer
80f716cd45
mpeg4videodec: fix lml4 and frame threading without -vsync 0
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-10 13:51:38 +01:00
Martin Storsjö
f2d0015531
http: Don't add a Range: bytes=0- header for POST
...
That header simply doesn't make sense in that context.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-10 14:13:40 +02:00
Laurent Aimar
2305742b2a
sunrast: Check for invalid/corrupted bitstream
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-11-10 12:32:26 +01:00
Martin Storsjö
6149485f6c
http: Change the chunksize AVOption into chunked_post
...
The chunksize internal variable has two different uses - for
reading, it's the amount of data left of the current chunk
(or -1 if the server doesn't send data in chunked mode), where
it's only an internal state variable. For writing, it's used
to decide whether to enable chunked encoding (by default), by
using the value 0, or disable chunked encoding (value -1).
This, while consistent, doesn't make much sense to expose
as an AVOption. This splits the usage of the internal variable
into two variables, chunksize which is used for reading (as
before), and chunked_post which is the user-settable option,
with the values 0 and 1, where 1 is default.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-10 13:21:26 +02:00
Anton Khirnov
a251928060
http: Add encoding/decoding flags to the AVOptions
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-10 13:21:18 +02:00
Anton Khirnov
492cc1bef3
avconv: remove some codec-specific hacks
...
The problem they are supposed to fix is handled in riff.c, so those
hacks are pointless.
2011-11-10 11:55:58 +01:00
Anton Khirnov
dc86ca1ab5
crypto: add decoding flag to options.
2011-11-10 11:37:38 +01:00
Anton Khirnov
34ff0e2915
tls: use AVIO_FLAG_NONBLOCK instead of deprecated URL_FLAG_NONBLOCK
2011-11-10 11:36:49 +01:00
Anton Khirnov
3b384502f2
http: use different classes for http and https.
2011-11-10 11:36:45 +01:00
Martin Storsjö
8ef79f42ca
http: Change an error log message to a warning
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-10 10:51:57 +02:00
Martin Storsjö
7590061eb7
http: Remove the now unused ff_http_set_headers custom function
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-10 10:51:50 +02:00
Martin Storsjö
27fad11b5b
mms: Set http custom headers via the AVOption
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-10 10:51:43 +02:00
Martin Storsjö
196bf28c5d
rtsp: Set http custom headers via the AVOption
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-10 10:51:35 +02:00
Martin Storsjö
10da1e913b
http: Make custom headers settable via an AVOption
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-10 10:51:26 +02:00
Martin Storsjö
eaa8c1f9fe
crypto: Don't manually free memory allocated via AVOptions
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-10 10:51:13 +02:00
Martin Storsjö
d10361b658
avio: Free URLContext private data allocated via AVOptions
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-10 10:51:06 +02:00
John Brooks
6c643e0705
avc: fix memory errors when encoding invalid h264 codecdata
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-11-09 21:37:13 -08:00
Michael Niedermayer
525a8f3ba5
lavc: update AVCodecContext.delay documentation
...
Based on reimars suggestion
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-10 05:19:58 +01:00
Michael Niedermayer
3cc1af9dd9
pthreads: export the delay that was previously exported by mangling has_b_frames through
...
AVCodecContext.delay which was previously unused for decoders and fits better.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-10 05:19:58 +01:00
Michael Niedermayer
afc0a24d7d
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avcodec: add support for planar signed 8-bit PCM.
ra144enc: add sample_fmts list to ff_ra_144_encoder
smackaud: use uint8_t* for 8-bit output buffer type
smackaud: clip output samples
smackaud: use sign_extend() for difference value instead of casting
sipr: use a function pointer to select the decode_frame function
sipr: set mode based on block_align instead of bit_rate
sipr: do not needlessly set *data_size to 0 when returning an error
ra288: fix formatting of LOCAL_ALIGNED_16
udp: Allow specifying the local IP address
VC1: Add bottom field offset to block_index[] to avoid rewriting (+10L)
vc1dec: move an if() block.
vc1dec: use correct hybrid prediction threshold.
vc1dec: Partial rewrite of vc1_pred_mv()
vc1dec: take ME precision into account while scaling MV predictors.
lavf: don't leak corrupted packets
Conflicts:
libavcodec/8svx.c
libavcodec/ra288.c
libavcodec/version.h
libavformat/iff.c
libavformat/udp.c
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-10 03:45:23 +01:00
Stefano Sabatini
dec354ba1d
vf_fade: reindent after previous commit
2011-11-10 01:31:28 +01:00
Mark Himsley
8c1fb50d07
vf_fade: add alpha option and alpha fading support
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-11-10 01:31:13 +01:00
Mark Himsley
0d602615ab
vf_fade: add support to options parsing
...
Extend fade syntax, required by a pending patch.
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-11-10 01:28:31 +01:00
Justin Ruggles
f1f6d3615f
avcodec: add support for planar signed 8-bit PCM.
...
It is found in some 8svx files (e.g. ones created by SoX).
Currently the decoder reuses the 8svx functions because we already have
handling of a single large planar packet for the compressed 8svx codecs.
2011-11-09 17:48:54 -05:00
ami_stuff
dea8f6e18b
lowercase FRWU string
...
8556406d38 (lavc: lowercase the FRWU codec name)
got partially reverted by ec6402b7c5
(lavc: use designated initialisers for all codecs.)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-09 23:10:07 +01:00
Justin Ruggles
fed5ca255f
ra144enc: add sample_fmts list to ff_ra_144_encoder
...
This enables the user (i.e. avconv) to automatically convert to the supported
sample format if needed.
2011-11-09 16:53:23 -05:00
Justin Ruggles
818a3bdedf
smackaud: use uint8_t* for 8-bit output buffer type
...
This matches the output sample format and the range of the output values.
2011-11-09 16:21:08 -05:00
Justin Ruggles
375ca0aca8
smackaud: clip output samples
2011-11-09 16:20:45 -05:00
Justin Ruggles
c86c3c8017
smackaud: use sign_extend() for difference value instead of casting
2011-11-09 16:19:52 -05:00
Sebastien Zwickert
701e5348d4
vda: set destination image buffer attributes.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-09 21:19:39 +01:00
Nicolas George
e7062a1e9f
audioconvert: make av_get_channel_layout accept composite names.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-09 21:03:47 +01:00
Justin Ruggles
979c8de549
sipr: use a function pointer to select the decode_frame function
2011-11-09 14:59:52 -05:00
Justin Ruggles
3468ff1060
sipr: set mode based on block_align instead of bit_rate
...
the user is not required to set bit_rate
2011-11-09 14:59:51 -05:00
Justin Ruggles
0005f9a35b
sipr: do not needlessly set *data_size to 0 when returning an error
2011-11-09 14:59:51 -05:00
Michael Niedermayer
8cd210700b
Merge remote-tracking branch 'cus/stable'
...
* cus/stable:
ffplay: limit lowres to the maximum supported. Fixes Ticket591
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-09 20:51:49 +01:00
Justin Ruggles
9cb70ce34b
ra288: fix formatting of LOCAL_ALIGNED_16
2011-11-09 13:45:50 -05:00
Michael Niedermayer
82a1d57575
fraps: check overread per sample instead of per line
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-09 19:40:59 +01:00
Michael Niedermayer
46082e6186
fraps: fix memleak
...
Found-by reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-09 19:33:33 +01:00
Martin Storsjö
65ac51373b
udp: Allow specifying the local IP address
...
This is useful if sending multicast data on a host with
multiple interfaces.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-09 20:19:39 +02:00
Michael Niedermayer
8892d0492d
Revert commit 0bc391281a
...
ffmpeg: remove -psnr option.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-09 19:12:51 +01:00
Michael Niedermayer
26ae9a5d7c
pthreads: drop has_b_frames mangling, its buggy in many many ways,
...
not to mention race conditions and that its used for stream copy, used to determine IPB type by
applications and other things.
Fixes various frame drop/timestamp issues with frame multithreading.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-09 17:47:10 +01:00
Carl Eugen Hoyos
367468f148
Check extradata_size before accessing extradata.
...
Fixes ticket #627 .
2011-11-09 14:04:22 +01:00
shahriman AMS
c33d4916fb
VC1: Add bottom field offset to block_index[] to avoid rewriting (+10L)
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-09 11:00:49 +01:00
shahriman AMS
62622d04eb
vc1dec: move an if() block.
...
There are no reason for "if (c_valid) { ... }" to appear before
"if (b_valid) { ... }".
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-09 11:00:20 +01:00
shahriman AMS
4bceeaf0c1
vc1dec: use correct hybrid prediction threshold.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-09 10:53:24 +01:00
shahriman AMS
4344ce08f1
vc1dec: Partial rewrite of vc1_pred_mv()
...
The current code is a generalization of the earlier progressive MV
prediction code. This was supposed to predict MVs for both interlaced
and progressive pictures. But the interlaced MV prediction is buggy
and works mostly by luck.
This partially fixes interlaced MV prediction.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-09 10:51:58 +01:00
shahriman AMS
6475a6e1ca
vc1dec: take ME precision into account while scaling MV predictors.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-09 10:51:22 +01:00
Andrey Utkin
055a141e44
lavf: don't leak corrupted packets
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-09 07:30:43 +01:00
Michael Niedermayer
11e155c219
ra288: try to fix 10l typo that breaks compile on some platforms
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-09 04:53:33 +01:00
Michael Niedermayer
b2bdca1b4a
udp: simplify 7a032cb97f
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-09 03:51:08 +01:00
Andrey Utkin
7a032cb97f
Fix segfault on UDP reading
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-09 03:43:52 +01:00
Michael Niedermayer
4354788a89
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
tls: Use ERR_get_error() in do_tls_poll
indeo3: Fix a fencepost error.
mxfdec: Fix comparison of unsigned expression < 0.
mpegts: set stream id on just created stream, not an unrelated variable
ra288: return error if input buffer is too small
ra288: utilize DSPContext.vector_fmul()
ra288: use memcpy() to copy decoded samples to output
mace: only calculate output buffer size once
Remove redundant filename self-references inside files.
indeo3data: add missing config.h #include for HAVE_BIGENDIAN
x86: drop pointless ARCH_X86 #ifdef from files in x86 subdirectory
avplay: reset rdft when closing stream.
doc/git-howto: expand format-patch and send-email notes.
lavf: expand doxy for some AVFormatContext fields.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-09 02:59:49 +01:00
Themaister
0827222b9c
Use more accurate conversion for rgb15/16 to rgb24/32 (C/MMX).
...
Fate update by michael.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-09 01:58:22 +01:00
Michael Niedermayer
3bdfef31ac
fraps: check for overread
...
Fixeds Ticket619
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-09 00:06:08 +01:00
Michael Niedermayer
bf0ac7aa69
mpegvideo_probe: reduce score for invalid streams
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-08 23:54:25 +01:00
Michael Niedermayer
d8407ee2b1
ffplay: limit lowres to the maximum supported. Fixes Ticket591
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Marton Balint <cus@passwd.hu >
2011-11-08 22:34:39 +01:00
Reimar Döffinger
fd791675d4
Fix nonsense buffer hints.
...
The codec uses all previous frames as reference frames, so they
certainly must be preserved and readable.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-08 22:16:10 +01:00
Martin Storsjö
f38f3b88a5
tls: Use ERR_get_error() in do_tls_poll
...
The return value ret isn't an error code that can be passed
to ERR_error_string().
This makes the error messages printed actually contain useful
information.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-08 22:58:54 +02:00
Michael Niedermayer
4e38d4ef0e
mpegvideo_probe: Getting rid of the use of GCC language extensions
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-08 21:12:42 +01:00
Michael Niedermayer
0643ff1712
mpegvideo_probe: dont be too picky on spec compliance and the lack of system startcodes.
...
Fixes Ticket620
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-08 20:29:39 +01:00
Michael Niedermayer
b52f2d88fe
mpegvideo_probe: count video and audio pes seperately
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-08 20:29:06 +01:00
Michael Niedermayer
26d7eb40fd
mpegvideo probe: fix slice counting
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-08 20:27:17 +01:00
Alex Converse
1149fbc763
indeo3: Fix a fencepost error.
...
Found with asan and the venerable 1-dog.avi sample.
2011-11-08 10:59:52 -08:00
Alex Converse
735e601be1
mxfdec: Fix comparison of unsigned expression < 0.
...
'size' is populated by functions returning int64_t and int that return
negative error codes.
2011-11-08 10:59:52 -08:00
Anton Khirnov
3110ad8329
mpegts: set stream id on just created stream, not an unrelated variable
...
Bug introduced in 84ad31ff18 .
Thanks to Uoti Urpala for finding it.
2011-11-08 18:56:39 +01:00
Justin Ruggles
2467d8d9ea
ra288: return error if input buffer is too small
2011-11-08 12:36:56 -05:00
Justin Ruggles
0131e70af5
ra288: utilize DSPContext.vector_fmul()
2011-11-08 12:36:48 -05:00
Justin Ruggles
03e5d6118c
ra288: use memcpy() to copy decoded samples to output
2011-11-08 12:36:41 -05:00
Justin Ruggles
f50b6be57d
mace: only calculate output buffer size once
2011-11-08 12:36:14 -05:00
Diego Biurrun
ce33320b30
Remove redundant filename self-references inside files.
...
Filenames are brittle across renames and add no useful information.
2011-11-08 17:52:56 +01:00
Diego Biurrun
9412f81138
indeo3data: add missing config.h #include for HAVE_BIGENDIAN
2011-11-08 17:52:56 +01:00
Diego Biurrun
276b995d85
x86: drop pointless ARCH_X86 #ifdef from files in x86 subdirectory
2011-11-08 17:52:55 +01:00
Michael Niedermayer
4b7ef5a1e6
flv: Skip invalid index
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-08 17:39:39 +01:00
Justin Ruggles
f9324d5add
avplay: reset rdft when closing stream.
...
this fixes a crash when cycling audio streams if the spectrograph is
displayed.
2011-11-08 10:43:57 -05:00
Michael Niedermayer
33feba3abf
Revert "lavc: Init AVFrame->opaque to AVCodecContext.opaque in avcodec_default_get_buffer()"
...
This commit causes problems for vlc, see https://trac.videolan.org/vlc/ticket/5518
This reverts commit 475fb67d0b .
2011-11-08 15:31:10 +01:00
Anton Khirnov
8a691dfdab
doc/git-howto: expand format-patch and send-email notes.
2011-11-08 14:25:38 +01:00
Anton Khirnov
83daced0a3
lavf: expand doxy for some AVFormatContext fields.
2011-11-08 14:25:24 +01:00
Carl Eugen Hoyos
4d7c71c364
Check for OOM after av_mallocz() in ff_interleave_add_packet().
...
Fixes a crash with the sample from Ubuntu bug #869125 .
2011-11-08 10:35:14 +01:00
Carl Eugen Hoyos
8a3f976498
Support decoding "m1v " mpeg1video in mov.
...
Fixes ticket #579 at least for ffplay.
2011-11-08 10:33:21 +01:00
Carl Eugen Hoyos
6aaf6db253
Support decoding transport streams from Sony NXCAM.
...
Fixes ticket #617 .
2011-11-08 10:30:37 +01:00
Michael Niedermayer
ac3c895d93
Revert "Warn the user if lowres > max_lowres, set lowres to max_lowres and continue"
...
Changing the lowres value is risky because the user application may have a
local copy and not read back into it, or not undo some lowres dependant things.
A patch implementing this in ffplay is already on ffmpeg-dev, so this feature
should be back soon.
This reverts commit 125ea3ee06 .
2011-11-08 03:33:58 +01:00
Michael Niedermayer
0bd42ae72c
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avformat: Avoid a warning about mixed declarations and code
BMV demuxer and decoder
matroskaenc: Make sure the seekhead struct is freed even on seek failure
mpeg12enc: Remove write-only variables.
mpeg12enc: Don't set up run-level info for level 0.
msmpeg4: Don't set up run-level info for level 0.
avformat: Warn about using network functions without calling avformat_network_init
avformat: Revise wording
rdt: Set AVFMT_NOFILE on ff_rdt_demuxer
rdt: Check the return value of avformat_open
rtsp: Discard the dynamic handler, if it has an alloc function which failed
dsputil: use cpuflags in x86 versions of vector_clip_int32()
Conflicts:
libavcodec/avcodec.h
libavcodec/version.h
libavformat/Makefile
libavformat/allformats.c
libavformat/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-08 02:03:14 +01:00
Michael Niedermayer
5955c63c36
v4l2: fix uninitialized variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-08 01:20:35 +01:00
Michael Niedermayer
4717e29796
flvdec: skip duplicate indexes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-08 00:09:44 +01:00
Martin Storsjö
1c8c41ff07
avformat: Avoid a warning about mixed declarations and code
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-08 01:02:14 +02:00
Kostya Shishkov
f545e00677
BMV demuxer and decoder
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-08 00:36:45 +02:00
Michael Niedermayer
c3d56f0ea3
proresenc: fix typo that caused the wrong dimensions to be used.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-07 22:35:55 +01:00
Vitor Sessak
22e25c002e
mpegaudiodec: add SSE-optimized imdct36()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-07 22:35:55 +01:00
Vitor Sessak
e32aaba358
mpegaudiodec: move imdct36() to MPADSPContext
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-07 22:35:55 +01:00
Miroslav Slugeň
df9c1cfb48
libavformat: add support for G726 audio decoder in RTP and RTSP streams
...
Fixes Ticket611
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-07 21:55:34 +01:00
Derek Buitenhuis
159609512c
libutvideodec: Check if the decode initializes correctly
...
Actually check the return value of DecodeBegin, to make
sure that it has encountered no errors.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-07 21:51:38 +01:00
Derek Buitenhuis
61d303c780
libutvideodec: Remove CODEC_CAP_LOSSLESS
...
Remove the CODEC_CAP_LOSSLESS flag, as it doesn't make
any sense for a decoder to use it.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-07 21:51:34 +01:00
Derek Buitenhuis
70cf7bb958
libutvideodec: Make buf_size local
...
Since buf_size is only used in this one function, there
is no reason for it to be part of UtVideoContext.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-07 21:51:29 +01:00
Martin Storsjö
44729bc020
matroskaenc: Make sure the seekhead struct is freed even on seek failure
...
The caller expects the seekhead struct to be freed when calling
matroska_write_seekhead. Currently, the structure is leaked if the
seek fails.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-07 22:23:17 +02:00
Alex Converse
090aaaf752
mpeg12enc: Remove write-only variables.
2011-11-07 10:53:55 -08:00
Alex Converse
7c5dfc174b
mpeg12enc: Don't set up run-level info for level 0.
...
run: The number of zero coefficients preceding a non-zero coefficient,
in the scan order. The absolute value of the non-zero coefficient is
called "level".
The run-level code makes illegal reads when trying to set up tables for
nonsense level 0.
2011-11-07 10:50:48 -08:00
Alex Converse
a1684cf82d
msmpeg4: Don't set up run-level info for level 0.
...
run: The number of zero coefficients preceding a non-zero coefficient,
in the scan order. The absolute value of the non-zero coefficient is
called "level".
The run-level code makes illegal reads when trying to set up tables for
nonsense level 0.
2011-11-07 10:48:53 -08:00
Derek Buitenhuis
b580ab6b8b
libutvideodec: Fix typo
...
Remove extraneous space.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-07 19:37:38 +01:00
Derek Buitenhuis
1ff1b5f7f6
libutvideodec: Width and height don't need to be unsigned
...
Width and height, as used in utvideo_decode_frame, do not
need to be unsigned, and it could cause sign-compare
warnings later on.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-07 19:37:38 +01:00
Derek Buitenhuis
f44f093d60
libutvideodec: Fix name of extradata member
...
The frameinfo size member of the Ut Video extradata
was erroneously thought to be the number of stripes.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-07 19:37:38 +01:00
Martin Storsjö
ce145690b6
avformat: Warn about using network functions without calling avformat_network_init
...
This is to make developers aware of the fact that they will
start using the new init function at some point.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-07 19:29:33 +02:00
Martin Storsjö
87892ef8a6
avformat: Revise wording
...
It might make sense not to make the function completely mandatory
immediately at the next bump, which might be quite soon after
the function was introduced.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-07 19:29:32 +02:00
Michael Niedermayer
5ca392d119
fate: add --timeout=60 --contimeout=60 to fate-rsync
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-07 15:13:16 +01:00
Derek Buitenhuis
bc74c4712d
libutvideodec: remove impossible pix_fmt case
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-07 15:01:19 +01:00
Derek Buitenhuis
e347519877
libutvideo: Don't try and output original_format
...
The original format field in Ut Video's extradata
should not be used to determine the output format.
Cases can occur where the original format differs
from the actual current format, and thus should
not be used as the output format. Instead, rely
solely on the FOURCC.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-07 15:01:19 +01:00
Stefano Sabatini
13665c8767
ffprobe: refactor value_string() to accept an unit_value struct
...
The new design allows to specialize the format for continuos time values
and discrete values. In particular, allows to print integer values like
"12" rather than "12.000".
Prettify, simplify parsing for integer values.
2011-11-07 14:53:36 +01:00
Stefano Sabatini
80abfbea9d
ffprobe: introduce print_val() macro, ease readability
2011-11-07 14:53:29 +01:00
Stefano Sabatini
d2d6bade5c
ffprobe: implement and use print_time and print_ts macros
...
Help readability.
2011-11-07 14:53:22 +01:00
Martin Storsjö
0882689116
rdt: Set AVFMT_NOFILE on ff_rdt_demuxer
...
This makes rdt work again, which has been broken since
603b8bc2a1 . This commit made
opening a demuxer without a file (or in this case, with a filename
which can't be opened) fail, unless the demuxer actually declared
AVFMT_NOFILE.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-07 11:24:10 +02:00
Martin Storsjö
ed307e2659
rdt: Check the return value of avformat_open
...
If it failed, return NULL. This avoids trying to use an
half-initialized RDTDemuxContext.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-07 11:23:57 +02:00
Martin Storsjö
4b3dc857e4
rtsp: Discard the dynamic handler, if it has an alloc function which failed
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-07 11:23:56 +02:00
Michael Niedermayer
728e6d979b
avio: print a warning from ffurl_alloc() if no protocols are allocated.
...
Fixes Ticket618
Based on code by teratorn
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-07 04:24:49 +01:00
Michael Niedermayer
13b7781ec8
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (23 commits)
x86inc: use sse versions of common macros instead of sse2 when applicable
doc/APIchanges: add missing dates and hashes
lavf: don't return from void av_update_cur_dts()
Changelog: add more entries.
Changelog: update ffmpeg/avconv incompatibility list.
avconv: remove some redundant temporary variables.
avconv: fix broken indentation
avconv: move copy_initial_nonkeyframes to the options context.
avconv: use file:stream instead of file.stream in log messages.
doc/avconv: elaborate on basic functionality.
doc/avconv: -sample_fmts, not -help sample_fmts prints the sample formats
openssl: Only use CRYPTO_set_id_callback on OpenSSL < 1.0.0
Call avformat_network_init/deinit in the programs
Remove leftover includes of strings.h
avutil: Don't allow using strcasecmp/strncasecmp
Replace all usage of strcasecmp/strncasecmp
avstring: Add locale independent implementations of strcasecmp/strncasecmp
avstring: Add locale independent implementations of toupper/tolower
cosmetics: insert some spaces in explicit enum value assignments
move 8SVX audio codecs to the audio codec list part on the next bump
...
Conflicts:
avprobe.c
doc/APIchanges
ffplay.c
ffserver.c
libavcodec/avcodec.h
libavdevice/bktr.c
libavdevice/v4l.c
libavdevice/v4l2.c
libavformat/matroskaenc.c
libavformat/wtv.c
libavutil/avstring.c
libavutil/avstring.h
libavutil/avutil.h
libswscale/x86/swscale_template.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-07 03:01:43 +01:00
Justin Ruggles
b8f02f5b4e
dsputil: use cpuflags in x86 versions of vector_clip_int32()
2011-11-06 20:50:06 -05:00
Nicolas George
ada8d485c0
audioconvert: prefer 5.X over 5.X(side).
...
This is the logical consequence of commit ab539d9e :
5.X(back) is more common than 5.X(side).
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-07 01:38:56 +01:00
Justin Ruggles
f2bd8a0786
x86inc: use sse versions of common macros instead of sse2 when applicable
2011-11-06 19:14:13 -05:00
Anton Khirnov
eacec07e9c
doc/APIchanges: add missing dates and hashes
2011-11-06 20:33:13 +01:00
Anton Khirnov
eb0de71058
lavf: don't return from void av_update_cur_dts()
2011-11-06 19:13:28 +01:00
Anton Khirnov
a747629880
Changelog: add more entries.
2011-11-06 18:38:54 +01:00
Anton Khirnov
c4302a3914
Changelog: update ffmpeg/avconv incompatibility list.
2011-11-06 18:38:54 +01:00
Anton Khirnov
059fb8c884
avconv: remove some redundant temporary variables.
2011-11-06 18:38:54 +01:00
Anton Khirnov
f8c314c81f
avconv: fix broken indentation
2011-11-06 18:38:53 +01:00
Anton Khirnov
a2aeeb2263
avconv: move copy_initial_nonkeyframes to the options context.
...
Also document it.
2011-11-06 18:38:53 +01:00
Anton Khirnov
9a414d8962
avconv: use file:stream instead of file.stream in log messages.
2011-11-06 18:38:53 +01:00
Anton Khirnov
d9b49e72a6
doc/avconv: elaborate on basic functionality.
2011-11-06 18:38:53 +01:00
Anton Khirnov
2b56db5869
doc/avconv: -sample_fmts, not -help sample_fmts prints the sample formats
2011-11-06 18:38:53 +01:00
Martin Storsjö
2461284630
openssl: Only use CRYPTO_set_id_callback on OpenSSL < 1.0.0
...
Since 1.0.0, this function is deprecated. A new function,
CRYPTO_THREADID_set_callback is available, but if not set at all,
it uses the address of errno as thread id, which should be
sufficient for most systems.
On windows, it never was necessary to use this function even
before 1.0.0, it used the right win32 API function for this
by default.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-06 18:31:44 +02:00
Martin Storsjö
776f2bb91a
Call avformat_network_init/deinit in the programs
...
Calling the init function will become mandatory at some later
point. By calling it, more heavy network init (such as SSL/TLS
library init) can be done once at startup, instead of implicitly
when used (which could lead to it being done a number of times).
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-06 18:31:39 +02:00
Ramiro Polla
d3bc75c666
dshow: support BI_BITFIELDS compression type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 16:53:49 +01:00
Michael Niedermayer
b13ba5cb9a
swscale: use isByteRGB() to simplify check for palToRgbWrapper.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 13:30:10 +01:00
Michael Niedermayer
307b650270
swscale: Fix packed rgb check for planarRgbToRgbWrapper.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 13:28:22 +01:00
Themaister
1e79926f9e
Unscaled Planar RGB -> RGB support in swscale.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 13:20:25 +01:00
Stefano Sabatini
079700f582
af_aconvert: fix doc reference to unexisting chlayout.h file
2011-11-06 11:48:09 +01:00
Martin Storsjö
3607ed70d5
Remove leftover includes of strings.h
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-06 11:53:05 +02:00
Reimar Döffinger
de8d1940b5
avutil: Don't allow using strcasecmp/strncasecmp
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-06 11:52:59 +02:00
Reimar Döffinger
bb3244dee2
Replace all usage of strcasecmp/strncasecmp
...
All current usages of it are incompatible with localization.
For example strcasecmp("i", "I") != 0 is possible, but would
break many of the places where it is used.
Instead use our own implementations that always treat the data
as ASCII.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-06 11:52:57 +02:00
Reimar Döffinger
ba04ecfdac
avstring: Add locale independent implementations of strcasecmp/strncasecmp
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-06 11:52:56 +02:00
Luca Barbato
07b172fe8f
avstring: Add locale independent implementations of toupper/tolower
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-06 11:52:54 +02:00
Reimar Döffinger
54a09f18e3
Fix av_packet_split_side_data.
...
p cannot be calculated before av_dup_packet since that one
might change avpkt->data, causing invalid reads and a
non-working range check.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-06 09:37:34 +01:00
Kostya Shishkov
66760b30a3
cosmetics: insert some spaces in explicit enum value assignments
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-06 08:13:11 +01:00
Kostya Shishkov
19900d60fd
move 8SVX audio codecs to the audio codec list part on the next bump
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-06 08:12:42 +01:00
Kostya Shishkov
0e288b8c52
deprecate codec IDs that won't ever be used
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-11-06 07:41:58 +01:00
Ronald S. Bultje
c435653627
swscale: write yuv2plane1 MMX/SSE2/SSE4/AVX functions.
2011-11-05 20:48:14 -07:00
Loren Merritt
2f7f2e4b41
Update x86inc.asm to latest x264 version, and add AVX symmetry.
...
We keep INIT_AVX (for backwards compatibility). 3arg AVX ops with
a memory arg can only have it in src2, whereas SSE emulation of
3arg prefers to have it in src1 (i.e. the mov). So, if the op is
symmetric and the wrong one is memory, swap them.
2011-11-05 20:48:14 -07:00
Michael Niedermayer
64bf5a0c7f
fate: fix mapchan
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 03:01:01 +01:00
Peter Ross
b372723f6a
wtvenc: ensure fat tables are padded to the sector boundary
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 02:40:31 +01:00
Stefano Sabatini
41ab24bad8
lavf: remove commented check in compute_pkt_fields2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 02:40:31 +01:00
Michael Niedermayer
d8cab5c26b
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
http: Remove the custom function for disabling chunked posts
rtsp: Disable chunked http post through AVOptions
movdec: Set frame_size for AMR
h264_weight: remove duplication functions.
swscale: align vertical filtersize by 2 on x86.
libavfilter: reindent.
matroskadec: empty blocks are in fact valid.
avfilter: don't abort() on zero-size allocations.
h264: improve calculation of codec delay.
movenc: Set a correct packet size for AMR-NB mode 15, "no data"
avformat: Add functions for doing global network initialization
avformat: Add the https protocol
avformat: Add the tls protocol, using OpenSSL or gnutls
avformat: Initialize gnutls in ff_tls_init()
w32threads: Wrap the mutex functions in inline functions returning int
configure: Allow linking to the gnutls library
avformat: Add ff_tls_init()/deinit() that initialize OpenSSL
configure: Allow linking to openssl
avcodec: Allow locking and unlocking an avformat specific mutex
avformat: Split out functions from network.h to a new file, network.c
Conflicts:
Changelog
configure
doc/APIchanges
libavcodec/internal.h
libavcodec/version.h
libavfilter/formats.c
libavformat/matroskadec.c
libavformat/mov.c
libavformat/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 02:23:34 +01:00
Peter Ross
3b4798a873
wtvdec: ignore another known guid
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 01:53:46 +01:00
Joakim Plate
29a29226bb
Set avctx->coded_width/height to uncropped h264 sizes
...
avctx->width/height remain right/bottom cropped as previous behaviour.
Hardware decoders need to know the uncropped data to allocate surfaces
of correct height. Some hardware is picky and fails to decoder properly
if a surface larger than needed is used during decode, so just aligning
up is not enough.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 01:46:14 +01:00
Nicolas George
1125571b73
audioconvert: use + in av_get_channel_layout_string.
...
When constructing a channel layout string from individual channel names,
+ is a more practical separator than |, because it is usually not a shell
special character.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 01:39:51 +01:00
Ramiro Polla
526a7d855d
dshow: don't print min/max values for fps the wrong way around
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 01:19:57 +01:00
Ramiro Polla
e3e962835f
dshow: save opened device reference so it may be properly closed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 01:19:57 +01:00
Ramiro Polla
21a928d07c
dshow: release filter reference obtained from enumeration
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 01:19:56 +01:00
Ramiro Polla
5b186148bf
dshow: indent
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 01:19:56 +01:00
Ramiro Polla
2f9b955918
dshow: support choosing between devices with same name
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 01:19:56 +01:00
Nicolas George
68b531fe6a
src_movie: set the channel layout to default if the codec did not set it.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 01:19:56 +01:00
Michael Niedermayer
ea83b032af
matroskaenc: base default duration on avg_frame_rate if possible.
...
Fixed Ticket432
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 00:10:28 +01:00
Michael Niedermayer
0e55902324
ffmpeg: preserve avg_frame_rate on stream copy.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 00:09:40 +01:00
Michael Niedermayer
439e1d196b
libvpxenc: Fix "Additional information: g_lag_in_frames out of range [..25]"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-06 00:09:39 +01:00
Reimar Döffinger
5af7daabc4
Mark AVFilterPad[] compound literals as const.
...
GCC 4.6.2 at least still seems to fail to put them in .rodata though,
see also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37303
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-06 00:05:14 +01:00
Reimar Döffinger
d9010daa6f
Set AVFrame reference before reget_buffer.
...
Otherwise it might return a write-only frame which would break
decoding completely.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 23:55:46 +01:00
Reimar Döffinger
266f6eefc6
nuv: do not use data not initialized by LZO decompression.
...
This fixes visible corruption in the incomplete last frame
of the FATE sample.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 23:53:47 +01:00
Reimar Döffinger
95e1dfee76
nuv: Fix combination of size changes and LZO compression.
...
There were multiple issues, for example might we have to re-run
the decompression when the size of the buffer increased,
we should always use a decompression buffer large enough for
the header (so we do not get stuck when the size is too small).
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 23:52:23 +01:00
Reimar Döffinger
6f3ebcc320
Check NUV per-frame header for validity.
...
Since it contains dimensions parsing an invalid one has rather
annoying effects.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 23:33:49 +01:00
Reimar Döffinger
4e6413c67d
rtjpeg: check get_block return value for error.
...
This avoids crashes due to reading out-of-bounds.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 23:25:20 +01:00
Reimar Döffinger
fffa4530f9
Simplify using get_bits_left.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 23:25:20 +01:00
Reimar Döffinger
b9242fd12f
av_lzo1x_decode: properly handle negative buffer length.
...
Treating them like 0 is safest, current code would invoke
undefined pointer arithmetic behaviour in this case.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 23:25:20 +01:00
Reimar Döffinger
7f6c828f2e
Use FFALIGN.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 23:25:20 +01:00
Reimar Döffinger
371e165443
Try to set AVFrame.reference to correct values.
...
I am not sure these new values are correct, not am I sure
the semantics are a good idea since we do not seem to make any
use of them but they caused a lot of confusion, but this
seems to make things closer to matching the documentation.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 23:25:20 +01:00
Michael Niedermayer
fb2288834b
h264: fix ssse3 biweight code with weights of 128
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-05 21:37:44 +01:00
Michael Niedermayer
971701d4fc
Merge remote-tracking branch 'cus/stable'
...
* cus/stable:
ffplay: Avoid useage of deprecated url_fileno().
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-05 18:57:09 +01:00
Peter Ross
42b5a6f634
wtvenc: use ff_put_guid and remove local copy of this function
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-05 16:51:26 +01:00
Peter Ross
b7c9512fca
asfenc: rename put_guid to ff_put_guid
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-05 16:51:25 +01:00
Peter Ross
1efe4ff91d
wtvenc: add @file comment
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-05 16:51:25 +01:00
Peter Ross
3852c29fd4
fix whitespace nits
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-05 16:51:25 +01:00
Martin Storsjö
18ae362640
http: Remove the custom function for disabling chunked posts
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-05 16:54:39 +02:00
Martin Storsjö
d450cc4f4a
rtsp: Disable chunked http post through AVOptions
...
This avoids having to use a private function.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-05 16:53:58 +02:00
Reimar Döffinger
49baf44c24
Make ff_mba_* arrays const.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 15:37:02 +01:00
Reimar Döffinger
b052601b95
Make another static array const.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 15:37:02 +01:00
Reimar Döffinger
db076a2c48
Make fdct_r_row_sse2 const.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 15:37:02 +01:00
Reimar Döffinger
b883c879aa
Make AMR tables of lookup filter tables const.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 15:37:02 +01:00
Reimar Döffinger
6f6ab1d9f3
Make another PixelFormat list const.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 15:37:02 +01:00
Reimar Döffinger
91e7e6b721
Make sdl_overlay_pix_fmt_map static const.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 15:37:02 +01:00
Reimar Döffinger
d7e95ccd9f
Make PIX_FMT format list arrays const.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 15:37:02 +01:00
Reimar Döffinger
8541422506
Make rgb_pixfmt_map const.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 15:37:02 +01:00
Reimar Döffinger
9663b8da9a
Make tab_frw_01234567_sse2 const.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 15:37:01 +01:00
Reimar Döffinger
bd09fecce2
color_table array should be const.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 15:37:01 +01:00
Reimar Döffinger
d78473334e
Add const to static arrays where it was forgotten.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 15:37:01 +01:00
Clément Bœsch
a010b56ebc
doc: fix typo in previous commit.
2011-11-05 15:30:46 +01:00
Carl Eugen Hoyos
237f13290b
movdec: Set frame_size for AMR
...
Earlier, sc->samples_per_frame was used for setting the frame size,
but all files don't have that set properly. The frame size is a
known constant for these codecs.
If frame_size isn't set, the mov/3gp muxer refuses to mux it.
This fixes stream copy of audio from
https://roundup.libav.org/file1248/Video_With_AMR-NB_Audio.3gp
to another 3gp file (roundup issue 2468).
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-05 16:30:18 +02:00
Clément Bœsch
11f2a56585
doc: document v4l and v4l2 aliases.
2011-11-05 15:30:10 +01:00
Clément Bœsch
1335331e8e
doc: fix a few typo in the filters section.
2011-11-05 15:19:36 +01:00
Clément Bœsch
1054ab3595
v4l2: add libv4l2 support.
2011-11-05 15:19:36 +01:00
Ronald S. Bultje
717401aff2
h264_weight: remove duplication functions.
2011-11-05 07:16:30 -07:00
Clément Bœsch
434db5719e
ffprobe: use avio_size() instead of deprecated file_size attribute.
2011-11-05 15:07:19 +01:00
Clément Bœsch
1e4027747a
ffprobe: fix const compiler warning.
2011-11-05 15:07:19 +01:00
Clément Bœsch
0e5ecd806e
Replace remaining av_new_stream() with avformat_new_stream().
2011-11-05 15:07:19 +01:00
Ronald S. Bultje
1deb08fcb6
swscale: align vertical filtersize by 2 on x86.
...
The vertical scaler handles 2 rows at a time and thus requires
alignment by 2, or else it'll read invalid memory and result in
corrupt output.
2011-11-05 07:06:38 -07:00
Ronald S. Bultje
43317fd52c
libavfilter: reindent.
2011-11-05 07:01:39 -07:00
Ronald S. Bultje
d31fb1a9e7
matroskadec: empty blocks are in fact valid.
2011-11-05 06:59:27 -07:00
Ronald S. Bultje
23a8b4ddfc
avfilter: don't abort() on zero-size allocations.
2011-11-05 06:59:27 -07:00
Ronald S. Bultje
ea2bb12e3e
h264: improve calculation of codec delay.
...
Fixes the following conformance suite samples:
HCBP1_HHI_A.264, HCBP2_HHI_A.264, HCMP1_HHI_A.264 (main)
HCHP1_HHI_B.264, HCHP2_HHI_A.264, HCHP3_HHI_A.264 (frext)
2011-11-05 06:58:52 -07:00
Clément Bœsch
454f165728
j2kdec: fix a bunch of const compiler warnings.
2011-11-05 12:56:39 +01:00
Clément Bœsch
5fd1a69509
APIChanges: fill missing dates and hashes.
2011-11-05 12:31:33 +01:00
Carl Eugen Hoyos
ed669c9bec
movenc: Set a correct packet size for AMR-NB mode 15, "no data"
...
These packets are valid packets, and consist of 1 byte (which
contains the mode bits).
This had been analyzed and reported by Igor Levin, igor d levin comverse com.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-05 12:35:34 +02:00
Reimar Döffinger
addc64f7f9
Fix typo in warning message.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 11:30:46 +01:00
Reimar Döffinger
5639793be9
Put strings inside struct instead of extra indirection.
...
Saves a bit on space and relocations.
Also makes the (very hackish) lossless conversion check
in ffmpeg.c work reliably.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-05 11:30:46 +01:00
Martin Storsjö
b6d08f40aa
avformat: Add functions for doing global network initialization
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-05 12:17:51 +02:00
Martin Storsjö
183baeadca
avformat: Add the https protocol
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-05 12:09:36 +02:00
Martin Storsjö
558d192d23
avformat: Add the tls protocol, using OpenSSL or gnutls
...
Note, this protocol doesn't yet check verify the server
certificate against a local database of trusted CA root
certificates.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-05 12:09:30 +02:00
Martin Storsjö
1606e551ff
avformat: Initialize gnutls in ff_tls_init()
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-05 12:09:27 +02:00
Martin Storsjö
8148631269
w32threads: Wrap the mutex functions in inline functions returning int
...
This allows using these wrappers in the gcrypt mutex callbacks.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-05 12:09:24 +02:00
Martin Storsjö
bc8c1395ca
configure: Allow linking to the gnutls library
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-05 12:09:20 +02:00
Martin Storsjö
48e59ad8e7
avformat: Add ff_tls_init()/deinit() that initialize OpenSSL
...
If the application hasn't set up mutex callbacks, we set up
our own using pthreads (or w32pthreads).
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-05 12:08:59 +02:00
Martin Storsjö
a060866fd7
configure: Allow linking to openssl
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-05 12:08:56 +02:00
Martin Storsjö
2d1b6fb72b
avcodec: Allow locking and unlocking an avformat specific mutex
...
This extends the lock manager in avcodec to manage two separate
mutexes via the user-specified lock functions.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-05 12:08:53 +02:00
Martin Storsjö
f6d3710096
avformat: Split out functions from network.h to a new file, network.c
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-05 12:08:47 +02:00
Michael Niedermayer
0fd28e39ec
examples/filtering: remove #include vsink_buffer.h, the header does not exist
...
Found-by: teratorn
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-05 05:40:00 +01:00
Michael Niedermayer
c28ea94cd7
af_volume: exp10() is a GNU extension.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-05 05:39:42 +01:00
Stefano Sabatini
3a1045dfda
af_earwax: copy input buffer properties to output
...
In particular, fix timestamps, partially address trac ticket #375 .
2011-11-05 02:45:08 +01:00
Mina Nagy Zaki
fa4f06ab5e
lavfi: add earwax audio filter, ported from Sox
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-11-05 02:16:45 +01:00
Stefano Sabatini
618ac71354
lavfi: add volume filter
2011-11-05 02:13:37 +01:00
Stefano Sabatini
1fc7077115
lavfi: increase number of maximum registered filters from 64 to 128
2011-11-05 02:13:37 +01:00
Stefano Sabatini
217790871e
lavfi: issue error if maximum number of filters is reached
...
Issue an error and return a more meaningful error code in case the
maximum number of registered filters has been reached.
This is better than silently ignore the error, improve feedback.
2011-11-05 02:13:37 +01:00
Michael Niedermayer
6ace8374ba
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
binkaudio: expand quant_table to accommodate all possible values
libx264: Set the default of the rc_lookahead option to -1
avcodec: Set flags2 default value depending on availability
configure: declare dependency of h264_vaapi_hwaccel on h264_decoder
Conflicts:
configure
libavcodec/options.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-05 01:46:14 +01:00
Michael Niedermayer
304ec08f3b
ffplay: Avoid useage of deprecated url_fileno().
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Marton Balint <cus@passwd.hu >
2011-11-05 00:25:07 +01:00
Jordi Ortiz
8b1032c923
dwt: Code make up, removed gotos
...
(cherry picked from commit 14880406e1277cef91d9b22a4d9b3bf91f8ea4ca)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-05 00:02:38 +01:00
Jordi Ortiz
db3463e9c3
Dirac: Added endif comments
...
(cherry picked from commit c023d4db3688cd4f0fa47c472b33eb343b0d6db1)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-05 00:02:31 +01:00
Jordi Ortiz
fca712df09
Dirac: Specific struct initializers in AVCodec initialization
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-05 00:02:11 +01:00
Jordi Ortiz
aae7a5e36d
Dirac: Removed goto + some code make up
...
(cherry picked from commit 8db434f8a6d210f7fd2f28ba325927d7a5dd04b9)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-04 23:59:33 +01:00
Jordi Ortiz
4bb2b5afc9
dwt: removed some warnings in make checkheaders
...
(cherry picked from commit 1124056ac054842f36866b4dabb9f8aae0ad06b6)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-04 23:59:28 +01:00
Jordi Ortiz
1b95b52c0a
Dirac: Solved problem with make checkheaders
...
(cherry picked from commit d611ea0a44f3e4f67fef7ba916da5a25adef58da)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-04 23:59:20 +01:00
Sebastien Zwickert
38a444e05d
configure: fixes vda compilation issue.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-04 21:38:40 +01:00
Clément Bœsch
f5cd136f2b
ffmpeg: add -map_channel option.
...
Based on an initial work by Baptiste Coudurier.
2011-11-04 19:40:32 +01:00
Derek Buitenhuis
682e0eaf14
Fix libutvideo wrapper name
...
Change the libutvideo wrapper name to "libutvideo", as
it currently conflicts with the native utvideo decoder's
name of "utvideo".
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-04 18:05:49 +01:00
Michael Niedermayer
16f793571d
ffprobe: Print format specific variables of codecs.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-04 17:25:28 +01:00
Michael Niedermayer
5cd1580ff8
swr: document how flushing works and bump minor version.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-04 16:34:39 +01:00
Michael Niedermayer
813b20a39f
swr-test: test flushing
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-04 16:32:31 +01:00
Michael Niedermayer
71f5712cb5
swr: Support flushing last samples out.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-04 16:31:51 +01:00
Justin Ruggles
add7b1140f
binkaudio: expand quant_table to accommodate all possible values
2011-11-04 10:23:53 -04:00
Martin Storsjö
c38404ee1a
libx264: Set the default of the rc_lookahead option to -1
...
This allows it to use the defaults specified by preset/tune,
without overwriting it with the default value from the
AVCodecContext field.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-04 12:46:35 +02:00
Martin Storsjö
adc85ce20b
avcodec: Set flags2 default value depending on availability
...
This makes the code compile when FF_API_X264_GLOBAL_OPTS or
FF_API_LAME_GLOBAL_OPTS is 0.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-04 12:46:33 +02:00
Diego Biurrun
76718f3fb7
configure: declare dependency of h264_vaapi_hwaccel on h264_decoder
2011-11-04 10:42:00 +01:00
Michael Niedermayer
259a960f1b
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
vp6: Fix illegal read.
avfilter: Don't copy garbage from the stack when setting up video pictures.
avcodec: Make sure codec_type is set by avcodec_get_context_defaults2
avcodec: Remove a misplaced and useless attribute_deprecated
avconv: add -dump_attachment option.
avconv: add -attach option.
avconv: make negative mappings disable only streams from the specified file
fmtconvert: fix int32_to_float_fmul_scalar() for windows x86_64
Conflicts:
libavcodec/options.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-04 01:44:06 +01:00
Alex Converse
2a6eb06254
vp6: Fix illegal read.
2011-11-03 16:40:34 -07:00
Alex Converse
0d7a16a946
avfilter: Don't copy garbage from the stack when setting up video pictures.
2011-11-03 15:54:04 -07:00
Michael Niedermayer
bb99ae3ae9
lavf: fix null pointer dereference in rdt
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-03 22:38:10 +01:00
Michael Niedermayer
b3f4ff2876
id3v2enc: av_strcasecmp()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-03 20:21:01 +01:00
Michael Niedermayer
23acfcd9e5
h264: favor coded_width in resolution chnaged checks
...
Suggested-by: Joakim Plate <elupus@ecce.se >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-03 20:21:01 +01:00
Carl Eugen Hoyos
a487378ef5
Set frame_size for AMR_NB in mov.
...
This copies the behaviour of the amr demuxer.
2011-11-03 20:22:10 +01:00
Carl Eugen Hoyos
4eb86d348f
Do not use strcpy for "strings" starting with \0.
2011-11-03 20:22:10 +01:00
Reimar Döffinger
96949dafcc
Replace all strcasecmp/strncasecmp usages.
...
All current usages of it are incompatible with localization.
For example strcasecmp("i", "I") != 0 is possible, but would
break many of the places where it is used.
Instead use our own implementations that always treat the data
as ASCII.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-03 19:25:26 +01:00
Michael Niedermayer
475fb67d0b
lavc: Init AVFrame->opaque to AVCodecContext.opaque in avcodec_default_get_buffer()
...
this should allow some simplifications in some applications.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-03 14:54:15 +01:00
Michael Niedermayer
1ed9eb5a59
lavf: Do not set cur_dts to undetermined before first_dts has been calculated as this would upset the start_time and first_dts calculation.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-03 14:47:42 +01:00
Carl Eugen Hoyos
d6af8e68c4
Cosmetics: Reindent after last commit.
2011-11-03 14:30:00 +01:00
Carl Eugen Hoyos
80af00b4b2
Support new ALAC magic cookie in caf files.
2011-11-03 14:27:54 +01:00
Martin Storsjö
cae4f4b77e
avcodec: Make sure codec_type is set by avcodec_get_context_defaults2
...
This function used to set codec_type. With the current fallback
implementation based on avcodec_get_context_defaults3, codec_type
won't be set to the value passed in, but will be set to
AVMEDIA_TYPE_UNKNOWN. Legacy callers of this function might expect
this field to be set to the value passed in.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-03 13:29:48 +02:00
Martin Storsjö
1b6da627d4
avcodec: Remove a misplaced and useless attribute_deprecated
...
If attribute_deprecated is used in an enum declaration, it
should follow the 'enum' keyword, otherwise it's ignored
silently. This is the only case of attribute_deprecated for
enum declarations currently.
Currently, this attribute_deprecated doesn't have any effect.
If moved to the right place, it emits a warning every single
time avcodec.h is included, like this:
avcodec.h:2827: warning: ‘AVLPCType’ is deprecated (declared at avcodec.h:543)
There is already a working attribute_deprecated for the
corresponding field in AVCodecContext, so therefore this
one shouldn't be needed.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-03 09:47:57 +02:00
Anton Khirnov
a2c0b830d5
avconv: add -dump_attachment option.
2011-11-03 07:29:29 +01:00
Anton Khirnov
4dbc6ceef5
avconv: add -attach option.
...
It allows attaching arbitrary files, e.g. fonts to Matroska files.
2011-11-03 07:28:21 +01:00
Anton Khirnov
e6674f685b
avconv: make negative mappings disable only streams from the specified file
2011-11-03 07:28:08 +01:00
Justin Ruggles
5463e83dbc
fmtconvert: fix int32_to_float_fmul_scalar() for windows x86_64
...
The calling convention only allows 4 non-stack parameter, with each
float or int register being skipped if not used.
fixes Bug 64
2011-11-02 21:44:58 -04:00
Michael Niedermayer
988f585fcb
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (44 commits)
replacement Indeo 3 decoder
gsm demuxer: do not allocate packet twice.
flvenc: use first packet delay as global delay.
ac3enc: doxygen update.
imc: return error codes instead of 0 for error conditions.
imc: return meaningful error codes instead of -1
imc: do not set channel layout for stereo
imc: validate channel count
imc: check for ff_fft_init() failure
imc: check output buffer size before decoding
imc: use DSPContext.bswap16_buf() to byte-swap packet data
rtsp: add allowed_media_types option
libgsm: add flush function to reset the decoder state when seeking
libgsm: simplify decoding by using a loop
gsm: log error message when packet is too small
libgsmdec: do not needlessly set *data_size to 0
gsmdec: do not needlessly set *data_size to 0
gsmdec: add flush function to reset the decoder state when seeking
libgsmdec: check output buffer size before decoding
gsmdec: log error message when output buffer is too small.
...
Conflicts:
Changelog
ffplay.c
libavcodec/indeo3.c
libavcodec/mjpeg_parser.c
libavcodec/vp3.c
libavformat/cutils.c
libavformat/id3v2.c
libavutil/parseutils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-03 02:16:26 +01:00
Maxim Poliakovski
594b54b51e
replacement Indeo 3 decoder
...
The new decoder is much smaller and has better code quality.
Cleanup and fixes courtesy of Kostya Shishkov.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-11-03 00:59:12 +01:00
Justin Ruggles
894bc1d322
gsm demuxer: do not allocate packet twice.
...
fixes memleak with raw gsm demuxing.
2011-11-02 19:36:04 -04:00
Justin Ruggles
905de11907
flvenc: use first packet delay as global delay.
...
This keeps the streams sychronized. The packets must be interleaved per-DTS.
2011-11-02 19:26:44 -04:00
Justin Ruggles
c2d9a65bc0
ac3enc: doxygen update.
...
Add some parameters to existing function documentation.
Remove some unneeded documentation.
Convert some static function documentation to non-doxygen style.
2011-11-02 17:21:45 -04:00
Justin Ruggles
a4998e448f
imc: return error codes instead of 0 for error conditions.
...
This fixes a bug where the whole buffer was returned as decoded audio due to
*data_size not being set to zero and the return value being >= 0.
2011-11-02 17:02:22 -04:00
Justin Ruggles
08e5cd3810
imc: return meaningful error codes instead of -1
2011-11-02 17:02:22 -04:00
Justin Ruggles
0473f29b60
imc: do not set channel layout for stereo
...
we only support decoding of mono imc
2011-11-02 17:02:22 -04:00
Justin Ruggles
7b7f47e733
imc: validate channel count
...
ask for a sample if not mono
2011-11-02 17:02:22 -04:00
Justin Ruggles
95fee70d67
imc: check for ff_fft_init() failure
2011-11-02 17:02:22 -04:00
Justin Ruggles
86962b13f6
imc: check output buffer size before decoding
2011-11-02 17:02:22 -04:00
Justin Ruggles
e9362aaedf
imc: use DSPContext.bswap16_buf() to byte-swap packet data
2011-11-02 17:02:22 -04:00
Stefano Sabatini
0b3e9d5dc6
vf_overlay: adopts FAST_DIV255 macro for calculating destination alpha
...
Ease readability, improve exactness.
2011-11-02 21:44:13 +01:00
Mark Himsley
91dfb73852
vf_fade: fade to correct CCIR601/709 black level
...
Current implementation fades to 0. This implementation fades to 16 for
YUV formats that contain CCIR601/709 video levels. RGB and YUVJ
formats are not altered.
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-11-02 21:44:13 +01:00
Mean
f68742bf5b
mpegtsenc: EAC3 support
...
Reviewed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-02 20:41:24 +01:00
John Brooks
f011fcd67e
rtsp: add allowed_media_types option
...
Streams from RTSP or SDP that do not match an allowed type will
be skipped entirely, which allows video-only or audio-only
streaming from servers that provide both.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-02 21:37:46 +02:00
Mean
d1590a0a2b
vc1dec: Fix CODEC_FLAG_LOW_DELAY
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-02 20:32:59 +01:00
Michael Niedermayer
f51e5015ad
mpeg4videodec: export quarter_sample & divx_packed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-02 20:01:04 +01:00
Justin Ruggles
20e081dddc
libgsm: add flush function to reset the decoder state when seeking
2011-11-02 14:41:17 -04:00
Justin Ruggles
480324e7ca
libgsm: simplify decoding by using a loop
2011-11-02 14:41:17 -04:00
Justin Ruggles
9d52f0a711
gsm: log error message when packet is too small
2011-11-02 14:41:17 -04:00
Justin Ruggles
9671db8245
libgsmdec: do not needlessly set *data_size to 0
2011-11-02 14:41:16 -04:00
Justin Ruggles
a2e255783e
gsmdec: do not needlessly set *data_size to 0
2011-11-02 14:41:16 -04:00
Justin Ruggles
fc43fc9faa
gsmdec: add flush function to reset the decoder state when seeking
2011-11-02 14:41:16 -04:00
Justin Ruggles
b03761b130
libgsmdec: check output buffer size before decoding
2011-11-02 14:41:16 -04:00
Justin Ruggles
bac2597a32
gsmdec: log error message when output buffer is too small.
...
also return AVERROR(EINVAL) instead of -1
2011-11-02 14:41:16 -04:00
Justin Ruggles
d9c6eece21
gsm: use av_get_bytes_per_sample() in frame_bytes calculation
2011-11-02 14:41:16 -04:00
Justin Ruggles
87c57d807f
Create separate functions for the raw GSM demuxer.
...
Put the new raw GSM demuxer in its own file.
Fixes raw GSM demuxing.
2011-11-02 14:41:16 -04:00
Michael Niedermayer
ce451c6b3a
id3v2enc: include strings.h for strcasecmp()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-02 19:10:49 +01:00
Michael Niedermayer
eba0e289ae
opt: remove attribute_deprecated from several functions that do not have adequante replacements.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-02 18:53:57 +01:00
Michael Niedermayer
146f99cfec
h264: add nal_length_size and is_avc to the publically readable fields
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-02 18:53:57 +01:00
Michael Niedermayer
913bc7996e
lavc: fix avcodec_get_type()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-02 18:53:50 +01:00
Sebastien Zwickert
d66ee6ac48
HWAccel: adds Video Decoder Acceleration (VDA) module for Mac OS X.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-02 15:47:27 +01:00
Michael Niedermayer
e377e6621b
MAINTAINERS: update release manager
...
Found-by: Compn
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-02 15:47:27 +01:00
Tobias Rapp
f2e7ee9bf9
id3v2enc: add support for year and day/month tags when writing id3v2 version 3 metadata
...
Adds support for year (TYER) and day/month (TDAT) tags when writing
id3v2 version 3 metadata by splitting the "date" tag. The date tag
should have a format of "YYYY-MM-DD" or "YYYY".
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-02 14:33:55 +01:00
Diego Biurrun
c6cd0e17f3
Replace vendor string in Ogg and FLAC muxers.
2011-11-02 10:43:39 +01:00
Diego Biurrun
f36b390275
Replace some forgotten FFmpeg references by Libav.
2011-11-02 10:42:55 +01:00
Diego Biurrun
959cfbf3f4
vsrc_testsrc: fix mailing list reference URL
2011-11-02 10:42:55 +01:00
Diego Biurrun
2f5df0b12c
Replace ffmpeg references with more accurate libav* references.
2011-11-02 10:42:55 +01:00
Diego Biurrun
20566eb0f0
Replace outdated references to ffmpeg tool with avconv.
2011-11-02 10:42:54 +01:00
Diego Biurrun
124e28847b
Remove some stray unnecessary ffmpeg references.
2011-11-02 10:42:54 +01:00
Diego Biurrun
d1dfcb0829
vp3: remove some pointless comments
2011-11-02 10:42:54 +01:00
Anton Khirnov
ec22979a1d
id3v2: fix type of ID3v2EMFunc.free()
2011-11-02 10:32:37 +01:00
Anton Khirnov
5511ad14fe
lavc: use designated initialisers for parsers.
2011-11-02 10:03:43 +01:00
Clément Bœsch
971e710438
dsputil: fix typo (referece -> reference).
2011-11-02 07:54:48 +01:00
Michael Niedermayer
c36edf3899
jpeg: rgb support
...
Fixes Ticket297
Based on a patch by Carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-02 02:26:28 +01:00
Justin Ruggles
da24963725
g726dec: add flush() function to reset state when seeking
2011-11-01 21:23:04 -04:00
Justin Ruggles
97f5dd1d84
g726: don't pass index to g726_reset()
...
calculate it from c->code_size instead.
2011-11-01 21:23:04 -04:00
Justin Ruggles
615b2a2cf5
g726enc: add private option for setting code size directly.
...
This is an easy alternative to setting bit_rate. This patch also selects the
closest bit_rate to the requested one rather than requiring an exact value.
2011-11-01 21:23:04 -04:00
Justin Ruggles
7abb73d4ba
g726: wrap the decoder functions with a CONFIG_ADPCM_G726_DECODER check
2011-11-01 21:23:04 -04:00
Justin Ruggles
437c11ca16
g726: group the g726_encoder AVCodec with the other encoding functions
2011-11-01 21:23:04 -04:00
Justin Ruggles
50969c0f46
g726: return AVERROR(EINVAL) instead of -1 for invalid channel count
2011-11-01 21:23:03 -04:00
Justin Ruggles
50c466d609
g726enc: use av_assert0() for sample_rate validation
...
This should never happen, but the check avoids a divide-by-zero.
2011-11-01 21:23:03 -04:00
Justin Ruggles
9e78d8cfdf
g726: treat sample rates other than 8kHz as unofficial.
2011-11-01 21:23:03 -04:00
Justin Ruggles
6e8d4a7afb
g726dec: remove the sample_rate validation
2011-11-01 21:23:03 -04:00
Justin Ruggles
6ac34eed54
g726: use bits_per_coded_sample instead of bitrate to determine mode
...
This requires some workarounds in the WAV muxer and demuxer. We need to write
the correct bits_per_coded_sample and block_align in the muxer. In the
demuxer, we cannot rely on the bits_per_coded_sample value, so we use the bit
rate and sample rate to determine the value.
This avoids having the decoder rely on AVCodecContext.bit_rate, which is not
required to be set by the user for decoding according to our API.
2011-11-01 21:23:03 -04:00
Justin Ruggles
d405237bae
g726: split the init function for the encoder and decoder
...
This also allows for not having a decoder close function.
2011-11-01 21:23:03 -04:00
Justin Ruggles
c8d36d254e
g726: pre-calculate the number of output samples.
...
Allows for checking output buffer size and simplification of decoding loop.
2011-11-01 21:23:03 -04:00
Justin Ruggles
e61a670b53
g726: use int16_t instead of short
2011-11-01 21:23:02 -04:00
Michael Niedermayer
3638f56dca
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
Enable w32threads automatically unless explicitly disabled
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-02 00:07:51 +01:00
Michael Niedermayer
3fd0f6ed25
vf_transpose: remove pix_fmts which can currently not be supported.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-01 23:45:28 +01:00
Michael Niedermayer
bd2bcf97fa
dirac: drop unused END_HORIZONTAL
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-01 22:01:11 +01:00
Michael Niedermayer
e985d71926
dirac: fix horizontal_compose_dd97i_ssse3
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-01 22:01:11 +01:00
Michael Niedermayer
754539a409
dirac: Fix mmx/sse haar wavelet compose
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-01 22:01:11 +01:00
Lou Logan
0dc22e92f4
MAINTAINERS: add myself as mailinglists maintainer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-01 19:30:50 +01:00
Matthieu Bouron
2264afa1c2
gxf: add timecode information to metadata
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-11-01 18:41:46 +01:00
Michael Niedermayer
078811d9e4
configure: fix arch x86_32
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-01 15:52:10 +01:00
Martin Storsjö
7b7b220cf7
Enable w32threads automatically unless explicitly disabled
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-11-01 16:48:15 +02:00
Carl Eugen Hoyos
ee93363f8f
Fix compilation of dct-test on ia32.
2011-11-01 15:48:03 +01:00
Vladimir Voroshilov
f0506a8993
Two extra samples are required before top of the in buffer rather than out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-01 13:08:41 +01:00
Michael Niedermayer
26b64550d6
mmsh: add return value for mmsh_open()
...
Found-by: cptspiff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-01 12:59:15 +01:00
Michael Niedermayer
5ecb6f4332
MAINTAINERS: add libstagefright
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-01 12:59:15 +01:00
Michael Niedermayer
0c339897e4
MAINTAINERS: update project server
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-01 12:57:51 +01:00
Michael Niedermayer
f955fdc7c6
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
cmdutils: Rename read_file to cmdutils_read_file
Conflicts:
ffmpeg.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-01 02:02:20 +01:00
Michael Niedermayer
3e5ea9e471
dirac: disable ff_horizontal_compose_haar0i_sse2() the function is not bitexact
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-01 00:47:25 +01:00
Michael Niedermayer
8af4ac5272
mmsh: do not try to seek to negative tiimestamps, it does not work
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-01 00:47:25 +01:00
Tobias Rapp
0f39fa0279
mp3enc: avoid truncating id3v1 tags by one byte
...
Avoid writing the trailing null-byte for id3v1 tags if length reaches max length.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-11-01 00:46:41 +01:00
Michael Niedermayer
33789862aa
mmsh_read_seek: skip header
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 22:59:56 +01:00
Michael Niedermayer
237bcaa275
mmsh:_implement a minimal mmsh_seek() so the stream position can be found out.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 22:43:38 +01:00
Michael Niedermayer
60fcc19bff
asfdec: Check packet_replic_size earlier
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 22:42:45 +01:00
Michael Niedermayer
8475ec190c
mmsh: mmsh_read_seek()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 20:50:04 +01:00
Michael Niedermayer
86a4e55e66
mmsh: split out mmsh_open_internal()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 20:49:23 +01:00
Michael Niedermayer
aedb87c57e
mmsh: move location storage into context
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 20:45:12 +01:00
Michael Niedermayer
df98446ba3
Revert "Remove detection of mmsh protocol in ffplay."
...
This reverts commit 2f64239338 .
2011-10-31 18:04:39 +01:00
Michael Niedermayer
d2ea38ddb7
dirac: alignment for dirac_hpel_filter_v has been fixed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 17:03:03 +01:00
Michael Niedermayer
18f2ae3b77
dirac: alignment for add_dirac_obmc has been fixed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 17:00:59 +01:00
Michael Niedermayer
4debdee6ce
dirac: alignment for add_rect_clamped has been fixed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 17:00:40 +01:00
Michael Niedermayer
66b6d7bcd7
dirac: alignment for put_signed_rect_clamped has been fixed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 17:00:03 +01:00
Michael Niedermayer
2eecf63086
dirac: alignment for dirac_hpel_filter_v() has been fixed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 16:59:23 +01:00
Michael Niedermayer
08bef053a0
dirac: fix stride alignment
...
This code was already added by Yuvi in c82cbea68273c6f08c4d0e94fc9fd50bfdea4e2b
It was subsequently lost somehow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 16:46:50 +01:00
Michael Niedermayer
a14a0d7c2c
dirac: fix segfault in horizontal_compose_haar
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 16:34:26 +01:00
Martin Storsjö
02170990fd
cmdutils: Rename read_file to cmdutils_read_file
...
This symbol name clashes with a symbol in gnutls, if linking
statically to that library.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-31 16:29:29 +02:00
Stefano Sabatini
30647fb45a
lavfi: bump micro after recent changes in the overlay filter
2011-10-31 11:19:53 +01:00
Stefano Sabatini
2f7c8aefa8
vf_overlay: add support to alpha pre-multiplication in the RGBA path
...
Based on the work of Mark Himsley <mark@mdsh.com >.
See thread:
Subject: [FFmpeg-devel] libavfilter: extending overlay filter
Date: Sun, 13 Mar 2011 14:18:42 +0000
2011-10-31 11:06:31 +01:00
Stefano Sabatini
3013bfa81e
vf_overlay: enable RGB path
...
Add option rgb which forces the RGB path.
2011-10-31 11:06:19 +01:00
Michael Niedermayer
c0dbab964d
dirac: ff_diracdsp_init_mmx() is only compiled when yasm is available
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 02:47:23 +01:00
Michael Niedermayer
0489af478e
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
libdirac/libschroedinger: Drop unnecessary symbol prefixes.
cmdutils: check fread() return value
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 02:26:47 +01:00
Michael Niedermayer
e484b64ce3
sws: fallback to mmx2 when yuv2yuvX_sse3() cannot be used.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 01:53:37 +01:00
Michael Niedermayer
f44ad92c3f
sws: print a warning on unaligned input on SSE2+
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 01:53:37 +01:00
Michael Niedermayer
fbf4b390d0
sws: increase stride alignment requirement for the warning print code.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-31 01:53:37 +01:00
Carl Eugen Hoyos
938458094b
Dirac decoding is supported natively.
2011-10-31 01:13:41 +01:00
Carl Eugen Hoyos
f6498e2677
Add missing 'tab'.
2011-10-31 01:11:19 +01:00
Carl Eugen Hoyos
171727d530
Bump libavcodec minor version for the Dirac decoder.
2011-10-31 01:10:07 +01:00
Michael Niedermayer
0bc5677e98
dirac: enable ff_spatial_idwt_init_mmx()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 23:29:08 +01:00
Michael Niedermayer
e8b891b7f0
dirac: enable diracdsp_mmx
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 23:28:48 +01:00
Michael Niedermayer
3cb0686eea
dirac: ff_horizontal_compose_dd97i_ssse3 does not work yet, thus disable it
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 23:28:07 +01:00
Michael Niedermayer
a1f3b18bf5
dirac: put_dirac_pixels8_mmx() does not work yet, thus disable it.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 23:27:38 +01:00
Michael Niedermayer
22fe93ea39
dirac: add_rect_clamped does currently not receive aligned data, thus use unaligned accesses.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 23:26:29 +01:00
Michael Niedermayer
d532e9223e
dirac: put_signed_rect_clamped does currently not receive aligned data, thus use unaligned accesses.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 23:25:49 +01:00
Michael Niedermayer
5f34092b13
dirac; dirac_hpel_filter_h does currently not receive aligned data thus use unaligned accesses.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 23:25:08 +01:00
Michael Niedermayer
f0d616e76f
dirac: dirac_hpel_filter_v does currently not receive aligned data, thus use unaligned accesses.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 23:24:19 +01:00
Jordi Ortiz
49aa397414
Dirac: More formating
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 21:50:17 +01:00
Jordi Ortiz
ca239e1c37
Dirac: Doxygen comments and some formatting enhancements
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 21:50:17 +01:00
Jordi Ortiz
4c150e3f4f
Dirac: allcodecs in alphabetical order
...
(cherry picked from commit b44c20e9f04f29aff09f64659b3c2926e08b46f8)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 21:50:16 +01:00
Jordi Ortiz
e3cfe54145
Dirac now returns AVFrames instead of DiracFrames
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 21:50:16 +01:00
multiple authors
5d50fcc549
DIRAC Decoder stable version, MMX support removed.
...
Look for MMX_DISABLED to find the disabled functions.
Authors of this code are Marco Gerards <marco@gnu.org > and David Conrad <lessen42@gmail.com >
With changes from Jordi Ortiz <nenjordi@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 21:50:08 +01:00
Diego Biurrun
45235d69c2
libdirac/libschroedinger: Drop unnecessary symbol prefixes.
...
The names used in the libdirac/libschroedinger wrappers are long enough as-is.
Bloating them with unnecessary prefixes makes them even more unwieldy.
2011-10-30 21:40:52 +01:00
Stefano Sabatini
b54c0a552d
vf_overlay: use opt.h API for setting options
...
Extend syntax, allow to easily add more options later.
2011-10-30 21:10:54 +01:00
Stefano Sabatini
5b1a06b1c9
libmp3lame: log error message in case of invalid number of channels
...
Also return meaningful error number in place of -1.
Improve feedback.
2011-10-30 21:10:54 +01:00
Reimar Döffinger
b264e5ca13
Remove pointless per-frame malloc/free.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-10-30 19:12:26 +01:00
David Conrad
25a6c59487
MMX put_no_rnd_pixels_l2
2011-10-30 19:06:57 +01:00
Michael Niedermayer
e834f7d2bb
postproc: remove stray +
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 18:11:09 +01:00
Janne Grunau
d94c577d3c
cmdutils: check fread() return value
2011-10-30 15:52:18 +01:00
Vladimir Voroshilov
02fa529539
Fix deprecated warnings in .bit (de)muxer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 15:39:26 +01:00
Anssi Hannula
ab9c00b992
spdifenc: use special alignment for DTS-HD length_code
...
Align IEC 61937 length_code for DTS-HD so that
(length_code & 0xf) == 0x8. This is reportedly needed with some
receivers.
Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi >
2011-10-30 15:43:19 +02:00
Michael Niedermayer
3c32a941b7
propresenc: fix missed LE pixfmt occurance
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 04:17:01 +01:00
Michael Niedermayer
64a41dc21f
proresenc: the encoder expects native endian input.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 02:55:01 +01:00
Michael Niedermayer
4dbce51b9e
ffmpeg: allow pass 3
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 02:44:36 +01:00
Clément Bœsch
ccc09185e4
doc: add v4l2 example with ALSA instead of OSS.
2011-10-30 02:07:38 +01:00
Clément Bœsch
6921272b23
lavd: add v4l and v4l2 aliases.
2011-10-30 02:39:30 +02:00
Clément Bœsch
41f00e4adb
ffmpeg: silence two compiler warnings.
2011-10-30 02:35:34 +02:00
Clément Bœsch
e1d613515b
doc: fix and clarify libx264 encoding.
...
tune, fastfirstpass and profile are not available through x264opts.
Since some FFmpeg options don't match the names used in libx264, add
libx264 option names as a reference when needed. And last thing, x264
don't have a manpage ATM, so prefer the x264 --fullhelp over the
unexistant manpage reference.
2011-10-30 02:08:57 +02:00
Michael Niedermayer
d17e7070a0
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (51 commits)
cin audio: use sign_extend() instead of casting to int16_t
cin audio: restructure decoding loop to avoid a separate counter variable
cin audio: use local variable for delta value
cin audio: remove unneeded cast from void*
cin audio: validate the channel count
cin audio: remove unneeded AVCodecContext pointer from CinAudioContext
dsicin: fix several audio-related fields in the CIN demuxer
flacdec: use av_get_bytes_per_sample() to get sample size
dca: handle errors from dca_decode_block()
dca: return error if the frame header is invalid
dca: return proper error codes instead of -1
utvideo: handle empty Huffman trees
binkaudio: change short to int16_t
binkaudio: only decode one block at a time.
binkaudio: store interleaved overlap samples in BinkAudioContext.
binkaudio: pre-calculate quantization factors
binkaudio: add some buffer overread checks.
atrac3: support float or int16 output using request_sample_fmt
atrac3: add CODEC_CAP_SUBFRAMES capability
atrac3: return appropriate error codes instead of -1
...
Conflicts:
libavcodec/atrac1.c
libavcodec/dca.c
libavformat/mov.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 01:33:41 +02:00
Michael Niedermayer
1af3571e05
mjpeg_parser: Rewrite to skip marker segments
...
Based on code by Aaron Miller <amiller@atlasdigital.tv >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 00:29:17 +02:00
Michael Niedermayer
429b3cd6f5
mjpeg_parser: add MJPEGParserContext
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-30 00:28:25 +02:00
Carl Eugen Hoyos
86931dc930
Bump libavformat minor version for the G.729 raw demuxer.
2011-10-30 00:03:00 +02:00
Carl Eugen Hoyos
bc2814d848
Add G.729 raw demuxer.
2011-10-30 00:01:46 +02:00
Carl Eugen Hoyos
0387ad892c
Be more verbose about unsupported H.264 bit-depths.
2011-10-29 23:41:05 +02:00
Justin Ruggles
7d1b17b833
cin audio: use sign_extend() instead of casting to int16_t
2011-10-29 16:43:40 -04:00
Justin Ruggles
405af43104
cin audio: restructure decoding loop to avoid a separate counter variable
...
Also check output buffer size instead of truncating output.
2011-10-29 16:43:40 -04:00
Justin Ruggles
859bdc33e4
cin audio: use local variable for delta value
2011-10-29 16:43:40 -04:00
Justin Ruggles
64e19ba48b
cin audio: remove unneeded cast from void*
2011-10-29 16:43:40 -04:00
Justin Ruggles
03381c12b3
cin audio: validate the channel count
2011-10-29 16:43:40 -04:00
Justin Ruggles
664eb77dc3
cin audio: remove unneeded AVCodecContext pointer from CinAudioContext
2011-10-29 16:43:40 -04:00
Justin Ruggles
44d2a982ac
dsicin: fix several audio-related fields in the CIN demuxer
...
bits_per_coded_sample should be 8.
block_align is calculated incorrectly, but it is not needed anyway.
packet pts should be calculated in samples.
packet duration can be set.
2011-10-29 16:43:40 -04:00
Vladimir Voroshilov
0fd59f1d45
Minimal patch for G.729 demuxer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-29 22:08:25 +02:00
Justin Ruggles
5bd0343bee
flacdec: use av_get_bytes_per_sample() to get sample size
2011-10-29 16:05:25 -04:00
Justin Ruggles
272fcc32bb
dca: handle errors from dca_decode_block()
...
Return error if core block decoding fails.
Do not enable XCh if XCh extension block decoding fails.
2011-10-29 16:04:07 -04:00
Justin Ruggles
aae6eead6a
dca: return error if the frame header is invalid
2011-10-29 16:04:07 -04:00
Justin Ruggles
f44059d260
dca: return proper error codes instead of -1
2011-10-29 16:04:06 -04:00
Kostya Shishkov
46e1af3b0f
utvideo: handle empty Huffman trees
...
If the frame is filled with the same colour, encoder may produce no data
and the fill value is indicated by zero code length (the rest of symbols
will have 0xFF for code length, meaning invalid). So such Huffman trees
should be treated specially.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-10-29 12:54:08 -07:00
Justin Ruggles
425a843505
binkaudio: change short to int16_t
2011-10-29 15:16:54 -04:00
Justin Ruggles
4f4e19480a
binkaudio: only decode one block at a time.
...
This prevents truncating output due to an output buffer that is too small for
all blocks. There is no limit on the number of blocks in a packet.
2011-10-29 15:16:54 -04:00
Justin Ruggles
eaddd29e00
binkaudio: store interleaved overlap samples in BinkAudioContext.
...
This fixes the requirement for the buffer size to be larger than the number of
samples actually decoded.
2011-10-29 15:16:54 -04:00
Justin Ruggles
9f48039a37
binkaudio: pre-calculate quantization factors
2011-10-29 15:16:53 -04:00
Justin Ruggles
101ef19ef4
binkaudio: add some buffer overread checks.
...
This stops decoding before overreads instead of after.
2011-10-29 15:16:53 -04:00
Justin Ruggles
2073224697
atrac3: support float or int16 output using request_sample_fmt
2011-10-29 15:06:32 -04:00
Justin Ruggles
a047851329
atrac3: add CODEC_CAP_SUBFRAMES capability
...
the decoder can handle multiple frames in a packet
2011-10-29 15:06:32 -04:00
Justin Ruggles
8f98577d4d
atrac3: return appropriate error codes instead of -1
2011-10-29 15:06:32 -04:00
Justin Ruggles
47b617021d
atrac3: make sure all memory is freed on init failure
2011-10-29 15:06:32 -04:00
Justin Ruggles
c91613857d
atrac3: add a couple macro constants
2011-10-29 15:06:31 -04:00
Justin Ruggles
1fead73d7b
atrac3: return error if packet is too small
2011-10-29 15:06:31 -04:00
Justin Ruggles
7e4881a2d0
atrac3: check output buffer size before decoding
2011-10-29 15:06:31 -04:00
Justin Ruggles
6ba7f78bbb
atrac3: use separate pointers for each channel in decodeFrame()
2011-10-29 15:06:31 -04:00
Justin Ruggles
5e76b8bb76
atrac3: use optimized float_interleave() function for stereo interleaving
2011-10-29 15:06:31 -04:00
Justin Ruggles
8af33cb38a
atrac3: decode mono directly to the output buffer
2011-10-29 15:06:31 -04:00
Justin Ruggles
c4a6fde33f
atrac3: decode output to float samples instead of converting to s16
2011-10-29 15:06:31 -04:00
Justin Ruggles
f20dd574f1
atrac1: return appropriate error codes instead of -1
2011-10-29 15:06:31 -04:00
Justin Ruggles
6dc7dd7af4
atrac1: check for ff_mdct_init() failure
2011-10-29 15:06:31 -04:00
Justin Ruggles
21dcecc310
atrac1: use optimized float_interleave() function for stereo interleaving
2011-10-29 15:06:31 -04:00
Justin Ruggles
96b5702efe
atrac1: fix a typo
2011-10-29 15:06:31 -04:00
Justin Ruggles
bff5b2c1ca
atrac1: validate number of channels
2011-10-29 15:06:31 -04:00
Justin Ruggles
9a35ff3841
atrac1: decode mono audio directly to output buffer
...
For stereo we need to use intermediate planar buffers, but mono does not need
to be deinterleaved so the output buffer can be used directly.
2011-10-29 15:06:31 -04:00
Justin Ruggles
33684b9c12
atrac1: check output buffer size before decoding
2011-10-29 15:06:30 -04:00
Justin Ruggles
5c353eb8e3
cook: return AVERROR_PATCHWELCOME instead of ENOTSUP
...
ENOTSUP is not defined on some systems
2011-10-29 14:32:55 -04:00
Michael Niedermayer
e71aaad283
ffmpeg: Fix regression where various fields where not initialized leading to segfaults
...
Bug introduced by:
commit f12f40b31a
Author: Anton Khirnov <anton@khirnov.net >
Date: Tue Aug 30 04:05:20 2011 +0200
ffmpeg: get rid of new* options.
They are confusing, irregular and redundant -- -map already contains all
the information. Stream maps can now be parsed in opt_output_file().
Add a more user-friendly default behavior in case no maps are present.
Breaks -programid for now, but it never worked properly anyway. A better
solution will be written soon.
2011-10-29 20:25:39 +02:00
Michael Niedermayer
a18ecfeb36
ffmpeg: Fix memory corruption with ffserver
...
Bug has been introduced by:
commit 1cede1d011
Author: Anton Khirnov <anton@khirnov.net >
Date: Sat Jun 25 07:43:49 2011 +0200
ffmpeg: factor common code from new_a/v/s/d_stream to new_output_stream()
2011-10-29 20:21:59 +02:00
Justin Ruggles
e34c6c9708
cook: check output buffer size before decoding
2011-10-29 13:43:28 -04:00
Justin Ruggles
6631294c26
cook: do not needlessly set *data_size to 0
2011-10-29 13:43:28 -04:00
Justin Ruggles
b277ebd508
cook: remove pointless return statements
2011-10-29 13:43:28 -04:00
Justin Ruggles
c9c841e231
cook: simplify decouple_info()
2011-10-29 13:43:28 -04:00
Justin Ruggles
f193c96f49
cook: return appropriate error codes instead of -1
2011-10-29 13:43:28 -04:00
Justin Ruggles
e694831f9d
cook: avoid hardcoded sizes in sizeof()
2011-10-29 13:43:28 -04:00
Justin Ruggles
776e9815a5
cook: remove unneeded #includes
2011-10-29 13:43:28 -04:00
Justin Ruggles
c25df22365
cook: output float samples instead of converting to int16
2011-10-29 13:43:28 -04:00
Benjamin Larsson
69e7ad8dbc
mov: Avoid divide by zero in edit list dts handling
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-10-29 07:59:05 -07:00
Michael Niedermayer
9b04f51d5f
proresenc: add forgotten bytestream include
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-29 16:53:37 +02:00
Reimar Döffinger
b601ded799
Add prores regression test.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-10-29 16:19:34 +02:00
Hendrik Leppkes
8689d87ac6
Revert "matroskadec: forward parsing errors to caller."
...
This reverts commit 5dd514af93 .
Silently ignoring errors allows some broken files to simply be played, instead of failing.
(cherry picked from commit 7804b0693375c1a7ba1046f7a3579e9f63c2b15a)
The intended goal (as confirmed with its author) of fixing a crash has been
fixed differently prior to the application of this patch and this patch does
notsucessfully propagate parse errors either.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-29 15:57:26 +02:00
Reimar Döffinger
c5865a8967
Use bytestream functions to write header.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-10-29 15:48:43 +02:00
Reimar Döffinger
d9f4dc52a0
Only do 1 malloc instead of 3 and check for failure.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-10-29 15:48:43 +02:00
Reimar Döffinger
5c9b9165cd
Remove unnecessary memset.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-10-29 15:48:43 +02:00
Reimar Döffinger
a2db46b883
Remove useless casts.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-10-29 15:48:43 +02:00
Reimar Döffinger
eac778deb3
Some minor spelling fixes.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-10-29 14:51:31 +02:00
Carl Eugen Hoyos
4d2f991187
Bump libavcodec minor version for the ProRes encoder.
2011-10-29 13:17:08 +02:00
Carl Eugen Hoyos
7afa6b4458
Warn if YCgCo colourspace is detected in H.264.
2011-10-29 13:16:47 +02:00
Carl Eugen Hoyos
7e05542aea
Add Vladimir Voroshilov's copyright header to bit.c.
2011-10-29 13:16:47 +02:00
Anatoliy Wasserman
70bab5847e
Apple ProRes encoder
...
Signed-off-by: Anatoliy Wasserman <anatoliy.wasserman@yandex.ru >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-29 12:46:05 +02:00
Kostya Shishkov
9a173575fd
utvideo: account for coupled lines in YUV420 format
...
Luma slices in YUV420 colourspace should have height in multiple of two since
they have the same line of chrominance data corresponding to pair of them.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-10-28 23:51:58 -07:00
Ronald S. Bultje
8370e426e4
vp3: fix oob read for negative tokens and memleaks on error.
2011-10-28 23:50:04 -07:00
Ronald S. Bultje
bfa0f96586
vp8: fix overflow in segmentation map caching.
2011-10-28 23:48:43 -07:00
Ronald S. Bultje
38a4be3fa7
lavf: use number of output pictures for delay checks.
...
This fixes false positives of has_codec_delay_been_guessed() for
streams where not every input picture generates an output picture,
such as interlaced H264.
2011-10-28 23:42:57 -07:00
Anton Mitrofanov
640d5f1c80
Fix decoding of lossless 4:2:2 H.264
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-10-28 23:37:30 -07:00
Anton Mitrofanov
fdb5314ea7
Fix decoding of lossless 10-bit 4:4:4 H.264
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-10-28 23:37:30 -07:00
Michael Niedermayer
6faf0a21e1
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (53 commits)
probe: Restore identification of files with very large id3 tags and no extension.
probe: Remove id3 tag presence as a criteria to do file extension checking.
mpegts: MP4 SL support
mpegts: MP4 OD support
mpegts: Add support for Sections in PMT
mpegts: Replace the MP4 descriptor parser with a recursive parser.
mpegts: Add support for multiple mp4 descriptors
mpegts: Parse mpeg2 SL descriptors.
isom: Add MPEG4SYSTEMS dummy object type indication.
aacdec: allow output reconfiguration on channel changes
nellymoserenc: take float input samples instead of int16
nellymoserdec: use dsp functions for overlap and windowing
nellymoserdec: do not fail if there is extra data in the packet
nellymoserdec: fail if output buffer is too small
nellymoserdec: remove pointless buffer size check.
lavf: add init_put_byte() to the list of visible symbols.
seek-test: free options dictionary after use
snow: do not draw_edge if emu_edge is set
tools/pktdumper: update to recent avformat api
seek-test: update to recent avformat api
...
Conflicts:
doc/APIchanges
libavcodec/mpegaudiodec.c
libavcodec/nellymoserdec.c
libavcodec/snow.c
libavcodec/version.h
libavcodec/wmadec.c
libavformat/avformat.h
libavformat/mpegts.c
libavformat/mxfdec.c
libavformat/utils.c
libavformat/wtv.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-29 02:08:54 +02:00
Alex Converse
61856d06eb
probe: Restore identification of files with very large id3 tags and no extension.
...
Restore behavior of identifying files with huge id3 tags as
mp3 at AVPROBE_SCORE_MAX/4. This was broken in r25378 and subsequently
removed in r25929.
2011-10-28 15:44:10 -07:00
Alex Converse
7a773d4d59
probe: Remove id3 tag presence as a criteria to do file extension checking.
...
This only encourages our users to put id3v2 tags on non-mp3 files to opt
into extension based probing.
2011-10-28 15:44:09 -07:00
Alex Converse
ca65932bbf
mpegts: MP4 SL support
2011-10-28 14:54:14 -07:00
Alex Converse
c530267024
mpegts: MP4 OD support
2011-10-28 14:54:14 -07:00
Alex Converse
4682a1dc3a
mpegts: Add support for Sections in PMT
2011-10-28 14:54:14 -07:00
Alex Converse
fec2836483
mpegts: Replace the MP4 descriptor parser with a recursive parser.
2011-10-28 14:54:14 -07:00
Alex Converse
c3bc6096f2
mpegts: Add support for multiple mp4 descriptors
2011-10-28 14:54:13 -07:00
Alex Converse
476d04a56a
mpegts: Parse mpeg2 SL descriptors.
2011-10-28 14:54:13 -07:00
Alex Converse
77b5c82b49
isom: Add MPEG4SYSTEMS dummy object type indication.
2011-10-28 14:54:13 -07:00
Michael Niedermayer
bc2dd36740
aacdec: allow output reconfiguration on channel changes
...
Locking the decoder against channel config changes in
parse_adts_frame_header() seems to be unnecessary and
streams with channel config changes are reported.
The sample in http://roundup.libav.org/issue999 still works.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-28 22:44:59 +02:00
Anton Khirnov
ed1aa89217
lavf: add init_put_byte() to the list of visible symbols.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-28 21:46:30 +02:00
Justin Ruggles
f3db0f7403
nellymoserenc: take float input samples instead of int16
...
This avoids having to convert all input data from int16 to float, which is used
internally for encoding.
2011-10-28 14:40:52 -04:00
Justin Ruggles
77c8ef9a36
nellymoserdec: use dsp functions for overlap and windowing
2011-10-28 14:40:52 -04:00
Justin Ruggles
8c9581f052
nellymoserdec: do not fail if there is extra data in the packet
...
instead just print a warning
2011-10-28 14:40:52 -04:00
Justin Ruggles
0aaa85dbed
nellymoserdec: fail if output buffer is too small
...
avoids silently truncating the output
2011-10-28 14:40:52 -04:00
Justin Ruggles
f19305fe93
nellymoserdec: remove pointless buffer size check.
2011-10-28 14:40:51 -04:00
Anton Khirnov
854eadccb6
lavf: add init_put_byte() to the list of visible symbols.
2011-10-28 20:06:34 +02:00
Janne Grunau
c12ef64d69
seek-test: free options dictionary after use
2011-10-28 19:50:44 +02:00
Michael Niedermayer
8fa97302e0
snow: do not draw_edge if emu_edge is set
...
Fix segfault on emu edge, to reproduce
make fate-vsynth1-snow
avplay -flags emu_edge tests/data/vsynth1/snow.avi
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-10-28 10:14:11 -07:00
Carl Eugen Hoyos
246c8dac3e
Fix dca decoding for many samples after last commit.
...
Still be less verbose about channel count change from 0 channels.
2011-10-28 19:13:59 +02:00
Janne Grunau
d830264abd
tools/pktdumper: update to recent avformat api
2011-10-28 19:08:38 +02:00
Janne Grunau
d88e9f1c07
seek-test: update to recent avformat api
2011-10-28 19:08:37 +02:00
Carl Eugen Hoyos
ad2d597292
Be less verbose about dca channel number changes.
...
Only inform the user that the number of channels changed if it was set
before.
2011-10-28 18:21:40 +02:00
Carl Eugen Hoyos
81cd96caee
Remove unused dca context variable.
2011-10-28 18:20:37 +02:00
Justin Ruggles
813907d424
wmavoice: move output buffer size check to synth_superframe().
...
this allows for checking against the actual output size instead of max size.
2011-10-28 12:02:24 -04:00
Justin Ruggles
d064076570
wmavoice: only set data_size to 0 when necessary
2011-10-28 12:02:24 -04:00
Justin Ruggles
1db6437f6c
wmapro: fix strict-aliasing violations by using av_alias32
...
Also fix some undefined unsigned/signed conversions.
2011-10-28 12:02:24 -04:00
Justin Ruggles
b8b4c9c328
wmapro: use FmtConvertContext.float_interleave() to interleave output samples
2011-10-28 12:02:24 -04:00
Justin Ruggles
d0b1b1c5c7
wmadec: consolidate 2 output buffer size checks into 1 check
2011-10-28 12:02:23 -04:00
Justin Ruggles
9a33264478
apedec: assert that s->samples is not negative before trying to decode
2011-10-28 11:47:29 -04:00
Justin Ruggles
0927154d37
apedec: use FFALIGN macro for internal data buffer size
2011-10-28 11:47:28 -04:00
Justin Ruggles
5b8009f4c8
apedec: do not keep incrementing the input data pointer past the end of the
...
buffer during entropy decoding.
The pointer address could overflow, which would likely segfault. Instead set
the context error flag to indicate that the decoder tried to read past the
end of the packet data.
2011-10-28 11:47:28 -04:00
Justin Ruggles
a4c32c9a63
apedec: check for input buffer overflow while reading frame header
2011-10-28 11:47:28 -04:00
Justin Ruggles
fd244ae3a0
apedec: use unsigned int for offset
...
avoids implementation-defined unsigned-to-signed conversion and simplifies
the bounds checking.
2011-10-28 11:47:28 -04:00
Justin Ruggles
89ec474a43
apedec: remove pointless increment of 'buf'
...
The variable is not used anymore at that point.
2011-10-28 11:47:28 -04:00
Justin Ruggles
52d4fb2a3d
apedec: set s->currentframeblocks after validating nblocks
2011-10-28 11:47:28 -04:00
Justin Ruggles
2cab578489
apedec: use unsigned int for 'nblocks' and make sure that it's within int range
2011-10-28 11:47:27 -04:00
Justin Ruggles
b7e5145759
apedec: do not set s->samples until after validation.
...
This prevents errors and/or invalid writes in the next decode call due to
s->samples still being negative.
2011-10-28 11:47:27 -04:00
Justin Ruggles
11ca8b2d74
apedec: check for data buffer realloc failure
2011-10-28 11:47:27 -04:00
Justin Ruggles
91b71460b5
apedec: return meaningful error values in ape_decode_frame()
2011-10-28 11:47:27 -04:00
Justin Ruggles
c6defb41ef
apedec: correct an error message
2011-10-28 11:47:27 -04:00
Justin Ruggles
da55e0980e
apedec: cosmetics
...
break some excessively long lines and remove space after '*'
2011-10-28 11:46:41 -04:00
Justin Ruggles
f64e0a2f37
apedec: return meaningful error codes from ape_decode_init()
2011-10-28 11:41:39 -04:00
Justin Ruggles
7500781313
apedec: check for filter buffer allocation failure
2011-10-28 11:41:39 -04:00
Justin Ruggles
b9d6b02713
apedec: use memcpy for pseudo-stereo mode
2011-10-28 11:41:39 -04:00
Justin Ruggles
3c25209bd9
apedec: remove unneeded check for zero-size packet.
...
This is already checked by avcodec_decode_audio3().
2011-10-28 11:41:39 -04:00
Hendrik Leppkes
022d22e581
Fix a regression in the dca parser introduced by dts express support.
...
The dca parser needs to check that the framesize is actually of a complete
frame, and not of a partial DTS-HD frame, which is not constant size, and
thus the check would fail.
(cherry picked from commit ebc0ccb9af59b78732e82c09f8c90b1d46b478e0)
Review-by: Benjamin Larsson
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-28 15:26:31 +02:00
Hendrik Leppkes
14474fbbd0
dca_parser: Add support for parsing dts express
...
(cherry picked from commit ea36f60493f675db531dc2dbef04fb60fbc21a6a)
Review-by: Benjamin Larsson
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-28 15:25:40 +02:00
Hendrik Leppkes
7b6ae0e849
dca: allow the channel count to change.
...
(cherry picked from commit 42e78d2296752293cd08c5727f76c3b37c68fb24)
Review-by: Benjamin Larsson
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-28 15:24:35 +02:00
Anton Khirnov
9a174562e4
lavf: move private fields in AVStream to the end at next bump.
2011-10-28 09:25:26 +02:00
Anton Khirnov
df968050ab
lavf: move private fields in AVFormatContext to the end at next bump.
2011-10-28 09:24:14 +02:00
Anton Khirnov
a2faa95151
lavf: make some seeking functions private
...
Specifically av_update_cur_dts(), av_seek_frame_binary() and
av_gen_search().
They are not supposed to be called outside lavf.
2011-10-28 09:23:24 +02:00
Justin Ruggles
ec6d743118
mp3on4: do not needlessly set data_size to 0
2011-10-27 22:06:32 -04:00
Justin Ruggles
99975966c3
mp3adu: return error instead of just consuming bad packets
2011-10-27 22:06:32 -04:00
Justin Ruggles
e2e6c8799b
mpegaudiodec: check output data size based on avctx->frame_size
2011-10-27 22:06:32 -04:00
Justin Ruggles
512557b291
avcodec: remove avcodec_parse_frame and deprecate associated elements.
...
The documentation for CODEC_CAP_PARSE_ONLY and AVCodecContext.parse_only
indicates that they are utilized through avcodec_parse_frame(), which was
never actually implemented.
2011-10-27 22:06:32 -04:00
Justin Ruggles
cd816d9bbb
mpegaudiodec: cosmetics: basic pretty-printing
2011-10-27 22:06:32 -04:00
Justin Ruggles
c17e534f2e
mpegaudiodec: remove frame_count field from MPADecodeContext.
...
Its functionality was removed several years ago, so it doesn't do anything.
AVCodecContext.frame_number could serve the same purpose if someone
wants to debug the frame count.
2011-10-27 22:06:32 -04:00
Justin Ruggles
dac15a03af
mpegaudiodec: return AVERROR return codes instead of -1
2011-10-27 22:06:32 -04:00
Justin Ruggles
4be1e1dfa7
mpegaudiodec: Skip only bad frames instead of the whole packet.
...
On frame decoding failure, return an error if the frame is the same size as
the whole packet, otherwise just log an error message and return the number
of bytes consumed.
2011-10-27 22:06:31 -04:00
Michael Niedermayer
8d4e44993a
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavc: remove "legacy" mpegvideo decoder.
iv8: assemble packets to return complete frames
pulse: documentation
pulse: introduce pulseaudio input
remove the zork pcm seek test
Conflicts:
configure
libavdevice/Makefile
libavdevice/alldevices.c
libavdevice/avdevice.h
libavdevice/pulse.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-28 03:05:16 +02:00
Stefano Sabatini
aa638b4600
rawdec: add check on sample_rate
...
Prevent error condition in case sample_rate is unset or set to a negative
value. In particular, fix divide-by-zero error occurring in ffmpeg due to
sample_rate set to 0 in output_packet(), in code:
ist->next_pts += ((int64_t)AV_TIME_BASE * ist->st->codec->frame_size) /
ist->st->codec->sample_rate;
Fix trac ticket #324 .
2011-10-28 02:06:50 +02:00
Stefano Sabatini
8dc90371b1
lavfi: add internal function ff_fill_rgba_map()
2011-10-28 02:06:50 +02:00
Hendrik Leppkes
b76bc01034
Implement parsing of the "HandlerName" from th MP4 HDLR atom.
...
This atom typically is used for a track title.
(cherry picked from commit a356137816b4ea20a892d1fb203b11dbfedbc543)
Reviewed-by: Baptiste Coudurier
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-28 01:37:50 +02:00
Yusuke Nakamura
05e417aa63
mov: Support empty first edit + normal second edit.
...
(cherry picked from commit df342c91e6cfceb2537c2d1b2442dd685381a0ca)
Reviewed-by: Baptiste Coudurier
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-28 01:37:50 +02:00
Michael Niedermayer
e7f008a534
lavc: Map deprecated codec ids to ours so as to maintain compatibility with the fork.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-28 01:37:50 +02:00
Michael Niedermayer
4f587d1637
avcodec: Change values of codec ids at the end of lists that dont exist outside ffmpeg yet so
...
they wont conflict when they get added to the fork with randomly changed order and values.
Also add duplicate codec_ids to allow maintaining compatibility.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-28 01:37:50 +02:00
Michael Niedermayer
2179fc48b2
avcodec: Resolve the codec_id compatibility issue.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-28 01:37:50 +02:00
Hendrik Leppkes
dc38625ebc
Add SMPTE240M transfer characteristics flag.
...
(cherry picked from commit 4266191919c31a1921b497ec831d3b1c1fa28df8)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-28 01:37:50 +02:00
Anton Khirnov
15946eb8a9
lavc: remove "legacy" mpegvideo decoder.
2011-10-27 23:06:26 +02:00
Clément Bœsch
9bd23f6815
ashowinfo: fix typo in description.
2011-10-27 22:16:24 +02:00
Clément Bœsch
a0b7853f7a
vf_showinfo: print checksums in hexadecimal.
2011-10-27 22:14:57 +02:00
Michael Niedermayer
c643ba8128
mpegts: Fix detection of some raw AAC
...
Fixes Ticket577
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-27 21:40:05 +02:00
Michael Niedermayer
abe17c6963
j2kdec: debug markers support.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-27 20:43:27 +02:00
Michael Niedermayer
c2553a5585
Merge remote-tracking branch 'luzero/pulse'
...
* luzero/pulse:
pulse: set the device from the avformat filename
Conflicts:
libavdevice/pulse.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-27 19:46:53 +02:00
Janne Grunau
cf543c6574
iv8: assemble packets to return complete frames
2011-10-27 18:47:34 +02:00
Michael Niedermayer
4ffed61b49
h264_parser: fully parse first_mb_in_slice to more reliably detect AU boundaries.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-27 17:53:29 +02:00
Michael Niedermayer
23040e2e3d
h264: use long reading for first_mb_in_slice
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-27 17:53:08 +02:00
Michael Niedermayer
3e7db0a9ee
resample: Fix array size
...
Found-by: Jim Radford
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-27 15:27:32 +02:00
Michael Niedermayer
1b9ca38d9d
resample2: fix potential overflow
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-27 14:34:45 +02:00
Michael Niedermayer
a67cb012e6
resample: Fix overflow
...
Found-by: Jim Radford
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-27 14:31:53 +02:00
Michael Niedermayer
3e4375833d
vf_scale: Request an aligned buffer.
...
Fixes Ticket594
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-27 03:46:50 +02:00
Michael Niedermayer
d7dcd96a23
vf_pad: Fix alignment of get_video_buffer()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-27 03:46:09 +02:00
Michael Niedermayer
d18fd13f30
avfilter: add named constamt to indicate the amount of alignment that AV_PERM_ALIGN means.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-27 03:45:02 +02:00
Michael Niedermayer
4d34b6c1a1
avfilter: add flag to indicate that alignment is needed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-27 03:44:41 +02:00
Luca Barbato
c4b97fbdfa
pulse: documentation
...
Specify avoptions and how to use pactl to list devices.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-10-26 16:39:33 -07:00
Luca Barbato
0de9c41ff4
pulse: introduce pulseaudio input
...
It currently use the simple api and is using the latency information
provided only to offset the stream start.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-10-26 16:39:33 -07:00
Michael Niedermayer
173715d291
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (35 commits)
libopencore-amr: check output buffer size before decoding
libopencore-amr: remove unneeded buf_size==0 check.
libopencore-amr: remove unneeded frame_count field.
aac_latm: remove unneeded check for zero-size packet.
pcmdec: fix output buffer size check by calculating the actual output size prior to decoding.
pcmdec: move codec-specific variable declarations to the corresponding codec blocks.
pcmdec: return buf_size instead of src-buf.
avcodec: remove the Zork PCM encoder.
pcm_zork: use AV_SAMPLE_FMT_U8 instead of shifting all samples by 8.
pcmenc: remove unneeded sample_fmt check.
pcmdec: move number of channels check to pcm_decode_init()
pcmdec: remove unnecessary check for sample_fmt change
pcmdec: move DVD PCM bits_per_coded_sample check near to the code that sets the sample size.
pcmdec: do not needlessly set *data_size to 0
alacdec: remove unneeded NULL or zero-size packet checks.
alacdec: simplify buffer allocation by using FF_ALLOC_OR_GOTO()
alacdec: ask for a sample for unsupported sample depths.
alacdec: cosmetics: use 'ch' instead of 'chan' to iterate channels
alacdec: move some declarations to the top of the function
alacdec: always use get_sbits_long() for uncompressed samples
...
Conflicts:
libavcodec/pcm.c
tests/ref/acodec/pcm
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-27 01:39:04 +02:00
David Conrad
1c5670dbb2
Timecode v2 muxer
...
(cherry picked from commit 79ca161498744330ac940ae773dda3f1796ce955)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-27 01:03:22 +02:00
Justin Ruggles
82ed4f1ed8
remove the zork pcm seek test
...
this was forgotten when the encoder was removed
2011-10-26 18:48:02 -04:00
Michael Niedermayer
fc3203fcf9
doc: tiny spelling fix
...
Found-by & newspelling-by: pasteeater
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-27 00:25:32 +02:00
David Conrad
748f921ad1
VP8: Unroll decoding segment update
2011-10-27 00:00:29 +02:00
David Conrad
ba3830e8a3
VP8: Remove no longer used vp8_rac_get_tree_with_offset
2011-10-26 23:56:34 +02:00
Michael Niedermayer
742d218bf1
avidec: Return correct error code from avi_sync() in case of IO error.
...
Found-by: Tanami, Ohad
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-26 23:37:37 +02:00
Michael Niedermayer
7d7e3023d9
doc: document -moov_size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-26 22:18:01 +02:00
Michael Niedermayer
3a56169fec
movenc: reserved_moov_size, which allows placing moov at the begin of the file.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-26 22:18:01 +02:00
Justin Ruggles
4a6a29a7fb
libopencore-amr: check output buffer size before decoding
2011-10-26 16:00:37 -04:00
Justin Ruggles
345d15d2f9
libopencore-amr: remove unneeded buf_size==0 check.
...
avcodec_decode_audio3() already checks it before sending the packet to the
decoder.
2011-10-26 16:00:37 -04:00
Justin Ruggles
402c98783d
libopencore-amr: remove unneeded frame_count field.
...
Use AVCodecContext.frame_number instead.
2011-10-26 16:00:36 -04:00
Justin Ruggles
71ccfb3f14
aac_latm: remove unneeded check for zero-size packet.
...
This is already checked by avcodec_decode_audio3()
2011-10-26 12:21:18 -04:00
Justin Ruggles
f1901180e0
pcmdec: fix output buffer size check by calculating the actual output size
...
prior to decoding.
2011-10-26 12:01:07 -04:00
Justin Ruggles
154cd253e5
pcmdec: move codec-specific variable declarations to the corresponding codec
...
blocks.
2011-10-26 12:01:07 -04:00
Justin Ruggles
0093f96d34
pcmdec: return buf_size instead of src-buf.
...
The values will always be the same, so this change eliminates an unneeded
variable. It also gets rid of the need to reset src when memcpy() is used.
2011-10-26 12:01:07 -04:00
Justin Ruggles
85579b6381
avcodec: remove the Zork PCM encoder.
...
The Zork PCM decoder does not decode the 1 sample we have correctly, therefore
the encoder based on the decoder is also incorrect. There is no good reason to
keep the encoder.
2011-10-26 12:01:07 -04:00
Justin Ruggles
67a3b67c71
pcm_zork: use AV_SAMPLE_FMT_U8 instead of shifting all samples by 8.
2011-10-26 12:01:07 -04:00
Justin Ruggles
06af335a33
pcmenc: remove unneeded sample_fmt check.
...
It is already checked by avcodec_open2().
2011-10-26 12:01:07 -04:00
Justin Ruggles
d94e29cac9
pcmdec: move number of channels check to pcm_decode_init()
2011-10-26 12:01:06 -04:00
Justin Ruggles
83efd7652e
pcmdec: remove unnecessary check for sample_fmt change
2011-10-26 12:01:06 -04:00
Justin Ruggles
381e195b46
pcmdec: move DVD PCM bits_per_coded_sample check near to the code that sets
...
the sample size.
2011-10-26 12:01:06 -04:00
Justin Ruggles
6b94711f15
pcmdec: do not needlessly set *data_size to 0
2011-10-26 12:01:06 -04:00
Justin Ruggles
30f3e7b524
alacdec: remove unneeded NULL or zero-size packet checks.
...
This is already done in avcodec_decode_audio3()
2011-10-26 11:50:17 -04:00
Justin Ruggles
68f7e9cd8e
alacdec: simplify buffer allocation by using FF_ALLOC_OR_GOTO()
2011-10-26 11:50:17 -04:00
Justin Ruggles
b316af7a7c
alacdec: ask for a sample for unsupported sample depths.
...
Also return AVERROR_PATCHWELCOME.
2011-10-26 11:50:17 -04:00
Justin Ruggles
63cf54df7a
alacdec: cosmetics: use 'ch' instead of 'chan' to iterate channels
2011-10-26 11:50:17 -04:00
Justin Ruggles
01200f1283
alacdec: move some declarations to the top of the function
2011-10-26 11:50:17 -04:00
Justin Ruggles
c3a92412c0
alacdec: always use get_sbits_long() for uncompressed samples
2011-10-26 11:50:17 -04:00
Justin Ruggles
b46e58f741
alacdec: remove unneeded local variable
2011-10-26 11:50:17 -04:00
Justin Ruggles
7080533cda
alacdec: remove the numchannels parameter from several functions.
...
They only operate on stereo content, so the extra param is not necessary and
also allows for simplifying the code.
2011-10-26 11:50:17 -04:00
Justin Ruggles
cb50329fc5
alacdec: rename 2 functions.
...
Now they only do stereo interleaving.
2011-10-26 11:50:16 -04:00
Justin Ruggles
c39bddd392
alacdec: move appending of extra_bits to a separate function.
...
This should also fix decoding of mono 24-bit.
2011-10-26 11:50:16 -04:00
Justin Ruggles
e739d35156
alacdec: split stereo decorrelation into a separate function.
...
It is identical for 16-bit and 24-bit, so there is no need to have duplicate
code.
2011-10-26 11:50:16 -04:00
Justin Ruggles
d251c85dce
alacdec: cosmetics: rename 'wasted_bits' to 'extra_bits'.
...
The bits are not wasted, they are additional low bits that are added to the
16-bit decompressed samples to increase the output sample depth.
2011-10-26 11:50:16 -04:00
Justin Ruggles
dbbb9262ca
alacdec: remove unneeded numsamples checks
2011-10-26 11:50:16 -04:00
Justin Ruggles
53df079a73
alacdec: check for buffer allocation failure.
...
Also rearranges some functions for easier cleanup on failure.
2011-10-26 11:50:16 -04:00
Justin Ruggles
e5e4f92b5c
alacdec: allocate per-channel buffers based on channel count.
...
reduces memory usage when the stream has fewer than MAX_CHANNELS
2011-10-26 11:50:16 -04:00
Justin Ruggles
dcaa83a0fc
alacdec: read/validate number of channels from the extradata.
...
check frame header channel count against header/container channel count.
2011-10-26 11:50:16 -04:00
Justin Ruggles
47e9c75b36
alacdec: remove unneeded validation of setinfo_sample_size.
...
It is already done when using it to set sample_fmt.
2011-10-26 11:50:16 -04:00
Justin Ruggles
0f26f3d5c4
alacdec: set sample_fmt in alac_decode_init()
2011-10-26 11:50:16 -04:00
Justin Ruggles
aec8383348
alacdec: set bytespersample using av_get_bytes_per_sample()
2011-10-26 11:50:15 -04:00
Janne Grunau
d6174bfe5f
threads: restore has_b_frames in frame_thread_free
...
Otherwise the delay expressed in has_b_frames increases with every
avcodec_close/avcodec_open.
Fixes fate-ea-dct with more than 1 thread.
2011-10-26 16:55:54 +02:00
Michael Niedermayer
4416931fc0
snow: emu edge support
...
Fixes Ticket592
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-26 15:47:14 +02:00
Daniel Kang
ded3e9f054
H.264: Cometics to dsputil_mmx.c
...
Add whitespace.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-10-26 06:41:32 -07:00
Michael Niedermayer
c881df330d
h264: Guess receovery points.
...
Fixes Ticket561
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-26 14:32:01 +02:00
Luca Barbato
94619d5e55
pulse: set the device from the avformat filename
...
Cleanup the options and add explicit fragment_size avoption.
2011-10-25 18:27:22 -07:00
Michael Niedermayer
51bfaa21c8
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (22 commits)
g722dec: check output buffer size before decoding
g722dec: cosmetics: reindent/linewrap
g722dec: remove the use of lowres for half-rate decoding.
tta: check for extradata allocation failure in tta demuxer
tta: check for allocation failure of decode_buffer
tta: use correct frame_length calculation.
tta: add support for decoding 24-bit sample format
cosmetics: indentation
tta: remove pointless braces
tta: check output buffer size after adjusting frame length for last frame
tta: fix reading of format in TTA header.
tta: remove useless commented-out lines
tta: check remaining bitstream size while reading unary value
lavf: deprecate AVStream.stream_copy
avconc: split choose_codec() to choose_decoder/choose_encoder.
lavf: simplify by using FFMAX/FFMIN.
mpegenc: add preload private option.
cosmetics: simplify latm_decode_init
latm: avoid unnecessary reinit of the aac decoder
aacdec: initialize sbr context only in new channel elements
...
Conflicts:
avconv.c
libavcodec/resample.c
libavcodec/tta.c
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-26 02:36:07 +02:00
Michael Niedermayer
f5fdb12d55
pulse: Change application name to LIBAVFORMAT_IDENT
...
This should be changed to LIBAVDEVICE_IDENT once it exists.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-26 01:00:45 +02:00
Michael Niedermayer
4e15960c78
ffmpeg: add rmvol command line option to set swr rematrix volume.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-26 01:00:37 +02:00
Michael Niedermayer
2f86566a31
rematrix: add parameter to tune volume
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-26 00:46:46 +02:00
Michael Niedermayer
b1470d7a60
rematrix: change type of integers from 16 to 32bit to allow increasing volume with it.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-26 00:46:46 +02:00
Michael Niedermayer
1e40b2c22b
rematrix: add type for coefficients
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-26 00:46:46 +02:00
Mark Himsley
9f9b2ab1b1
vsrc_testsrc: fix off-by-one logic when detecting the EOF time in request_frame()
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-10-25 23:38:56 +02:00
Michael Niedermayer
e403a97aac
h264: 10l fix, missing () after replacing % by &
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-25 20:34:51 +02:00
Mark Himsley
1ca1336067
testsrc seconds display is out-by-one frame
...
Without this patch each displayed second is incremented 1 frame early,
second 0 is only 24 frames long where as every other second is 25 frames
long.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-25 18:24:25 +02:00
Justin Ruggles
a3a8572165
g722dec: check output buffer size before decoding
2011-10-25 11:30:50 -04:00
Justin Ruggles
4e41973794
g722dec: cosmetics: reindent/linewrap
2011-10-25 11:30:50 -04:00
Justin Ruggles
d0a196962a
g722dec: remove the use of lowres for half-rate decoding.
...
It is broken because an AVCodecContext can be opened/closed multiple
times, and sample_rate is getting divided by 2 each time that happens.
This removes the only use of lowres for audio.
2011-10-25 11:30:50 -04:00
Justin Ruggles
f540ca22c5
tta: check for extradata allocation failure in tta demuxer
2011-10-25 11:22:02 -04:00
Justin Ruggles
2f1d212fd0
tta: check for allocation failure of decode_buffer
2011-10-25 11:22:02 -04:00
Justin Ruggles
b5050539c9
tta: use correct frame_length calculation.
...
using a floating-point calculation is not necessary.
2011-10-25 11:22:02 -04:00
Justin Ruggles
c6056d4004
tta: add support for decoding 24-bit sample format
...
Note that this will not work in most cases with avconv and avplay due to the
AVCODEC_MAX_AUDIO_FRAME_SIZE limit, but it will decode correctly if given a
large enough output buffer.
2011-10-25 11:22:02 -04:00
Justin Ruggles
8664682d0e
cosmetics: indentation
2011-10-25 11:22:02 -04:00
Justin Ruggles
7b7a74a150
tta: remove pointless braces
2011-10-25 11:22:02 -04:00
Justin Ruggles
e6923f683c
tta: check output buffer size after adjusting frame length for last frame
2011-10-25 11:22:01 -04:00
Justin Ruggles
b16960a8a5
tta: fix reading of format in TTA header.
...
TTA does not support float at all, and format 2 is encrypted TTA.
2011-10-25 11:22:01 -04:00
Justin Ruggles
4d3e7a7516
tta: remove useless commented-out lines
2011-10-25 11:22:01 -04:00
Justin Ruggles
35f9d8c20a
tta: check remaining bitstream size while reading unary value
2011-10-25 11:22:01 -04:00
Anton Khirnov
3d813e4c54
lavf: deprecate AVStream.stream_copy
...
It's only used in avconv, so it properly belongs to OutputStream struct
there.
2011-10-25 16:30:00 +02:00
Anton Khirnov
1b648c7cdb
avconc: split choose_codec() to choose_decoder/choose_encoder.
...
Prevents -c copy from working for input streams and allows to move
stream_copy variable from AVStream to OutputStream.
2011-10-25 16:29:01 +02:00
Anton Khirnov
a75034300f
lavf: simplify by using FFMAX/FFMIN.
2011-10-25 16:28:52 +02:00
Anton Khirnov
f172132f82
mpegenc: add preload private option.
...
Deprecate AVFormatContext.preload.
2011-10-25 16:27:48 +02:00
Nicolas George
cf88cf17d0
Remove CELT / Opus confusion in labels, doc and comments.
...
The situation was not clear when support was added but it is now:
CELT and Opus are really two different codecs.
The current code supports CELT via libcelt, not Opus.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-25 15:04:51 +02:00
Janne Grunau
28287045ca
cosmetics: simplify latm_decode_init
2011-10-25 12:08:21 +02:00
Janne Grunau
785f876cee
latm: avoid unnecessary reinit of the aac decoder
2011-10-25 12:08:21 +02:00
Janne Grunau
80e36425fb
aacdec: initialize sbr context only in new channel elements
2011-10-25 12:07:58 +02:00
Janne Grunau
b2e56e08c9
resample: reject unhandled conversions
...
audio_resample can not reduce the number of channels
2011-10-25 12:06:48 +02:00
Janne Grunau
ec1ce86e7f
resample: remove unused #define
2011-10-25 12:06:48 +02:00
Nicolas George
02ac6a6544
libcelt_dec: whitespace cosmetics.
2011-10-25 09:38:08 +02:00
Michael Niedermayer
61b1805f73
Merge remote-tracking branch 'cus/stable'
...
* cus/stable:
ffplay: add frame drop statistics
ffplay: consider estimated time of filter in early frame drop
ffplay: reimplement early frame drop
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-25 01:03:20 +02:00
Michael Niedermayer
f0a7b67a35
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
adpcm: use sign_extend()
mpeg12: fix mpeg_decode_slice context parameter type
Revert "mpeg12: move full_pel from MpegEncContext to Mpeg1Context"
Conflicts:
libavcodec/mpeg12.c
libavcodec/mpeg12.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-24 23:45:44 +02:00
Marton Balint
d54af906a4
ffplay: add frame drop statistics
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2011-10-24 22:44:47 +02:00
Marton Balint
8f17a8efd6
ffplay: consider estimated time of filter in early frame drop
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2011-10-24 22:44:47 +02:00
Marton Balint
223cba6e3a
ffplay: reimplement early frame drop
...
This patch reimplements early frame drop, it is now based on the current
difference between the master clock and the video clock, and the pts of the
current and the last displayed (or skipped) frame. If the frame to be added to
the queue is late after decoding, then we drop it early because later we would
drop it anyway (unless it is the only frame in the picture queue).
The current approach has only one downside that I know of, it does not handle
well when the filters are changing significantly the pts of the frames, because
we compare pts values from filtered and unfiltered frames.
We also start using the pictq_mutex to ensure consistent video_current_pts,
video_current_pts_drift, frame_last_pts, frame_last_dropped_pts and
frame_last_dropped_pos values.
Signed-off-by: Marton Balint <cus@passwd.hu >
2011-10-24 22:44:47 +02:00
Nicolas George
f44c816566
libcelt_dec: set sample_fmt.
...
This fixes a regression introduced by the merging of patch fc2dd2c .
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-24 21:17:32 +02:00
Hendrik Leppkes
d1ee98c94b
mpegts: add BDMV secondary audio stream types
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-24 18:47:21 +02:00
Hendrik Leppkes
138d10969d
avcodec: add YCgCo color space.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-24 18:43:46 +02:00
Hendrik Leppkes
84e0553c1c
pcm_bluray: set bits_per_raw_sample for > 16-bit
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-24 18:41:03 +02:00
Hendrik Leppkes
463c8d8621
mpegts: fix null-pointer dereference
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-24 18:12:54 +02:00
Stefano Sabatini
d9d492513d
vsrc_testsrc: increase log level from DEBUG to INFO for message in init()
2011-10-24 17:47:59 +02:00
Stefano Sabatini
1f4652068e
lavfi: rewrite nullsrc using the code in vsrc_testsrc.c
...
Factorize code, extend the functionality of the filter, and make it
return empty buffers. This is useful for filters which ignore the input
frames content.
This is also changing the syntax of the nullsrc source, and dropping the
framerate expression evaluation, which does not look particularly useful.
2011-10-24 17:46:48 +02:00
Mark Himsley
3092509b08
filters.texi: document interlaced scaling
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-24 17:18:17 +02:00
Lou Logan
3ac1ade118
docs: remove reference to enable-libavfilter
...
This is no longer a valid configure option.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-24 17:18:17 +02:00
Mans Rullgard
c8477df019
adpcm: use sign_extend()
...
This avoids warnings from the overflow checker and simplifies the code.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-24 15:26:24 +01:00
Andreas Öman
123b1fac5c
wmall: Working bitstream parser
...
(cherry picked from commit 929822111bc10fdf19ca66b7ed09e0ebf802878b)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-24 15:55:57 +02:00
Anton Khirnov
d6b4f81721
tools: add a tool for enumerating/printing AVOptions in texinfo format
...
(cherry picked from commit e103cb3e9513949858ccf0ec44c5151239d397e9)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-24 14:18:07 +02:00
Michael Niedermayer
b616600516
sws: replace long by x86_reg in x86 asm
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-24 12:23:51 +02:00
Michael Niedermayer
35075dc650
h264: Calculate a tighter recovery_frame.
...
Reduces delay with mplayers TS demuxer.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-24 12:17:24 +02:00
Michael Niedermayer
63f0708478
h264: Support invalid output by mplayers TS demuxer.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-24 12:16:03 +02:00
Michael Niedermayer
9c020810c1
Revert "mpeg12: move full_pel from MpegEncContext to Mpeg1Context"
...
This reverts commit da22ba7df4 .
Conflicts:
libavcodec/mpeg12.c
libavcodec/mpeg12.h
2011-10-24 01:48:51 +02:00
Janne Grunau
d99fe3a478
mpeg12: fix mpeg_decode_slice context parameter type
...
During slice threading only MpegEncContext is passed to
mpeg_decode_slice, remove a wrong cast and change the function
definition to take MpegEncContext pointer.
2011-10-24 01:05:00 +02:00
Michael Niedermayer
fe906830fd
Revert "mpeg12: move closed_gop from MpegEncContext to Mpeg1Context"
...
This reverts commit 3fc0830432 .
The revert is done because the reasoning behind the commit was
flawed, closed_gop is not mpeg1/2 specific.
Conflicts:
libavcodec/mpeg12.c
libavcodec/mpeg12.h
2011-10-24 01:04:14 +02:00
Michael Niedermayer
2b0cdb7364
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
Move id3v2 tag writing to a separate file.
swscale: add missing colons to x86 assembly yuv2planeX.
g722: split decoder and encoder into separate files
cosmetics: remove extra spaces before end-of-statement semi-colons
vorbisdec: check output buffer size before writing output
wavpack: calculate bpp using av_get_bytes_per_sample()
ac3enc: Set max value for mode options correctly
lavc: move get_b_cbp() from h263.h to mpeg4videoenc.c
mpeg12: move closed_gop from MpegEncContext to Mpeg1Context
mpeg12: move full_pel from MpegEncContext to Mpeg1Context
mpeg12: move Mpeg1Context from mpeg12.c to mpeg12.h
mpegvideo: remove some unused variables from MpegEncContext.
Conflicts:
libavcodec/mpeg12.c
libavformat/mp3enc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-24 01:01:21 +02:00
Janne Grunau
cd8c64e197
Revert "mpeg12: move full_pel from MpegEncContext to Mpeg1Context"
...
This reverts commit da22ba7df4 since it
broke slice threading. Slice threading just duplicates MpegEncContext
so every value used during mpeg_decode_slice has to be in it.
A second patch will fix the illusion that Mpeg1Context is available
in mpeg_decode_slice.
2011-10-24 00:59:41 +02:00
Stefano Sabatini
42d44ec306
vsrc_testsrc: do not assume non-padded lines in test_fill_picture()
...
In particular, fix sliding color bar with padded data, for example with
testsrc,pad=iw+200:ih.
2011-10-23 23:54:37 +02:00
Stefano Sabatini
1679a40b74
vf_boxblur: fix slice-drawing
...
This filter does not support slice-drawing, the whole blurred image needs
to be written in end_frame().
2011-10-23 23:54:37 +02:00
Michael Niedermayer
9eb867e117
sws: add yuv2yuvX_sse3()
...
Code is about 2x as fast as previous
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-23 23:36:06 +02:00
Michael Niedermayer
f4bf06eb96
sws-test: Fix data alignment
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-23 23:35:28 +02:00
Michael Niedermayer
90640cc764
sws: fix assert failure
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-23 20:18:21 +02:00
Michael Niedermayer
8b4b2ddf8d
sws: x86_32 fix
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-23 20:15:37 +02:00
Michael Niedermayer
76a3490672
sws: add yuv2yuvX() back and updated to the just 1 plane API
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-23 19:31:55 +02:00
Michael Niedermayer
74fdb7a0f8
sws: factorize v*Filter use
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-23 19:22:58 +02:00
Michael Niedermayer
4d31f42020
sws: port to thw new 1 plane API and add back yuv2yuv1_ar().
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-23 19:22:58 +02:00
Michael Niedermayer
f15359727d
sws: better MOVNTQ macro
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-23 19:22:58 +02:00
Michael Niedermayer
b6dcd6dfcc
sws cleanup yuv2planeX_10_c_template()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-23 19:22:58 +02:00
Michael Niedermayer
b1a4b735f9
sws: remove nonsensical code that leaked in from libav
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-23 19:22:58 +02:00
Michael Niedermayer
1c26f2da81
sws: drop unused code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-23 19:22:58 +02:00
Michael Karcher
16ad77b357
Move id3v2 tag writing to a separate file.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-10-23 19:17:53 +02:00
Ronald S. Bultje
9e66b892e8
swscale: add missing colons to x86 assembly yuv2planeX.
...
This fixes assembling using "nasm".
2011-10-23 09:44:03 -07:00
Justin Ruggles
704721bc9c
g722: split decoder and encoder into separate files
2011-10-23 11:42:34 -04:00
Justin Ruggles
b95fbba705
cosmetics: remove extra spaces before end-of-statement semi-colons
2011-10-23 11:36:56 -04:00
Justin Ruggles
60aa1a358d
vorbisdec: check output buffer size before writing output
2011-10-23 11:36:56 -04:00
Justin Ruggles
d2604f9260
wavpack: calculate bpp using av_get_bytes_per_sample()
2011-10-23 11:35:46 -04:00
John Stebbins
ddfb8e1adb
ac3enc: Set max value for mode options correctly
...
for example:
Attempting to set ac3 dsur_mode to "on" results in:
[AC-3 Encoder @ 0x7f508f0a3280] Value 2.000000 for parameter 'dsur_mode' out of range
[AC-3 Encoder @ 0x7f508f0a3280] Error setting option dsur_mode to value on.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2011-10-23 11:30:54 -04:00
Reimar Döffinger
4a5ea9e0ce
Simplify some bits-left/overread checks.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-10-23 14:27:39 +02:00
Anton Khirnov
1deb66c50c
lavc: move get_b_cbp() from h263.h to mpeg4videoenc.c
...
It's not used anywhere else.
2011-10-23 14:16:16 +02:00
Anton Khirnov
3fc0830432
mpeg12: move closed_gop from MpegEncContext to Mpeg1Context
...
It's MPEG-1/2 specific.
2011-10-23 14:15:56 +02:00
Anton Khirnov
da22ba7df4
mpeg12: move full_pel from MpegEncContext to Mpeg1Context
...
It's MPEG-1 specific.
2011-10-23 14:14:39 +02:00
Anton Khirnov
cc05a45d33
mpeg12: move Mpeg1Context from mpeg12.c to mpeg12.h
...
It will be used in vdpau code.
2011-10-23 14:14:34 +02:00
Anton Khirnov
acffe45732
mpegvideo: remove some unused variables from MpegEncContext.
2011-10-23 14:13:40 +02:00
Michael Niedermayer
67341f6a77
lavc: add PIX_FMT_GBR24P to align_dimensions()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-23 13:45:20 +02:00
Reimar Döffinger
6f5b4ce612
Reuse vp3_decode_flush instead of duplicating it.
...
This also fixes that sometimes a frame would actually not be freed.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-10-23 13:25:51 +02:00
Michael Niedermayer
1ac5b51203
swscale: disable functions that do not yet work
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-23 05:14:15 +02:00
Michael Niedermayer
f97faf6751
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
id3v2: fix doxy comment - 'machine byte order' makes no sense on char arrays
VC1: restore mistakenly removed code
twinvq: check output buffer size before decoding
twinvq: return an error when the packet size is too small
lavf: export some forgotten symbols with non-av prefixes.
swscale: update altivec yuv2planeX asm to new per-plane API.
swscale: make yuv2yuvX_10_sse2/avx 8/9/16-bits aware.
yuv2planeX10 SIMD
swscale: decide whether to use yuv2plane1/X on a per-plane basis.
swscale: reintroduce full precision in 16-bit output.
Split up yuv2yuvX functions
Split out yuv2yuv1 luma and chroma in order to make them generic DSP functions
lavc: replace references to deprecated AVCodecContext.error_recognition to use AVCodecContext.err_recognition
lavc: translate non-flag-based er options into flag-based ef options at codec open
add -err_filter AVOptions to access flag-based error recognition
h264_weight: initialize "height" function argument properly.
presets: spelling error in libvpx 1080p50_60
avplay: fix fullscreen behaviour with SDL 1.2.14 on Mac OS X
Conflicts:
ffplay.c
libavformat/libavformat.v
libswscale/swscale.c
libswscale/x86/swscale_template.c
tests/ref/lavfi/pixfmts_scale
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-23 05:13:56 +02:00
Carl Eugen Hoyos
9e8dff90ef
Revert "mov: do not misreport empty stts"
...
Fixes ticket #578 .
This reverts commit 30c3d976f1 .
2011-10-23 00:54:56 +02:00
Michael Karcher
e71ebb1972
id3v2: fix doxy comment - 'machine byte order' makes no sense on char arrays
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-10-22 22:52:18 +02:00
Mashiat Sarker Shakkhar
f18746528d
VC1: restore mistakenly removed code
...
The code was mistakenly removed in cad16562c8 .
It stored some motion vector data for future use in B-pictures.
This fixes Bugzilla bug #57 .
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-10-22 22:51:00 +02:00
Michael Niedermayer
e60779b18c
Merge remote-tracking branch 'mans/dnxhd'
...
* mans/dnxhd:
dnxhddec: cache luma/chroma_weight*qscale tables for last qscale
dnxhddec: merge ac_{index,run}_flags
dnxhddec: store 2*level+1 in ac_level tables
dnxhddec: rearrange decode_dct_block loop
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 22:18:12 +02:00
Justin Ruggles
e53eecd0e7
twinvq: check output buffer size before decoding
2011-10-22 15:38:05 -04:00
Justin Ruggles
5ed6817822
twinvq: return an error when the packet size is too small
2011-10-22 15:38:05 -04:00
Anton Khirnov
07e1256456
lavf: export some forgotten symbols with non-av prefixes.
2011-10-22 21:08:31 +02:00
Mans Rullgard
22aebf1bfe
Add rule for compiling to asm
...
This allows commands of the form "make foo.s", which is useful
for inspecting the compiler output for debugging purposes.
Signed-off-by: Mans Rullgard <mans@mansr.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 20:49:24 +02:00
Mans Rullgard
e40cde01dc
vorbisenc: simplify floor_classes[] table
...
This avoids an indirection in the table. Data size is slightly
smaller on 64-bit systems, 8 bytes larger on 32-bit.
Signed-off-by: Mans Rullgard <mans@mansr.com >
(cherry picked from commit 214a85202b2eedbef06357e40278c2f56aa2c6e3)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 20:46:56 +02:00
Mans Rullgard
d4999e0a79
dca: ARMv6 optimised decode_blockcode()
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
(cherry picked from commit 08e3dea3f7f69309574dafc0af6671615e909720)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 20:28:45 +02:00
Mans Rullgard
ab2539708a
Check for cbrtf() and provide fallback
...
(cherry picked from commit bfb37d7db1c6394099f6b177e10d6e769e678f6a)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 19:49:27 +02:00
Mans Rullgard
9c48a7cc52
ratecontrol: replace VLAs with malloc/free
...
(cherry picked from commit 2c6bd7d1f992989d1cc108534e0896771b86824f)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 19:45:31 +02:00
Mans Rullgard
39b0165f9e
er: replace VLA with malloc/free
...
(cherry picked from commit 5c2d016a85453f121285d125ed049a8cf492855a)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 19:45:22 +02:00
Ronald S. Bultje
f48b12e0a6
swscale: update altivec yuv2planeX asm to new per-plane API.
2011-10-22 10:35:14 -07:00
Ronald S. Bultje
6cacecdca3
swscale: make yuv2yuvX_10_sse2/avx 8/9/16-bits aware.
...
Also implement MMX/MMX2 versions and SSE4 versions.
2011-10-22 10:35:14 -07:00
Kieran Kunhya
7fbbf95293
yuv2planeX10 SIMD
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-10-22 10:35:14 -07:00
Ronald S. Bultje
109f62e8f8
swscale: decide whether to use yuv2plane1/X on a per-plane basis.
2011-10-22 10:35:14 -07:00
Ronald S. Bultje
f99654d470
swscale: reintroduce full precision in 16-bit output.
2011-10-22 10:35:14 -07:00
Kieran Kunhya
ff7913aef1
Split up yuv2yuvX functions
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-10-22 10:35:13 -07:00
Kieran Kunhya
34e8d147b3
Split out yuv2yuv1 luma and chroma in order to make them generic DSP functions
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-10-22 10:35:13 -07:00
Michael Niedermayer
364f367921
avcodec: add ifdef from qatar that could not be merged previously due to compilation failure.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 16:51:40 +02:00
Nicolas George
0e138745f7
codec_names: invoke preprocessor on avcodec.h.
...
This fixes failures when codec IDs are defined conditionally,
for example when scheduling for a major bump.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 16:49:49 +02:00
Michael Niedermayer
9ab5e64897
Merge remote-tracking branch 'cus/stable'
...
* cus/stable:
ffplay: reallocate SDL overlays for OSX when changing full screen
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 16:38:16 +02:00
Dustin Brody
9abc98737f
lavc: replace references to deprecated AVCodecContext.error_recognition to use AVCodecContext.err_recognition
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-22 14:49:55 +02:00
Dustin Brody
5ea0001f9e
lavc: translate non-flag-based er options into flag-based ef options at codec open
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-22 14:49:22 +02:00
Dustin Brody
c8dad9a694
add -err_filter AVOptions to access flag-based error recognition
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-22 14:49:14 +02:00
Michael Niedermayer
d8cae42d72
Merge remote-tracking branch 'mans/ac3'
...
* mans/ac3:
ac3enc: slightly faster quantize_mantissas_blk_ch()
ac3enc: NEON optimised sum_square_butterfly_float
ac3enc: neon optimised sum_square_butterfly_int32
ac3enc: move inner loop of compute_rematrixing_strategy to ac3dsp
Conflicts:
libavcodec/ac3enc_template.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 11:11:08 +02:00
Ronald S. Bultje
b0b3231074
h264_weight: initialize "height" function argument properly.
...
Right now it's not actually initialized on 32-bit, leading to crashes
on win32.
2011-10-22 00:23:24 -07:00
Michael Niedermayer
d3d97d43d5
sws: fix warning: new qualifiers in middle of multi-level non-const cast are unsafe warning.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 05:21:01 +02:00
Carl Eugen Hoyos
415f3ceac1
Fix comment: Enhanced AC-3 in mov is defined in ETSI TS 102 366.
2011-10-22 02:23:56 +02:00
Michael Niedermayer
8646d610ff
pulse: fix application name
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 02:11:50 +02:00
Michael Niedermayer
5b602a140f
Merge remote-tracking branch 'luzero/pulse'
...
* luzero/pulse:
pulse: cosmetics
pulse: introduce pulseaudio input
Conflicts:
Changelog
configure
libavdevice/Makefile
libavdevice/alldevices.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 01:56:57 +02:00
Michael Niedermayer
d000c5ae7e
configure: move code out of main of check_exec_crash()
...
Tested-by: Hendrik Leppkes <h.leppkes@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 01:51:29 +02:00
Lou Logan
1e09d9085d
Remove redundant libx264 preset files
...
These are available via -preset or -vprofile and the addition of
-qp 0 or -crf 0 if lossless is desired.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 01:32:10 +02:00
Michael Niedermayer
aedc908601
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (35 commits)
flvdec: Do not call parse_keyframes_index with a NULL stream
libspeexdec: include system headers before local headers
libspeexdec: return meaningful error codes
libspeexdec: cosmetics: reindent
libspeexdec: decode one frame at a time.
swscale: fix signed shift overflows in ff_yuv2rgb_c_init_tables()
Move timefilter code from lavf to lavd.
mov: add support for hdvd and pgapmetadata atoms
mov: rename function _stik, some indentation cosmetics
mov: rename function _int8 to remove ambiguity, some indentation cosmetics
mov: parse the gnre atom
mp3on4: check for allocation failures in decode_init_mp3on4()
mp3on4: create a separate flush function for MP3onMP4.
mp3on4: ensure that the frame channel count does not exceed the codec channel count.
mp3on4: set channel layout
mp3on4: fix the output channel order
mp3on4: allocate temp buffer with av_malloc() instead of on the stack.
mp3on4: copy MPADSPContext from first context to all contexts.
fmtconvert: port float_to_int16_interleave() 2-channel x86 inline asm to yasm
fmtconvert: port int32_to_float_fmul_scalar() x86 inline asm to yasm
...
Conflicts:
libavcodec/arm/h264dsp_init_arm.c
libavcodec/h264.c
libavcodec/h264.h
libavcodec/h264_cabac.c
libavcodec/h264_cavlc.c
libavcodec/h264_ps.c
libavcodec/h264dsp_template.c
libavcodec/h264idct_template.c
libavcodec/h264pred.c
libavcodec/h264pred_template.c
libavcodec/x86/h264dsp_mmx.c
libavdevice/Makefile
libavdevice/jack_audio.c
libavformat/Makefile
libavformat/flvdec.c
libavformat/flvenc.c
libavutil/pixfmt.h
libswscale/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-22 01:16:41 +02:00
Lou Logan
27cedd838a
presets: spelling error in libvpx 1080p50_60
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-22 00:28:56 +02:00
Marton Balint
fec5777ed7
avplay: fix fullscreen behaviour with SDL 1.2.14 on Mac OS X
...
The blue channel went missing when toggling fullscreen on Mac OS X.
2011-10-22 00:28:55 +02:00
Reimar Döffinger
f4b51d061f
flvdec: Do not call parse_keyframes_index with a NULL stream
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-22 00:59:33 +03:00
Justin Ruggles
b19e0c2b4e
libspeexdec: include system headers before local headers
2011-10-21 17:07:05 -04:00
Justin Ruggles
a470fe80ba
libspeexdec: return meaningful error codes
2011-10-21 17:07:04 -04:00
Justin Ruggles
14bc60dbae
libspeexdec: cosmetics: reindent
2011-10-21 17:07:04 -04:00
Justin Ruggles
7eeaa6796b
libspeexdec: decode one frame at a time.
...
This allows for knowing the output size before decoding even when there is no
header (e.g. FLV). Otherwise we would have to do a preliminary full frame
decode to determine the number of frames-per-packet.
2011-10-21 17:07:04 -04:00
Hendrik Leppkes
1a7090bfaf
mov: support eac3 audio
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 22:52:55 +02:00
Michael Niedermayer
a0a4b13322
mpegts: remove read_seek()
...
Its redundant
Found-by: nevcairiel
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 22:35:07 +02:00
Michael Niedermayer
08d4408a90
utils: disable debuging code at the end of av_gen_search()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 22:27:02 +02:00
Michael Niedermayer
f73f68b894
utils: flush on successfull av_seek_frame_binary()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 22:26:13 +02:00
Mans Rullgard
41ac093f7e
swscale: fix signed shift overflows in ff_yuv2rgb_c_init_tables()
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-21 20:56:59 +01:00
Michael Niedermayer
db1347f66e
mpegts: cache information to speed up seeking.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 21:13:20 +02:00
Michael Niedermayer
27f7589ab1
seek: Fix av_gen_search() so that seeks outside max/min do not successfully seek to random
...
points but rather seek to the min/max.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 20:45:00 +02:00
Anton Khirnov
5dd35b43f1
Move timefilter code from lavf to lavd.
...
It's only used in the JACK device.
Fixes linking shared lavd with JACK enabled.
2011-10-21 20:29:05 +02:00
Raivo Hool
b06df70755
mov: add support for hdvd and pgapmetadata atoms
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-21 20:29:05 +02:00
Raivo Hool
5da35d1cb3
mov: rename function _stik, some indentation cosmetics
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-21 20:29:05 +02:00
Raivo Hool
80951f5cf6
mov: rename function _int8 to remove ambiguity, some indentation cosmetics
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-21 20:29:02 +02:00
Raivo Hool
94395fbf8c
mov: parse the gnre atom
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-21 19:50:51 +02:00
Justin Ruggles
95891804bf
mp3on4: check for allocation failures in decode_init_mp3on4()
2011-10-21 12:34:43 -04:00
Justin Ruggles
180bf988bc
mp3on4: create a separate flush function for MP3onMP4.
...
The correct decoder private context needs to be used.
This fixes mp3on4 playback and seeking in avplay.
2011-10-21 12:33:15 -04:00
Justin Ruggles
53c8443ad2
mp3on4: ensure that the frame channel count does not exceed the codec channel
...
count.
This also allows for checking output data size based on the actual
number of channel instead of the maximum number of channels.
2011-10-21 12:32:35 -04:00
Justin Ruggles
1183d6cd98
mp3on4: set channel layout
2011-10-21 12:29:51 -04:00
Justin Ruggles
fff0f831e0
mp3on4: fix the output channel order
2011-10-21 12:29:51 -04:00
Justin Ruggles
f507dd067a
mp3on4: allocate temp buffer with av_malloc() instead of on the stack.
...
Avoids allocating unnecessary memory and ensures proper alignment.
2011-10-21 12:29:51 -04:00
Justin Ruggles
cb72230dfa
mp3on4: copy MPADSPContext from first context to all contexts.
...
Fixes segfault when decoding multi-channel MP3onMP4 files.
2011-10-21 12:29:51 -04:00
Michael Niedermayer
7846280d1d
mpegts: assert position in dts reading code.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 18:06:18 +02:00
Michael Niedermayer
de9862a95e
mpegts: add and use mpegts_get_dts()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 18:06:18 +02:00
Michael Niedermayer
04ac0d7994
mpegts: fix type of argument of mpegts_resync()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 18:06:18 +02:00
Justin Ruggles
aad3429d4e
fmtconvert: port float_to_int16_interleave() 2-channel x86 inline asm to yasm
2011-10-21 10:13:05 -04:00
Justin Ruggles
4e8e262476
fmtconvert: port int32_to_float_fmul_scalar() x86 inline asm to yasm
2011-10-21 10:13:05 -04:00
Justin Ruggles
185142a5ea
fmtconvert: check compile-time x86 instruction set flags
2011-10-21 10:13:05 -04:00
Justin Ruggles
708ab7dd69
fmtconvert: port float_to_int16() x86 inline asm to yasm
2011-10-21 10:13:05 -04:00
Justin Ruggles
45add995de
fmtconvert: fix and extend documentation for float_interleave()
2011-10-21 10:13:05 -04:00
Justin Ruggles
ef74e39799
flvenc: store delay and last_ts per-stream.
2011-10-21 09:43:11 -04:00
Mans Rullgard
b034c95cc1
h264: fix ppc/altivec build
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-21 12:49:01 +01:00
Jean First
b8bb9c0267
Enable multithreding when decoding with libopenjpeg
...
Enable multithreding when decoding with libopenjpeg
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-10-21 01:07:22 -07:00
Ronald S. Bultje
27209bb108
h264: mark some MC functions with av_always_inline instead of inline.
...
This actually causes them to be inlined, leading to a significant
speedup (1-1.5% in my measurements).
2011-10-21 01:05:10 -07:00
Ronald S. Bultje
05fb63f5a0
H264: have hl_motion() and its callees take a chroma_idc argument.
2011-10-21 01:05:07 -07:00
Paul Flinders
e2c213328b
deshake: add documentation in filters.texi
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-10-21 10:02:35 +02:00
Ronald S. Bultje
c2d337429c
H264: change weight/biweight functions to take a height argument.
...
Neon parts by Mans Rullgard <mans@mansr.com >.
2011-10-21 01:00:45 -07:00
Ronald S. Bultje
229d263cc9
Support for lossless and inter H264 4:2:2.
2011-10-21 01:00:45 -07:00
Baptiste Coudurier
76741b0e56
h264: 4:2:2 intra decoding support
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-10-21 01:00:41 -07:00
Ronald S. Bultje
dc49bf1270
sws/pixfmt/pixdesc: add support for yuv420p9le/be.
2011-10-21 00:58:01 -07:00
Ronald S. Bultje
e85297e0e7
Revert d1d421cbc0: change to fate-lavfi-crop_scale.
2011-10-21 00:21:31 -07:00
Ronald S. Bultje
ce42a04884
vp8: fix up handling of segmentation_maps in reference frames.
...
Associate segmentation_map[] with reference frame, rather than
decoding instance. This fixes cases where the map would be free()'ed
on e.g. a size change in one thread, whereas the other thread was
still accessing it. Also, it fixes cases where threads overwrite data
that is still being referenced by the previous thread, who thinks that
it's part of the frame previously decoded by the next thread.
2011-10-21 00:17:58 -07:00
Ronald S. Bultje
8305041e13
swscale: prevent overflow in coefficient calculation.
2011-10-21 00:14:11 -07:00
Michael Niedermayer
ce253edf4e
fix shared lib build
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 02:27:33 +02:00
Michael Niedermayer
dd8ffc1925
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (47 commits)
lavc: hide private symbols.
lavc: deprecate img_get_alpha_info().
lavc: use avpriv_ prefix for ff_toupper4.
lavc: use avpriv_ prefix for ff_copy_bits and align_put_bits.
lavc: use avpriv_ prefix for ff_ac3_parse_header.
lavc: use avpriv_ prefix for ff_frame_rate_tab.
lavc: rename ff_find_start_code to avpriv_mpv_find_start_code
lavc: use avpriv_ prefix for ff_split_xiph_headers.
lavc: use avpriv_ prefix for ff_dirac_parse_sequence_header.
lavc: use avpriv_ prefix for some dv symbols used in lavf.
lavc: use avpriv_ prefix for some flac symbols used in lavf.
lavc: use avpriv_ prefix for some mpeg4audio symbols used in lavf.
lavc: use avpriv_ prefix for some mpegaudio symbols used in lavf.
lavc: use avpriv_ prefix for ff_aac_parse_header().
lavf: hide private symbols.
lavf: use avpriv_ prefix for some dv functions.
lavf: use avpriv_ prefix for ff_new_chapter().
avcodec: add CODEC_CAP_DELAY note to avcodec_decode_audio3() documentation
avcodec: clarify the CODEC_CAP_DELAY note in avcodec_decode_video2()
avcodec: clarify documentation of CODEC_CAP_DELAY
...
Conflicts:
configure
doc/general.texi
libavcodec/Makefile
libavcodec/aacdec.c
libavcodec/allcodecs.c
libavcodec/avcodec.h
libavcodec/dv.c
libavcodec/dvdata.c
libavcodec/dvdata.h
libavcodec/libspeexenc.c
libavcodec/mpegvideo.c
libavcodec/version.h
libavformat/avidec.c
libavformat/dv.c
libavformat/dv.h
libavformat/flvenc.c
libavformat/mov.c
libavformat/mp3enc.c
libavformat/oggparsespeex.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 02:01:26 +02:00
Michael Niedermayer
44a2bb75a7
swr: Fix swresample.c:293:5: warning: passing argument 2 of ‘fill_audiodata’ from incompatible pointer type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 00:36:00 +02:00
Michael Niedermayer
36e5e51ae3
swr: remove unused variable.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 00:34:37 +02:00
Michael Niedermayer
a911177276
swr: Fix assignment discards qualifiers from pointer target type warning.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 00:33:04 +02:00
Michael Niedermayer
03e56a2ad9
resample2: Fix passing argument from incompatible pointer type warnings.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 00:31:20 +02:00
Michael Niedermayer
e6459720b5
swr: Mark src as const in swr_resample()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 00:30:41 +02:00
Michael Niedermayer
76dbb0905a
rematrix: Fix several passing argument from incompatible pointer type warnings.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 00:28:03 +02:00
Lou Logan
4aeaba4757
presets: spelling error in libvpx 1080p50_60
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-21 00:20:33 +02:00
Marton Balint
8085a5b7cd
ffplay: reallocate SDL overlays for OSX when changing full screen
...
Fixes missing blue channel when switching from/to fullscren on OSX and libsdl
1.2.14. Fixes issue 548. Thanks for Jean First for the original patch and
for testing.
Signed-off-by: Marton Balint <cus@passwd.hu >
2011-10-20 23:12:27 +02:00
Michael Niedermayer
b4d0e7804d
aacdec:only overwrite configuration if theres a actual change.
...
Fixes Ticket574
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-20 21:57:52 +02:00
Anton Khirnov
65d3176aaf
lavc: hide private symbols.
...
Overhead as reported by rbelf-size goes from 90860 to 20204.
2011-10-20 21:06:58 +02:00
Anton Khirnov
586657c20a
lavc: deprecate img_get_alpha_info().
...
It's never been touched or used in any way since it was added in 2003
and only works for PIX_FMT_PAL8, which makes me conclude that nobody's
ever used it.
2011-10-20 21:06:58 +02:00
Anton Khirnov
0842d58998
lavc: use avpriv_ prefix for ff_toupper4.
...
It's used in lavf.
2011-10-20 21:06:58 +02:00
Anton Khirnov
9f51c682ee
lavc: use avpriv_ prefix for ff_copy_bits and align_put_bits.
...
They are used in lavf.
2011-10-20 21:06:58 +02:00
Anton Khirnov
6f89efeaa7
lavc: use avpriv_ prefix for ff_ac3_parse_header.
...
It's used in lavf.
2011-10-20 21:06:58 +02:00
Anton Khirnov
9138a130cd
lavc: use avpriv_ prefix for ff_frame_rate_tab.
...
It's used in lavf.
2011-10-20 21:06:58 +02:00
Anton Khirnov
773375c3d0
lavc: rename ff_find_start_code to avpriv_mpv_find_start_code
...
It's used in lavf.
2011-10-20 21:06:58 +02:00
Anton Khirnov
357db4c263
lavc: use avpriv_ prefix for ff_split_xiph_headers.
...
It's used in lavf.
2011-10-20 21:06:58 +02:00
Anton Khirnov
2361e59b98
lavc: use avpriv_ prefix for ff_dirac_parse_sequence_header.
...
It's used in lavf.
2011-10-20 21:06:58 +02:00
Anton Khirnov
242c73a0fd
lavc: use avpriv_ prefix for some dv symbols used in lavf.
...
Specifically, ff_dv_frame_profile and ff_dv_codec_profile.
2011-10-20 21:06:58 +02:00
Anton Khirnov
d9cca9fc6a
lavc: use avpriv_ prefix for some flac symbols used in lavf.
...
Specifically, ff_flac_parse_streaminfo, ff_flac_is_extradata_valid and
ff_flac_parse_block_header
2011-10-20 21:06:58 +02:00
Anton Khirnov
59a9a23581
lavc: use avpriv_ prefix for some mpeg4audio symbols used in lavf.
...
Specifically, ff_mpeg4audio_sample_rates, ff_mpeg4audio_get_config and
ff_copy_pce_data
2011-10-20 21:06:57 +02:00
Anton Khirnov
82ab61f901
lavc: use avpriv_ prefix for some mpegaudio symbols used in lavf.
...
Specifically, ff_mpa_freq_tab, ff_mpa_bitrate_tab, ff_mpa_decode_header,
ff_mpegaudio_decode_header.
2011-10-20 21:06:57 +02:00
Anton Khirnov
73ae27e17b
lavc: use avpriv_ prefix for ff_aac_parse_header().
...
It's used in lavf.
2011-10-20 21:06:57 +02:00
Anton Khirnov
8d74bf17c6
lavf: hide private symbols.
...
Overhead as reported by rbelf-size goes from 40147 to 20877.
2011-10-20 21:06:45 +02:00
Anton Khirnov
ab88b25f99
lavf: use avpriv_ prefix for some dv functions.
...
They are used in libavdevice.
2011-10-20 20:57:23 +02:00
Anton Khirnov
1fa395e471
lavf: use avpriv_ prefix for ff_new_chapter().
...
It's used in libavdevice.
2011-10-20 20:57:23 +02:00
Justin Ruggles
68d3aec819
avcodec: add CODEC_CAP_DELAY note to avcodec_decode_audio3() documentation
2011-10-20 13:30:08 -04:00
Justin Ruggles
352fc5f128
avcodec: clarify the CODEC_CAP_DELAY note in avcodec_decode_video2()
2011-10-20 13:30:08 -04:00
Justin Ruggles
ffeeae923b
avcodec: clarify documentation of CODEC_CAP_DELAY
2011-10-20 13:30:08 -04:00
Justin Ruggles
1baa25c7da
shorten: fix end-of-stream decoding.
...
enable CODEC_CAP_DELAY to flush any remaining frames in the buffer.
Stop decoding when the FN_QUIT command is found so that a trailing seek table
isn't decoded as a normal frame.
decode all channels in the same call to avcodec_decode_audio3() so that
decoding will not stop after the first channel of the last frame.
Updated FATE reference. More valid audio is now decoded.
2011-10-20 13:09:46 -04:00
Justin Ruggles
d03f9f65c0
shorten: do not use block size to determine whether to read the header.
2011-10-20 13:09:46 -04:00
Justin Ruggles
882dafe9b6
shorten: check output buffer size before decoding
2011-10-20 13:09:26 -04:00
Justin Ruggles
bd7f7d6c78
shorten: use av_clip_int16() for output sample clipping
2011-10-20 13:09:26 -04:00
Justin Ruggles
069ada46c1
shorten: use bytestream functions to decode the embedded WAVE header
2011-10-20 13:09:25 -04:00
Justin Ruggles
c25762fcf1
shorten: add some comments
2011-10-20 13:09:25 -04:00
Justin Ruggles
15d146c958
shorten: merge decoding of FN_DIFF* subblocks into decode_subframe_lpc()
2011-10-20 13:09:25 -04:00
Justin Ruggles
034f42dfce
cosmetics: remove some needless commented-out stuff
2011-10-20 13:09:25 -04:00
Justin Ruggles
cfa317f67d
shorten: validate block size
2011-10-20 13:09:25 -04:00
Justin Ruggles
45d7d31fb9
shorten: move declaration of 'ret' to top of shorten_decode_frame()
2011-10-20 13:09:25 -04:00
Justin Ruggles
a8055992c0
shorten: pass on error value from allocate_buffers() instead of returning -1
2011-10-20 13:09:25 -04:00
Justin Ruggles
9e5e2c2d01
shorten: check for realloc failure
2011-10-20 13:09:25 -04:00
Justin Ruggles
fe31a637f1
shorten: move decoding of prediction order and applying of global offset to
...
decode_subframe_lpc().
2011-10-20 13:09:25 -04:00
Justin Ruggles
0f97c5014b
shorten: only calculate output size when returning decoded samples, otherwise
...
just set data_size to zero.
2011-10-20 13:09:25 -04:00
Justin Ruggles
e9e37f2d10
cosmetics: reindent
2011-10-20 13:09:25 -04:00
Justin Ruggles
9000b6db22
shorten: separate processing of audio commands from non-audio commands
2011-10-20 13:09:25 -04:00
Justin Ruggles
07745485ef
shorten: skip some fields in the WAV header embedded in the shorten header.
...
fixes incorrect bitrate reporting and potential misreporting of the number of
channels.
2011-10-20 13:09:25 -04:00
Justin Ruggles
a1f7885a8b
shorten: split reading of file header into a separate functions
2011-10-20 13:09:25 -04:00
Justin Ruggles
9ef6c7977f
avformat: do not require frame_size for Speex.
...
Having it there forces decoding of a frame in order to get frame_size, but it
is not really needed for proper demuxing or decoding.
2011-10-20 13:06:16 -04:00
Justin Ruggles
0e69c04773
ogg/speex: set correct timestamp and duration for the first packet.
...
The first timestamp should be negative due to delay.
Also, do not set AVCodecContext.frame_size unnecessarily.
2011-10-20 13:06:16 -04:00
Justin Ruggles
4ee247a2bd
flvenc: check packet duration in speex using timestamps
...
Using AVCodecContext.frame_size is not reliable.
2011-10-20 13:06:16 -04:00
Justin Ruggles
b606a01759
libspeexenc: add libspeex encoder
2011-10-20 13:06:15 -04:00
Justin Ruggles
52375ba567
flvenc: adjust for negative DTS for all codecs, not just H.264
2011-10-20 13:06:15 -04:00
Michael Niedermayer
e6e86e64c3
presets: favor vprofile over profile to avoid conflicts with audio profiles
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-20 16:36:52 +02:00
Diego Biurrun
265980dabc
x86: Move some variable declarations below the appropriat #ifdef.
...
This avoids some unused variable warnings with YASM disabled.
2011-10-20 16:19:27 +02:00
Diego Biurrun
2cb7c81669
x86: Fix linking of ProRes DSP ASM with YASM disabled.
2011-10-20 16:19:13 +02:00
Stefano Sabatini
43fce2214b
lavfi: add missing header mulitple-inclusion guard in transform.h
2011-10-20 15:59:20 +02:00
Stefano Sabatini
99d48b07d1
lavfi/transform.h: apply misc doxy cosmetical changes
2011-10-20 15:59:12 +02:00
Michael Niedermayer
8daf04add4
aacdec: support chan config =1 stereo files
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-20 13:54:54 +02:00
Michael Niedermayer
d0492578c8
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
presets: rename presets directory
lavc: make avcodec_get_context_defaults3 "officially" public
lavf: replace av_new_stream->avformat_new_stream part II.
lavf,lavd: replace av_new_stream->avformat_new_stream part I.
lavf: add avformat_new_stream as a replacement for av_new_stream.
Use correct scaling table for bwd-pred MVs in second B-field
Ut Video decoder
Makefile: change presets extension to .avpreset
lavfi: add rgbtestsrc source, ported from MPlayer libmpcodecs
lavfi: add testsrc source
AVOptions: add documentation.
presets: update libx264 ffpresets
Conflicts:
Changelog
doc/APIchanges
doc/ffmpeg.texi
ffpresets/libx264-ipod320.ffpreset
ffpresets/libx264-ipod640.ffpreset
ffserver.c
libavcodec/avcodec.h
libavcodec/options.c
libavcodec/version.h
libavdevice/libdc1394.c
libavfilter/avfilter.h
libavfilter/vsrc_testsrc.c
libavformat/flvdec.c
libavformat/riff.c
libavformat/version.h
libavformat/wtv.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-20 02:34:51 +02:00
Luca Barbato
796cd225da
pulse: cosmetics
2011-10-19 16:16:21 -07:00
Luca Barbato
f5b0938169
pulse: introduce pulseaudio input
...
It currently use the simple api and is using the latency information
provided only to offset the stream start.
2011-10-19 15:43:30 -07:00
Paul Flinders
9ef714328c
deshake: limit deshake to specific area to search for motion vectors.
2011-10-20 00:39:34 +02:00
Michael Niedermayer
1373923ddf
v210dec: remove debuging #include
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-20 00:35:45 +02:00
Diego Biurrun
463ea05ab2
avcodec.h: Move G.729/G.723 CODEC_IDs to the correct section.
...
This is done conditional to the libavcodec version to avoid ABI breaks.
2011-10-20 00:19:19 +02:00
Diego Biurrun
26af0953c0
Only test-compile w32pthreads.h if W32THREADS are available.
...
This fixes 'make checkheaders' on non-W32THREADS systems.
2011-10-20 00:18:29 +02:00
Laurent Aimar
bc38e83793
mpegts: do not return from ff_mpegts_parse_packet() after having seen the first PMT
...
It prevents leaving the AVPacket uninitialized.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-19 23:28:05 +02:00
Laurent Aimar
49ec0c818d
mpegts: fix return value when enough ts packets have been parsed or when the first PMT has been seen.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-19 23:28:05 +02:00
Matthew Einhorn
e662b263d9
Fixes avpicture_layout to not write past buffer end.
...
avpicture_get_size() returns the size of buffer required for avpicture_layout.
For pseudo-paletted formats (gray8...) this size does not include the palette.
However, avpicture_layout doesn't know this and still writes the palette. Consequently,
avpicture_layout writes passed the length of the buffer. This fixes it
by fixing avpicture_layout so that it doesn't write the palette for these formats.
Signed-off-by: Matthew Einhorn <moiein2000@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-19 23:28:04 +02:00
Michael Niedermayer
e31c5ebe11
mpegtsenc: fix handling of large audio packets
...
(sorry i have no sample, just a user report)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-19 23:04:31 +02:00
Janne Grunau
8096fdf0b6
presets: rename presets directory
2011-10-19 21:20:17 +02:00
Clément Bœsch
057161d39b
mpeg12: remove '[' and ']' around last timecode field to match std representation.
2011-10-19 20:56:02 +02:00
Kieran Kunhya
44d27736fc
Add V210 SIMD
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-19 20:26:55 +02:00
Kieran Kunhya
b1766c170c
Move x264asm to libavutil.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-19 20:26:55 +02:00
Reimar Döffinger
6ea6ff053a
Do not call parse_keyframes_index with NULL stream.
...
Seems to fix trac issue #569 .
Sample is unfortunately not available, but it might be caused by
an index existing for non-existing audio stream (?).
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-10-19 18:54:58 +02:00
Anton Khirnov
f0eeff708a
lavc: make avcodec_get_context_defaults3 "officially" public
...
Deprecate avcodec_get_context_defaults/avcodec_get_context_defaults2
2011-10-19 17:02:11 +02:00
Anton Khirnov
84ad31ff18
lavf: replace av_new_stream->avformat_new_stream part II.
...
Manual replacements are done in this commit.
In many cases, the id is some constant made up number (e.g. 0 for video
and 1 for audio), which is then not used in the demuxer for anything.
Those ids are removed.
2011-10-19 17:02:11 +02:00
Anton Khirnov
3b3bbdd3e6
lavf,lavd: replace av_new_stream->avformat_new_stream part I.
...
Trivial replacements with sed are done in this commit:
sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/'
2011-10-19 17:02:11 +02:00
Anton Khirnov
569129a6dc
lavf: add avformat_new_stream as a replacement for av_new_stream.
...
It takes a codec parameter, thus enabling codec-specific defaults.
2011-10-19 17:02:11 +02:00
Mashiat Sarker Shakkhar
73447eb4bd
Use correct scaling table for bwd-pred MVs in second B-field
...
When scaling backward predicted MVs in second B-field, the scaling table is
opposite of that for P field pictures; i.e. first field P table will be used as
second field B table and second field P table will be used as first field B
table. This is not documented in the spec, but exists in the ref. decoder.
This fixes SA10139.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-19 16:42:47 +03:00
Carl Eugen Hoyos
891f76b0a8
Fix AMR block length for no data mode when muxing mov.
...
Fixes ticket #550 .
This had been analyzed and reported by Igor Levin, igor d levin comverse com
2011-10-19 11:20:48 +02:00
Kostya Shishkov
0d8506b8c5
Ut Video decoder
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-19 08:24:19 +02:00
Anton Khirnov
df3ca34a56
Makefile: change presets extension to .avpreset
...
Fixes make install.
2011-10-19 07:50:12 +02:00
Stefano Sabatini
ec2ac9271c
lavfi: add rgbtestsrc source, ported from MPlayer libmpcodecs
...
The licence was changed from GPL to LGPL with explicit approval from
the original author.
See thread:
Subject: [FFmpeg-devel] [PATCH] lavfi: add rgbtestsrc source,
ported from MPlayer libmpcodecs
Date: Mon, 11 Jul 2011 16:32:41 +0200
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-19 07:09:08 +02:00
Stefano Sabatini
0244879f30
lavfi: add testsrc source
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-19 07:08:42 +02:00
Anton Khirnov
4e64c4d51a
AVOptions: add documentation.
2011-10-19 06:59:58 +02:00
Anton Khirnov
1279098d7b
presets: update libx264 ffpresets
...
Use the native libx264 options and rename all the preset to use
the avpreset extension.
2011-10-19 06:59:58 +02:00
Michael Niedermayer
f0ff822ccb
mpeg12dec: Support invalid field motion types,
...
Fixes Ticket539
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-19 03:29:15 +02:00
Michael Niedermayer
d6c21c7a64
mpeg12dec: assert no field frame mess
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-19 03:28:25 +02:00
Michael Niedermayer
be401448e5
mov: Raise ctts dts_shift threshold by 1
...
This fixes issue2246neu.mp4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-19 02:56:41 +02:00
Michael Niedermayer
70d9fb6963
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
sunrast: Check for out of bounds reads
lavc: rename AV_ER_* options to AV_EF_* and rename AGGRESSIVE to BUFFER
lavc: replace API-bump-triggered AVCodecContext field change with shorter, non-conflicting name
Add libvpx presets.
doc/avtools: add forgotten part to stream specifiers description
swscale: prevent overflow during initialization
g722: Add a fate test for the encoder
fate: Add a target for creating a 16000 Hz mono synthetic audio file
macosx: use the default surface on newer sdl
Conflicts:
ffplay.c
libavcodec/avcodec.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-19 02:08:59 +02:00
Michael Niedermayer
35674a29b7
vf_mp: Fix several incompatible pointer type warnings.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-19 00:05:30 +02:00
Michael Niedermayer
cb3034e0d1
vf_unsharp: Fix false ‘src2’ may be used uninitialized in this function warning.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-19 00:04:33 +02:00
Michael Niedermayer
e73cc2819e
src_movie: Fix incompatible pointer type warning.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-19 00:03:56 +02:00
Michael Niedermayer
5ed20cfeaf
vf_deshake: Fix cast discards qualifiers from pointer target type warning.
...
And simplify the code in the process.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-19 00:03:13 +02:00
Michael Niedermayer
e96aa8d1a0
vf_pixdesctest: Fix incompatible pointer type warning.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-18 23:59:59 +02:00
Michael Niedermayer
abe9c54f14
yadif: Fix assignment from incompatible pointer type warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-18 23:59:20 +02:00
Michael Niedermayer
2982b02b79
vsrc_buffer: FIx incompatible pointer type warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-18 23:58:41 +02:00
Laurent Aimar
d97ca425ef
sunrast: Check for out of bounds reads
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-18 22:49:43 +02:00
Stefano Sabatini
ffb7c6e5ba
aevalsrc: enclose example arguments in double quotes
...
More paste friendly, consistent with other examples.
2011-10-18 19:41:47 +02:00
Clément Bœsch
2f468826ee
ffprobe: prefer av_freep() over av_free() for global print_format option.
...
It could be re-used for instance in case ffprobe would support multiple
input files.
2011-10-18 19:11:05 +02:00
Stefano Sabatini
f4eeb000bf
ffprobe: fix weird align
2011-10-18 18:58:32 +02:00
Stefano Sabatini
2b72067406
asrc_aevalsrc: apply misc cleanup in the options array
...
Prefer AV_OPT_* over FF_OPT, vertically align fields.
2011-10-18 18:52:50 +02:00
Stefano Sabatini
3f20eada80
asrc_aevalsrc: prefer av_strtok() over strtok_r()
2011-10-18 18:46:58 +02:00
Stefano Sabatini
eae3a86e57
lavfi: update minor number and add Changelog entry after aevalsrc addition
2011-10-18 18:46:58 +02:00
Stefano Sabatini
424655f749
lavu: update minor number and add APIchanges entry after recent av_strtok() addition
2011-10-18 18:46:52 +02:00
Stefano Sabatini
36c06b0913
lavfi: add audio eval signal source
2011-10-18 18:21:04 +02:00
Stefano Sabatini
b874e2d0a0
ffprobe: prefer av_strtok() over av_get_token() for parsing print_format string
...
Simplify, and avoid the need for multiple escaping levels.
2011-10-18 18:21:03 +02:00
Stefano Sabatini
b35e9e19e9
lavu: add av_strtok()
...
The function strtok_r() is part of the POSIX.1 specification, but is not
available on some platforms. We provide an internal implementation, so we
do not need to rely on a platform implementation.
2011-10-18 18:21:03 +02:00
Stefano Sabatini
88bdf7471f
ffprobe: move up ESCAPE_CHECK_SIZE and ESCAPE_REALLOC_BUF macros
...
So they can be used by other escaping routines.
2011-10-18 18:21:03 +02:00
Stefano Sabatini
2f3b028c71
ffprobe: redesign json_escape_str(), to make use of a global buffer
...
The new code avoids to call av_malloc/av_free when escaping is needed
(possibly faster), avoids an integer overflow in case of a huge
string, and provides feedback when a string cannot be escaped.
When a string cannot be escaped, a special string is printed instead.
2011-10-18 18:21:03 +02:00
Michael Niedermayer
284aa07932
flv: Initialize initial frame to 16
...
Fixes Ticket563
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-18 14:56:59 +02:00
Michael Niedermayer
73fb23dc5a
mpeg12_parser: make mpegvideo_split() more robust
...
I just found this issue while debuging, i dont have a testcase.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-18 14:08:06 +02:00
Michael Niedermayer
4e3303cf31
mpeg12dec: dont consider parsing extradata as having achived sync.
...
Fixes Ticket67
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-18 13:56:29 +02:00
Dustin Brody
6b1f93face
lavc: rename AV_ER_* options to AV_EF_* and rename AGGRESSIVE to BUFFER
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-18 12:28:30 +02:00
Dustin Brody
204e6132d2
lavc: replace API-bump-triggered AVCodecContext field change with shorter, non-conflicting name
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-18 12:28:22 +02:00
Chris Kennedy
c108a4aa1e
fix memleak in packet corrupt dropping code
2011-10-18 12:00:48 +02:00
Anton Khirnov
075d6439f1
Add libvpx presets.
...
Based on a patch by James Zern jzern AT google DOT com
2011-10-18 11:40:19 +02:00
Anton Khirnov
a5f05e52e4
doc/avtools: add forgotten part to stream specifiers description
2011-10-18 11:40:14 +02:00
Ronald Bultje
d1d421cbc0
swscale: prevent overflow during initialization
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-18 10:29:49 +02:00
Martin Storsjö
6e6003a4d2
g722: Add a fate test for the encoder
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-18 10:45:22 +03:00
Martin Storsjö
73dbc89cbb
fate: Add a target for creating a 16000 Hz mono synthetic audio file
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-18 10:45:17 +03:00
Luca Barbato
ec5e521298
macosx: use the default surface on newer sdl
...
SDL 1.2.14 works fine with default colorspace on macosx and seems
to have some issues with 24bit surfaces and resize in addition.
2011-10-17 22:27:12 -07:00
Michael Niedermayer
c4e02d3432
avidec: Dont switch to NI mode if there is no index.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-18 03:34:57 +02:00
Carl Eugen Hoyos
39f6733f05
Do not try to parse empty strf tags.
2011-10-18 03:30:03 +02:00
Michael Niedermayer
fae714a9fb
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avconv: add presets
rtsp: Expose the flag options via private AVOptions for sdp and rtp, too
rtsp: Make the rtsp flags avoptions set via a define
rtpenc: Set a default video codec
avoptions: Fix av_opt_flag_is_set
rtp: Fix ff_rtp_get_payload_type
doc: Update the documentation on setting options for RTSP
rtsp: Remove the separate filter_source variable
rtsp: Accept options via private avoptions instead of URL options
rtsp: Simplify AVOption definitions
rtsp: Merge the AVOption lists
lavfi: port libmpcodecs delogo filter
lavfi: port boxblur filter from libmpcodecs
lavfi: add negate filter
lavfi: add LUT (LookUp Table) generic filters
AVOptions: don't segfault on NULL parameter in av_set_options_string()
avio: Check for invalid buffer length.
mpegenc/mpegtsenc: add muxrate private options.
lavf: deprecate AVFormatContext.file_size
mov: add support for TV metadata atoms tves, tvsn and stik
Conflicts:
Changelog
doc/filters.texi
doc/protocols.texi
libavfilter/Makefile
libavfilter/allfilters.c
libavfilter/avfilter.h
libavfilter/formats.c
libavfilter/internal.h
libavfilter/vf_boxblur.c
libavfilter/vf_delogo.c
libavfilter/vf_lut.c
libavformat/mpegtsenc.c
libavformat/utils.c
libavformat/version.h
libavutil/opt.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-18 01:54:40 +02:00
Compn
9be937d38d
changelog: libutvideo wrapper
...
http://umezawa.dyndns.info/archive/utvideo/
2011-10-17 19:12:48 -04:00
Derek Buitenhuis
1de357d6da
libutvideo: Add Ut Video Decoder Wrapper
...
Add a wrapper for libutvideo's decoder.
This supports decoding the following FOURCCs:
ULY0 - 4:2:0 YCbCr
ULY2 - 4:2:2 YCbCr
ULRG - RGB
ULRA - RGBA
Also, bump version.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-17 23:44:12 +02:00
Michael Niedermayer
fe87b2e79c
parseutils: fix various cast qualifier warnings.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-17 22:57:48 +02:00
Michael Niedermayer
8aed90958d
dict: fix assignment discards qualifiers from pointer target type warnings.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-17 22:56:13 +02:00
Michael Niedermayer
68eb35b886
avstring: fix return discards qualifiers from pointer target type.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-17 22:55:00 +02:00
Alexandra Khirnova
3ec344626c
avconv: add presets
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-17 22:24:17 +02:00
Martin Storsjö
51369f2891
rtsp: Expose the flag options via private AVOptions for sdp and rtp, too
...
This allows setting the filter_src option for these demuxers, too,
which wasn't possible at all before (where the option only was set
via URL parameters for RTSP).
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-17 22:02:31 +03:00
Martin Storsjö
3a6765fb5d
rtsp: Make the rtsp flags avoptions set via a define
...
This helps sharing these options with the sdp and rtp demuxers.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-17 22:02:30 +03:00
Martin Storsjö
9f938ca5e6
rtpenc: Set a default video codec
...
avconv doesn't map video streams to a muxer without specifying a
manual stream mapping if the default video codec is CODEC_ID_NONE.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-17 22:02:20 +03:00
Michael Niedermayer
107460c1e9
examples/decoding_encoding.c: test mpeg1 and h264
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-17 20:36:03 +02:00
Martin Storsjö
299234a0a9
avoptions: Fix av_opt_flag_is_set
...
With the changes in 3b3ea34655 ,
"Remove all uses of deprecated AVOptions API", av_opt_flag_is_set
was broken, since it now uses av_opt_find, which doesn't return
named constants unless a unit to look for the constant in is given.
This broke enabling LATM encapsulated AAC output in RTP.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-17 21:35:41 +03:00
Michael Niedermayer
65e32eea73
examples/decoding_encoding.c: silence compiler warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-17 20:23:24 +02:00
Michael Niedermayer
98140abe85
examples/decoding_encoding.c: set a codec private option to demonstrate how to do that
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-17 20:22:45 +02:00
Michael Niedermayer
82d9fafbb8
examples/decoding_encoding.c: switch to h264
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-17 20:22:07 +02:00
Martin Storsjö
2e69dd66b6
rtp: Fix ff_rtp_get_payload_type
...
It was broken in 3b3ea34655
"Remove all uses of deprecated AVOptions API", where any
presence of a payload_type AVOption caused its value to
be returned, even if it wasn't set (and thus had the default
-1 value).
This caused the RTP muxer to be broken.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-17 20:40:20 +03:00
Martin Storsjö
02a1a28c61
doc: Update the documentation on setting options for RTSP
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-17 19:57:50 +03:00
Martin Storsjö
9867aea524
rtsp: Remove the separate filter_source variable
...
Read it as a flag from the flags field instead.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-17 19:57:49 +03:00
Martin Storsjö
eca4850c6d
rtsp: Accept options via private avoptions instead of URL options
...
Eventually, the old way of passing options by adding
stuff to the URL can be dropped.
This avoids having to tamper with the user-specified URL to
pass options on the transport mode. This also works better
with redirects, since the options don't need to be parsed out
from the URL.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-17 19:57:48 +03:00
Martin Storsjö
2c9aa0247d
rtsp: Simplify AVOption definitions
...
Use defines for shortening common parts, omit the .dbl named
initializer (since it's the first element in the union).
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-17 19:57:47 +03:00
Martin Storsjö
17fff881e7
rtsp: Merge the AVOption lists
...
This eases adding options that are common for both. The
AV_OPT_FLAG_EN/DECODING_PARAM still indicates whether they belong
to the muxer or demuxer.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-17 19:57:45 +03:00
Stefano Sabatini
b157be1f38
lavfi: port libmpcodecs delogo filter
...
The ported filter supports named option parsing and more YUV formats.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-17 18:05:41 +02:00
Stefano Sabatini
ce6b6ef645
lavfi: port boxblur filter from libmpcodecs
...
With the following additions:
* support to gray format
* support to yuva420p format
* parametric luma/chroma/alpha radius
* consistency check on the radius values, avoid crashes with invalid values
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-17 18:05:41 +02:00
Stefano Sabatini
171868e25a
lavfi: add negate filter
...
This filter is a simple wrapper around the LUT filter.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-17 18:05:41 +02:00
Stefano Sabatini
8fe0c527f3
lavfi: add LUT (LookUp Table) generic filters
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-17 18:05:38 +02:00
Michael Niedermayer
0556eee43f
segmenter: loose rindex()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-17 16:51:48 +02:00
Michael Niedermayer
7613d3b8fe
mpeg4parser: fix initial qp precission
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-17 13:01:23 +02:00
Anton Khirnov
85afbb1d00
AVOptions: don't segfault on NULL parameter in av_set_options_string()
2011-10-17 10:42:21 +02:00
Clément Bœsch
efb1ce28b2
mpeg12: use drop_frame_flag to fix timecode debug format.
2011-10-17 09:14:36 +02:00
Alex Converse
ab2940691b
avio: Check for invalid buffer length.
2011-10-16 23:56:21 -07:00
Anton Khirnov
5a9ee3152b
mpegenc/mpegtsenc: add muxrate private options.
...
Deprecate AVFormatContext.mux_rate.
2011-10-17 08:39:53 +02:00
Anton Khirnov
c10731e78b
lavf: deprecate AVFormatContext.file_size
...
It's too unreliable to be useful. avio_size() should be called instead.
2011-10-17 08:25:38 +02:00
Raivo Hool
f055635313
mov: add support for TV metadata atoms tves, tvsn and stik
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-17 08:12:12 +02:00
Clément Bœsch
539399d4d1
AVOptions: rename remaining FF_OPT_TYPE_* to AV_OPT_TYPE_*.
2011-10-17 07:33:10 +02:00
Michael Niedermayer
dbd117240a
segment: Fix typo in segment_basename
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-17 03:39:19 +02:00
Michael Niedermayer
5cdcc44e41
segment: replace strdup() by av_strdup()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-17 03:39:13 +02:00
Michael Niedermayer
52673ab18a
Merge remote-tracking branch 'luzero/segment'
...
* luzero/segment:
segment: extend options
segment: basic pattern support and playlist output
segment: introduce segmented chain muxer
output-example: extend duration
ratecontrol: estimate twice the qscale values
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-17 03:38:47 +02:00
Michael Niedermayer
266172aaf9
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
w32threads: support for frame multithreading
avcodec: remove stray @deprecated comment
Conflicts:
libavcodec/utils.c
libavcodec/w32thread.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-17 02:29:40 +02:00
Michael Niedermayer
f524b1184e
Merge remote-tracking branch 'cus/stable'
...
* cus/stable:
ffplay: avoid window resize crash on osx with libsdl 1.2.14
ffplay: add delay multiple times to frame_timer if it is less than current time
ffplay: remove early frame drop functionality
ffplay: calculate target clock dynamically, make code more readable
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 23:42:41 +02:00
Michael Niedermayer
fd6af5375b
av_tempfile: dont try the current directory with mkstemp() unless we are on windows
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 22:32:41 +02:00
Michael Niedermayer
e8e13358ad
av_tempfile: change mode for fallback to 0600 to match mkstemp()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 22:13:20 +02:00
Michael Niedermayer
74dbb5388e
av_tempfile: Pass int log_offset, void *log_ctx
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 21:51:28 +02:00
Michael Niedermayer
482aabd59a
av_tempfile: fix error codes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 21:51:28 +02:00
Michael Niedermayer
4105335c98
av_tempfile: use O_EXCL
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 21:51:28 +02:00
Michael Niedermayer
797c2ef970
av_tempfile: try tempnam(NULL) first
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 21:51:28 +02:00
Michael Niedermayer
9329d36a3a
cache: add todo list
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 21:51:28 +02:00
Steven Walters
27237d524e
w32threads: support for frame multithreading
...
Replace our incomplete w32threads implementation with x264's pthreads
w32threads wrapper.
Relicensed to LGPL with kind permission by Pegasys Inc.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-16 21:45:16 +02:00
Stefano Sabatini
477718f40b
lavd/lavfi: compute and use the used samples buffer size for the output audio packet size
...
Do not assume the used size is the same of the allocated size, as it was
wrongly assumed. Fix audio playback when the two values differ.
2011-10-16 21:18:44 +02:00
Jean First
72776adfb9
ffplay: avoid window resize crash on osx with libsdl 1.2.14
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2011-10-16 19:28:22 +02:00
Marton Balint
abb0e4f637
ffplay: add delay multiple times to frame_timer if it is less than current time
...
If the picture queue is empty, or when the calculated delay is 0, frame_timer
is not increased but we are still displaying the old frame. When we eventually
get a frame, where the computed delay is positive, so we don't need to drop any
more frames, then it is best to update frame_timer to be as near as the current
time as it can.
This way we dont't have to wait several frames to add the necesarry delays to
frame_timer to reach current time, therefore there are no extra frame drops
after reaching a positive delay.
Signed-off-by: Marton Balint <cus@passwd.hu >
2011-10-16 19:21:01 +02:00
Marton Balint
d2d8e1e599
ffplay: remove early frame drop functionality
...
The current impementation of early frame drops (dropping frames before adding
them to the picture queue) has multiple problems:
Even after gettin A-V sync, the frame droping continues until
VideoState->skip_frames reaches 1, which can take a lot of time causing useless
additional frame drops and bad AV-sync. This issue can be easily triggered with
for example changing the audio stream.
Also video_refresh currenly does not handle early skipped frames in every case,
for example if we skip a frame, then the last frame duration calculation will
compute the duration of the sum of the skipped frame and the duration of the
frame before that, and in compute_target_delay we may multiply this unusually
big delay.
Signed-off-by: Marton Balint <cus@passwd.hu >
2011-10-16 19:21:01 +02:00
Marton Balint
4e268aae55
ffplay: calculate target clock dynamically, make code more readable
...
Since target clock is based on the current A-V delay, it is better calculate it
when we actually need it rather than when we put a picture in the picture
queue.
The patch also makes a code a bit more readable by renaming some delay
variables to duration, and converting compute_target_time to a delay
calculating function which does not modify the state. Factoring out the
iteration of the pictq to standalone function is also done in this patch.
Signed-off-by: Marton Balint <cus@passwd.hu >
2011-10-16 19:21:01 +02:00
Carl Eugen Hoyos
6bca574a98
Allow to overwrite input stream tags.
2011-10-16 19:05:11 +02:00
Mans Rullgard
b44522981c
avcodec: remove stray @deprecated comment
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-16 16:22:05 +01:00
Michael Niedermayer
02b651a7e3
cache: Fallback to using the cache size for AVSEEK_SIZE if the underlaying protocol has nothing better.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 17:12:37 +02:00
Michael Niedermayer
e9f62a8b2b
add cache protocol
...
This allows backward seeking on top of some non seekable streams.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 17:12:37 +02:00
Michael Niedermayer
5746f91036
av_tempfile: handle missing O_BINARY
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 17:12:37 +02:00
Michael Niedermayer
c9833fc33a
av_tempfile: fix alloc type for !HAVE_MKSTEMP
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 17:12:37 +02:00
Michael Niedermayer
885158c887
Move av_tempfile() into libavutil, it is a generically usefull thing and its small.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 17:12:37 +02:00
Carl Eugen Hoyos
7f16ec61e1
Do not warn about wrong channel layout if no channel layout is defined.
2011-10-16 17:12:53 +02:00
Carl Eugen Hoyos
55d44578c6
Support decoding ASP variant from QNAP Systems.
...
Fixes part of ticket #560 .
2011-10-16 10:30:24 +02:00
Michael Niedermayer
2eaa55375b
asf: export all the DRM stuff, some of it are human readable strings.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 05:04:48 +02:00
Michael Niedermayer
6322a31df3
asf: dont warn the user about digital sigantures, they should on their own not cause failure.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 04:44:42 +02:00
Michael Niedermayer
410c06d2f3
asf: export encryption information from asf.
...
This way user apps can choose to skip such content.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 04:41:11 +02:00
Michael Niedermayer
2822361ed1
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
prores: get correct size for coded V plane if alpha is present
prores: do not set pixel format on codec init
pthread: prevent updating AVCodecContext from itself in frame_thread_free
pthread: copy coded frame dimensions in update_context_from_thread
vp8: prevent read from uninitialized memory in decode_mvs
vp8: force reallocation in update_thread_context after frame size change
vp8: fix return value if update_dimensions fails
matroskadec: fix out of bounds write
adpcmdec: calculate actual number of output samples for each decoder.
adpcmdec: check remaining buffer size before decoding next block in the ADPCM IMA WAV decoder.
adpcmdec: do not terminate early in ADPCM IMA Duck DK3 decoder.
adpcmdec: remove unneeded buf_size==0 check.
adpcmdec: remove unneeded zeroing of *data_size
dnxhdenc: fixed signed multiplication overflow
Conflicts:
tests/ref/fate/prores-alpha
tests/ref/fate/truemotion1-24
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 04:02:09 +02:00
Michael Niedermayer
647ec6fc03
bit: require at least 1 frame for probing
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 02:43:36 +02:00
Michael Niedermayer
658c5209fb
idf: Improve idf_probe() so it doesnt succeed on 0 byte input
2011-10-16 02:38:02 +02:00
JULIAN GARDNER
3e01c9b547
dvbsubdec: cosmetic change on how xpos is passed around
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-16 02:06:31 +02:00
Stefano Sabatini
bca8bd99d0
af_ashowinfo: fix plane size computation for planar layout formats
...
+10l.
2011-10-16 01:58:31 +02:00
Stefano Sabatini
22137bb5c2
af_aresample: fix properties setting in the output buffer
...
In particular: set output timebase to 1/output_sample_rate, fix output
PTS computation, and do not forget to copy properties values from the
input buffer.
2011-10-16 00:52:23 +02:00
Stefano Sabatini
cc6b8c4b61
af_ashowinfo: adopt used plane size when computing the plane checksum
...
Fix checksum computation when the used plane size is different from the
allocated plane size, as it was wrongly assumed.
2011-10-16 00:51:36 +02:00
Michael Niedermayer
7d2e4673b1
dvbsubdec: Fix 0xf0 end detection
...
Based on a change by JULIAN GARDNER
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-15 21:28:43 +02:00
JULIAN GARDNER
294ea2cfc6
dvbsub: add comments
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-15 20:30:54 +02:00
JULIAN GARDNER
8a6799d205
dvbsub: add dvb_encode_rle8()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-15 20:30:18 +02:00
JULIAN GARDNER
7fa1f02ce2
dvbsub: Move setting of *dvb_encode_rle() up
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-15 20:28:51 +02:00
JULIAN GARDNER
d5f4857a73
dvbsubdec:dvbsub_display_end_segment() move main loop under if() as its useless if false.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-15 20:16:31 +02:00
Carl Eugen Hoyos
5a563c6319
Support H264 from QNAP Systems.
2011-10-15 18:28:32 +02:00
Mans Rullgard
91038cdbd1
prores: get correct size for coded V plane if alpha is present
...
The size check must be updated to take into account both manners
in which v_data_size might be set.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-15 14:59:44 +01:00
Mans Rullgard
cd14e297e6
prores: do not set pixel format on codec init
...
The pixel format is not known until the frame header is parsed.
Guessing it here only causes trouble for the caller if the guess
turns out to be wrong (and actually causes very wrong output by
avconv/avplay).
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-15 14:59:44 +01:00
Michael Niedermayer
2ed7e353bd
h264: Workaround invalid flag combinations of 8x8 inference.
...
Fixes Ticket555
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-15 15:38:10 +02:00
Stefano Sabatini
1d0afec8fc
ffprobe: add AVClass to writers
...
It is useful for logging messages from a writer context.
2011-10-15 00:54:22 +02:00
Ronald S. Bultje
7b6883898f
pthread: prevent updating AVCodecContext from itself in frame_thread_free
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-15 00:13:21 +02:00
Ronald S. Bultje
feadcd1bdc
pthread: copy coded frame dimensions in update_context_from_thread
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-15 00:13:21 +02:00
Ronald S. Bultje
0f0b5d6434
vp8: prevent read from uninitialized memory in decode_mvs
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-15 00:13:21 +02:00
Ronald S. Bultje
5653579381
vp8: force reallocation in update_thread_context after frame size change
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-15 00:13:21 +02:00
Ronald S. Bultje
f05c2fb6eb
vp8: fix return value if update_dimensions fails
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-15 00:13:21 +02:00
Ronald S. Bultje
723229c11f
matroskadec: fix out of bounds write
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-15 00:13:21 +02:00
Michael Niedermayer
bd4ebbbbed
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
proresdsp: fix function prototypes.
prores-idct: fix overflow in c code.
fate: update prores-alpha ref after changing pix_fmt to yuv444p10le
prores: add missing feature warning for alpha
mov: 10l: Terminate string with 0 not '0'
mov: Prevent illegal writes when chapter titles are very short.
prores: add appropriate -fix_fmt parameter to FATE command
riff: always generate a proper WAVEFORMATEX structure in ff_put_wav_header
lavc: add a flag-based error_recognition field to AVCodecContext and deprecate non-flag-based ER field
lavc: rename deprecation symbol FF_API_VERY_AGGRESSIVE to FF_API_ER
Conflicts:
libavcodec/avcodec.h
libavformat/mov.c
tests/fate/prores.mak
tests/ref/acodec/g726
tests/ref/fate/prores-alpha
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 22:24:00 +02:00
Justin Ruggles
a62c0f94ee
adpcmdec: calculate actual number of output samples for each decoder.
...
This also allows for removing some of the buf_size checks and using the
sample count for some of the decoding loops.
2011-10-14 15:53:41 -04:00
Justin Ruggles
439998e18b
adpcmdec: check remaining buffer size before decoding next block in the
...
ADPCM IMA WAV decoder.
2011-10-14 15:53:41 -04:00
Justin Ruggles
ff5790c761
adpcmdec: do not terminate early in ADPCM IMA Duck DK3 decoder.
...
There are still 2 nibbles to decode once the last byte in the packet has been
read. Updated FATE reference.
2011-10-14 15:53:41 -04:00
Justin Ruggles
8140a1288f
adpcmdec: remove unneeded buf_size==0 check.
...
This is already done by avcodec_decode_audio3()
2011-10-14 15:53:41 -04:00
Justin Ruggles
f7f7c1942b
adpcmdec: remove unneeded zeroing of *data_size
2011-10-14 15:53:40 -04:00
Mans Rullgard
d341d5fd2c
dnxhdenc: fixed signed multiplication overflow
...
The low 32 bits of a multiplication are the same for signed
and unsigned operands. Casting to unsigned before multiplying
is thus equivalent while avoiding signed overflow, which is
undefined by the C99 standard.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-14 20:45:22 +01:00
Michael Niedermayer
4b9e9a57ee
proresdec: rename to avoid confusion
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 21:45:14 +02:00
Ronald S. Bultje
05c8f119cc
proresdsp: fix function prototypes.
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-14 21:34:46 +02:00
Ronald S. Bultje
f78cd0c243
prores-idct: fix overflow in c code.
...
Fix the fate ref for prores-422_proxy by reverting the changes to it
in commit f492df0927
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-14 21:34:20 +02:00
Janne Grunau
8aa80ec5e3
fate: update prores-alpha ref after changing pix_fmt to yuv444p10le
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-14 21:33:01 +02:00
Janne Grunau
19ec283f49
prores: add missing feature warning for alpha
2011-10-14 21:07:53 +02:00
JULIAN GARDNER
0f8d77199a
dvbsubdec: add version checking
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 20:20:00 +02:00
JULIAN GARDNER
1fc7b0ed5a
dvbsubdec: handle mode change page state
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 20:19:59 +02:00
JULIAN GARDNER
168a5d3b3c
dvbsubdec: change the top_bottom correction
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 20:19:59 +02:00
JULIAN GARDNER
f12c7ad86d
dvbsubdec: fix buf ptr in dvbsub_parse_region_segment()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 20:19:59 +02:00
JULIAN GARDNER
7e0f4f9d0f
dvbsubdec: bottom_field_len fix
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 20:19:59 +02:00
JULIAN GARDNER
55f17d3175
dvbsubdec: fix x/y_pos checks
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 20:19:59 +02:00
JULIAN GARDNER
24fb1b64a6
dvbsubdec: outcomment debug stuff in dvbsub_parse_pixel_data_block()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 20:19:59 +02:00
JULIAN GARDNER
b522d2a3b7
dvbsubdec: dirty handkling
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 20:19:59 +02:00
JULIAN GARDNER
eea064aea6
dvbsubdec: Fix variable increments & checking in dvbsub_read_*bit_string()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 20:12:40 +02:00
Michael Niedermayer
337496980e
prores: use C idct for fate as the SSE code is not matching the SSE* code down at the bits
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 19:48:41 +02:00
Alex Converse
7ad06beb2c
mov: 10l: Terminate string with 0 not '0'
2011-10-14 10:38:42 -07:00
Alex Converse
8fb22c3d47
mov: Prevent illegal writes when chapter titles are very short.
2011-10-14 10:36:18 -07:00
Diego Biurrun
f492df0927
prores: add appropriate -fix_fmt parameter to FATE command
...
Also correct CRCs for Sequence_1-Apple_ProRes_422_Proxy.mov, previous
CRCs were generated with the non-bitexact x86_64 assembler IDCT.
2011-10-14 18:17:34 +02:00
Michael Niedermayer
530d8529d0
fate: enable the prores tests
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 14:08:28 +02:00
John Brooks
2c4e08d893
riff: always generate a proper WAVEFORMATEX structure in ff_put_wav_header
...
The cbSize field should be included in all cases, even with PCM where
its value is ignored.
Fixes encoding PCM audio in Matroska for some players which insist on
a full WAVEFORMATEX structure for A_MS/ACM audio.
Since fate uses wav files for the audio test a larger number of tests
has changed checksums or shifted positions due to the 2 byte longer
wave header.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-14 13:28:58 +02:00
Dustin Brody
582f231142
lavc: add a flag-based error_recognition field to AVCodecContext and deprecate non-flag-based ER field
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-14 09:00:21 +02:00
Dustin Brody
ac90a71459
lavc: rename deprecation symbol FF_API_VERY_AGGRESSIVE to FF_API_ER
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-14 09:00:04 +02:00
Michael Niedermayer
91eb1b1525
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (22 commits)
prores: add FATE tests
id3v2: reduce the scope of some non-globally-used symbols/structures
id3v2: cosmetics: move some declarations before the places they are used
shorten: remove the flush function.
shn: do not allow seeking in the raw shn demuxer.
avformat: add AVInputFormat flag AVFMT_NO_BYTE_SEEK.
avformat: update AVInputFormat allowed flags
avformat: don't unconditionally call ff_read_frame_flush() when trying to seek.
truespeech: use sizeof() instead of hardcoded sizes
truespeech: remove unneeded variable, 'consumed'
truespeech: simplify truespeech_read_frame() by using get_bits()
truespeech: decode directly to output buffer instead of a temp buffer
truespeech: check to make sure channels == 1
truespeech: check for large enough output buffer rather than truncating output
truespeech: remove unneeded zero-size packet check.
mlpdec: return meaningful error codes instead of -1
mlpdec: remove unnecessary wrapper function
mlpdec: only calculate output size once
mlpdec: validate that the reported channel count matches the actual output channel count
pcm: reduce pointer type casting
...
Conflicts:
libavformat/avformat.h
libavformat/id3v2.c
libavformat/id3v2.h
libavformat/utils.c
libavformat/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 03:48:22 +02:00
Michael Niedermayer
90705aabe1
cmdutils.h: Project name cleanup
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 02:18:55 +02:00
Michael Niedermayer
e9adeeec98
cmdutils: Fix loglevel for -debug
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 02:18:55 +02:00
Michael Niedermayer
8937afd39f
proresdec: set CODEC_CAP_DR1, it appears this was forgotten.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 02:18:55 +02:00
Michael Niedermayer
da31e537c4
opt: handle AV_OPT_TYPE_CONST too
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-14 02:18:55 +02:00
Diego Biurrun
a62d36697d
prores: add FATE tests
2011-10-13 23:20:39 +02:00
Diego Biurrun
c4a378855e
id3v2: reduce the scope of some non-globally-used symbols/structures
2011-10-13 23:20:37 +02:00
Diego Biurrun
3b78c180e4
id3v2: cosmetics: move some declarations before the places they are used
2011-10-13 23:20:35 +02:00
Justin Ruggles
617a51f9b7
shorten: remove the flush function.
...
The shorten decoder does not support seeking.
2011-10-13 16:31:16 -04:00
Justin Ruggles
e32dfdaa8d
shn: do not allow seeking in the raw shn demuxer.
...
The demuxer does not read the seektable, a parser is not possible without a
full decode, and no shorten decoder can handle random seeking because it needs
side info from the seektable.
2011-10-13 16:31:16 -04:00
Justin Ruggles
b631fba936
avformat: add AVInputFormat flag AVFMT_NO_BYTE_SEEK.
...
This will prevent seeking by bytes for formats that cannot handle this.
2011-10-13 16:31:15 -04:00
Justin Ruggles
050e20aee6
avformat: update AVInputFormat allowed flags
2011-10-13 16:31:15 -04:00
Justin Ruggles
0041cdba98
avformat: don't unconditionally call ff_read_frame_flush() when trying to seek.
...
This prevents flushing the packet buffer when the input format does not
support seeking.
2011-10-13 16:31:15 -04:00
Justin Ruggles
c6ac30c84b
truespeech: use sizeof() instead of hardcoded sizes
2011-10-13 16:26:00 -04:00
Justin Ruggles
6d55506c8b
truespeech: remove unneeded variable, 'consumed'
...
increment the 'buf' pointer instead, and consume the whole packet.
2011-10-13 16:26:00 -04:00
Justin Ruggles
b84048935e
truespeech: simplify truespeech_read_frame() by using get_bits()
2011-10-13 16:25:59 -04:00
Justin Ruggles
5e5ce70f19
truespeech: decode directly to output buffer instead of a temp buffer
2011-10-13 16:25:59 -04:00
Justin Ruggles
3e7a176759
truespeech: check to make sure channels == 1
2011-10-13 16:25:59 -04:00
Justin Ruggles
a8f8db2636
truespeech: check for large enough output buffer rather than truncating output
2011-10-13 16:25:59 -04:00
Justin Ruggles
595cf1a1aa
truespeech: remove unneeded zero-size packet check.
...
This is already checked in avcodec_decode_audio3()
2011-10-13 16:25:59 -04:00
Justin Ruggles
82be06bbb3
mlpdec: return meaningful error codes instead of -1
2011-10-13 15:13:02 -04:00
Justin Ruggles
e1b8d88d52
mlpdec: remove unnecessary wrapper function
2011-10-13 15:13:02 -04:00
Justin Ruggles
37b67f1bff
mlpdec: only calculate output size once
2011-10-13 15:13:02 -04:00
Justin Ruggles
caa845851d
mlpdec: validate that the reported channel count matches the actual output
...
channel count
2011-10-13 15:13:02 -04:00
Reimar Döffinger
e91230a589
Improve PVA probe function.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-10-13 20:10:25 +02:00
Mans Rullgard
b45eb9d619
pcm: reduce pointer type casting
...
Making 'samples' a pointer to uint8_t simplifies the DECODE
macro and reduces the amount of type casting overall.
This also fixes some signed overflows on left shift.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-13 17:56:13 +01:00
Nicolas George
c722c88eb6
libmodplug: remove mathematical constants now redundant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-13 18:08:51 +02:00
Nicolas George
7d60b43e90
vsrc_nullsrc: remove mathematical constants now redundant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-13 18:08:51 +02:00
Nicolas George
21e888bd11
vf_crop: remove mathematical constants now redundant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-13 18:08:51 +02:00
Nicolas George
94b345855f
vf_settb: remove mathematical constants now redundant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-13 18:08:50 +02:00
Nicolas George
db820c3c13
vf_setpts: remove mathematical constants now redundant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-13 18:08:50 +02:00
Nicolas George
1a3fa3ab2c
vf_select: remove mathematical constants now redundant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-13 18:08:50 +02:00
Nicolas George
3b316f9f22
vf_scale: remove mathematical constants now redundant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-13 18:08:50 +02:00
Nicolas George
e2abe90ed7
vf_pad: remove mathematical constants now redundant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-13 18:08:50 +02:00
Nicolas George
8c88d734a5
vf_overlay: remove mathematical constants now redundant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-13 18:08:50 +02:00
Nicolas George
157ff97e3b
vf_lut: remove mathematical constants now redundant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-13 18:08:50 +02:00
Nicolas George
a2af901295
vf_drawtext: remove mathematical constants now redundant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-13 18:08:50 +02:00
Michael Niedermayer
072a62b50a
Merge remote-tracking branch 'hexene/stagefright'
...
* hexene/stagefright:
tools/build_libstagefright: fetch android system headers and libraries
libstagefright: reindent after previous commit
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-13 18:04:02 +02:00
Nicolas George
40963ea9e9
eval: add mathematical constants (PI, E, PHI).
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-13 16:50:20 +02:00
Mohamed Naufal
4d518f1230
g723.1: use raw muxer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-13 16:50:20 +02:00
Mans Rullgard
f59bb3d8f3
mathops: remove undefined behaviour from sign_extend()
...
This function intentionally overflows the signed range on
the left shift. Using this type-punning avoids errors from
the overflow checker without disabling this test globally.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-13 15:40:16 +01:00
Kostya Shishkov
42feaf4070
vc1: explicitly zero interlaced mode coding variables for progressive mode
...
Both v->fcm and v->field_mode are used in common code, now they won't be
reset for progressive frame after interlaced one causing writing past the
frame end for example.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-10-13 07:35:07 -07:00
Luca Barbato
13c9958751
segment: extend options
...
let set an alternate path for the segment files.
2011-10-13 11:51:07 +02:00
Michael Niedermayer
f884ef00de
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (31 commits)
tiffenc: initialize forgotten avctx.
avplay: free the active audio packet at exit.
avplay: free rdft data used for spectrogram analysis.
log.h: make AVClass a named struct
fix ac3 encoder documentation
vc1: more prettyprinting cosmetics
vc1: prettyprint some tables
vc1: K&R formatting cosmetics
AVOptions: bump minor and add APIchanges entry.
cmdutils/avtools: simplify show_help() by using av_opt_child_class_next()
AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*
Remove all uses of deprecated AVOptions API.
AVOptions: add av_opt_next, deprecate av_next_option.
AVOptions: add functions for evaluating option strings.
AVOptions: split get_number().
AVOptions: add av_opt_get*, deprecate av_get*.
AVOptions: add av_opt_set*().
AVOptions: add new API for enumerating children.
rv34: move inverse transform functions to DSP context
flvenc: Write the right metadata entry count
...
Conflicts:
avconv.c
cmdutils.c
doc/APIchanges
ffplay.c
ffprobe.c
libavcodec/ac3dec.c
libavcodec/h264.c
libavcodec/libvpxenc.c
libavcodec/libx264.c
libavcodec/mpeg12enc.c
libavcodec/options.c
libavdevice/libdc1394.c
libavdevice/v4l2.c
libavfilter/vf_drawtext.c
libavformat/flvdec.c
libavformat/mpegtsenc.c
libavformat/options.c
libavutil/avutil.h
libavutil/opt.c
libswscale/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-13 06:00:03 +02:00
John Brooks
c1847c932b
Correct buffer handling for RTCP packets
...
Previous code could read 4 bytes past the end of the buffer on a RTCP_SR
packet or offset a pointer by an unchecked external value (payload_len),
though neither will reliably cause a crash or other misbehavior beyond
garbage timestamps.
Additionally, unknown RTCP packet types, even in compounded packets, are
now ignored as per RFC 3550 section 6.1, page 22, though currently this
only has any practical effect if a sender puts an unrecognized type
before RTCP_BYE in a compounded packet, or (incorrectly) does not put
RTCP_SR first.
Signed-off-by: John Brooks <john.brooks@bluecherry.net >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-13 03:31:01 +02:00
Jean First
47a1d794db
tiffenc: initialize forgotten avctx.
2011-10-12 18:20:18 -04:00
Justin Ruggles
c74f1f47b2
avplay: free the active audio packet at exit.
...
fixes a memleak
2011-10-12 17:48:33 -04:00
Justin Ruggles
cb2c4de3a1
avplay: free rdft data used for spectrogram analysis.
...
fixes a memleak
2011-10-12 17:48:33 -04:00
Jindrich Makovicka
67bbf07fb5
log.h: make AVClass a named struct
...
'struct AVClass' is used in the code since
641c7afe3c , but AVClass is typedeffed as
an anonymous struct.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-12 23:39:31 +02:00
Michael Niedermayer
dc66951bb2
proresdsp: fix rounding
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-12 22:18:35 +02:00
Michael Niedermayer
67dad8e7b1
proresdsp: Correct credits to point to the Author and not just the code this is based on.
...
Also change Libav to FFmpeg
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-12 22:09:40 +02:00
Michael Niedermayer
96b0ddeeaa
dct-test: Test ff_prores_idct_put_10_sse2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-12 22:08:15 +02:00
Michael Niedermayer
dfeeb85b65
dct-test: add transpose permutation support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-12 22:08:14 +02:00
Michael Niedermayer
370d7ef2c7
proresdsp: Optimize series of padds out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-12 22:08:14 +02:00
Michael Niedermayer
6398c0f7e1
proresdsp.asm: Remove useless instructions.
2011-10-12 22:07:52 +02:00
Justin Ruggles
3e68b28221
fix ac3 encoder documentation
...
some of the mode values were reversed
2011-10-12 14:52:26 -04:00
Elvis Presley
bebaf4ea1f
prores: change license to LGPL, merge some parts.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-12 19:55:25 +02:00
Elvis Presley
b87d882578
proresdsp.asm: drop useless shifts
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-12 19:42:53 +02:00
Elvis Presley
ef47c608be
x86/proresdsp-init: add forgotten HAVE_YASM
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-12 19:42:53 +02:00
Elvis Presley
d186019e14
configure: drop GPLv2 support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-12 19:42:53 +02:00
Kostya Shishkov
50f9721904
vc1: more prettyprinting cosmetics
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-10-12 17:33:58 +02:00
Kostya Shishkov
94e725ca2b
vc1: prettyprint some tables
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-10-12 17:33:58 +02:00
Kostya Shishkov
b18c68ad25
vc1: K&R formatting cosmetics
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-10-12 17:33:58 +02:00
Luca Barbato
1786c7f844
segment: basic pattern support and playlist output
...
Yet another option half implemented, more will follow...
2011-10-12 17:03:53 +02:00
Luca Barbato
82df8c3997
segment: introduce segmented chain muxer
...
Initial test code, the filename isn't yet guessed and the file index
isn't printed yet.
2011-10-12 17:03:52 +02:00
Luca Barbato
8d80f3cb87
output-example: extend duration
2011-10-12 17:03:52 +02:00
Luca Barbato
fe896ec2f9
ratecontrol: estimate twice the qscale values
...
This had been the fix used by Michael Niedermayer to solve the
ratecontrol convergence issue.
2011-10-12 17:03:52 +02:00
Anton Khirnov
492bd1a28f
AVOptions: bump minor and add APIchanges entry.
2011-10-12 16:55:56 +02:00
Anton Khirnov
7a6cd9957d
cmdutils/avtools: simplify show_help() by using av_opt_child_class_next()
2011-10-12 16:51:17 +02:00
Anton Khirnov
145f741e11
AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*
2011-10-12 16:51:16 +02:00
Anton Khirnov
3b3ea34655
Remove all uses of deprecated AVOptions API.
2011-10-12 16:51:16 +02:00
Anton Khirnov
8c5dcaad13
AVOptions: add av_opt_next, deprecate av_next_option.
...
Just for naming consistency, no functional changes.
2011-10-12 16:51:16 +02:00
Anton Khirnov
dca055be3a
AVOptions: add functions for evaluating option strings.
2011-10-12 16:51:16 +02:00
Anton Khirnov
059a037fbd
AVOptions: split get_number().
...
Split actual writing to read_number() in the same way as write_number().
Allows set_string_number() to write to a caller-provided destination.
2011-10-12 16:51:16 +02:00
Anton Khirnov
41d9d51a72
AVOptions: add av_opt_get*, deprecate av_get*.
...
New functions can get values from child objects, properly report error
codes and have consistent naming and signatures.
2011-10-12 16:51:16 +02:00
Anton Khirnov
dac66da63d
AVOptions: add av_opt_set*().
...
Deprecate av_set_*
New functions support setting values on children, return error codes
instead of options and have consistent naming and signatures.
2011-10-12 16:51:16 +02:00
Anton Khirnov
641c7afe3c
AVOptions: add new API for enumerating children.
...
This will allow the caller to enumerate child contexts in a generic way
and since the API is recursive, it also allows for deeper nesting (e.g.
AVFormatContext->AVIOContext->URLContext)
This will also allow the new setting/reading API to transparently apply
to children contexts.
2011-10-12 16:51:16 +02:00
Janne Grunau
1bca8f4bc5
rv34: move inverse transform functions to DSP context
2011-10-12 15:52:22 +02:00
Clément Bœsch
cdd30e5642
doc: small ascii diagram on I/O files and streams in ffmpeg.c
2011-10-12 15:43:52 +02:00
Stefano Sabatini
4edcdf5c44
ffprobe: show sample_fmt in the stream section
2011-10-12 14:55:28 +02:00
Martin Storsjö
cad0c375d9
flvenc: Write the right metadata entry count
...
No application rely on this count being correct as far as
I know, but if we write a nonzero count value, it might just
as well be the right one.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-12 15:25:58 +03:00
Martin Storsjö
76b0d03d82
rtsp: Request that dynamic rate is disabled
...
DSS enables this automatically if streaming VOD over TCP. If
enabled, the server feeds packets faster than realtime, screwing
up RTCP NTP based timestamps.
Also, DSS doesn't indicate that this was indicated, if it was
enabled automatically (although if it was requested to be enabled,
a header saying that it was enabled is added, but this isn't
added if it is enabled automatically), making it even harder
to detect and work around properly without explicitly asking
for it to be disabled(/enabled, if we were able to support it).
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-12 14:48:47 +03:00
Martin Storsjö
30eae32530
rtsp: Parse the x-Accept-Dynamic-Rate header
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-12 14:48:45 +03:00
Martin Storsjö
bfc6db4477
rtpdec: Add ff_ prefix to all nonstatic symbols
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-12 14:48:12 +03:00
Mans Rullgard
318efbfc10
h264: change unsupported bit depth message to error level
...
Unsupported bit depth is certainly an error the user will
want to know about.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-12 12:39:52 +01:00
John Brooks
07b77fe387
rtpdec: Read the packet length for all RTCP packet types
...
This allows skipping past unsupported RTCP packet types, as
RFC 3550 section 6.1 mandates.
Currently this only has any practical effect if a sender puts
an unrecognized type before RTCP_BYE in a compounded packet, or
(incorrectly) does not put RTCP_SR first.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-12 14:37:42 +03:00
John Brooks
5d6ecf5345
rtpdec: Fix the minimum packet length for RTCP SR packets
...
We actually read 20 bytes of these packets.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-12 14:37:39 +03:00
Mans Rullgard
c682514a8f
qdm2: fix signed multiplication overflow
...
This code relies on the result wrapping as for unsigned
values, and the sign is not used. Thus an unsigned type
is proper here.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-12 12:28:08 +01:00
Martin Storsjö
5e87222fd1
flvdec: Don't export metadata entries that aren't proper metadata
...
This avoids writing these entries doubly if transcoding from
flv to flv, since the muxer blindly writes any and all metadata
keys set, in addition to the fixed fields that the muxer
always writes.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-12 10:19:47 +03:00
Martin Storsjö
b204c46d9d
flvdec: Split out setting of numeric fields from storing metadata
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-12 10:19:38 +03:00
Anton Khirnov
46c3c53bae
libx264: support yuv422/444 output.
2011-10-12 08:27:36 +02:00
Anton Khirnov
04de1569cd
sws: support yuv444p9/10 output.
2011-10-12 08:27:30 +02:00
Michael Niedermayer
b81f8880e0
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (23 commits)
fix AC3ENC_OPT_MODE_ON/OFF
h264: fix HRD parameters parsing
prores: implement multithreading.
prores: idct sse2/sse4 optimizations.
swscale: use aligned move for storage into temporary buffer.
prores: extract idct into its own dspcontext and merge with put_pixels.
h264: fix invalid shifts in init_cavlc_level_tab()
intfloat_readwrite: fix signed addition overflows
mov: do not misreport empty stts
mov: cosmetics, fix for and if spacing
id3v2: fix NULL pointer dereference
mov: read album_artist atom
mov: fix disc/track numbers and totals
doc: fix references to obsolete presets directories for avconv/ffmpeg
flashsv: return more meaningful error value
flashsv: fix typo in av_log() message
smacker: validate channels and sample format.
smacker: check buffer size before reading output size
smacker: validate number of channels
smacker: Separate audio flags from sample rates in smacker demuxer.
...
Conflicts:
cmdutils.h
doc/ffmpeg.texi
libavcodec/Makefile
libavcodec/motion_est_template.c
libavformat/id3v2.c
libavformat/mov.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-12 05:40:57 +02:00
Michael Niedermayer
b75d89a478
cdg: enable seeking
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-12 04:15:40 +02:00
Michael Niedermayer
fe19e138cd
cdg: Try to detect keyframes.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-12 04:15:23 +02:00
Michael Niedermayer
045c5283c3
cdg: set timestamps
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-12 03:47:51 +02:00
Michael Niedermayer
d69fda9127
lavf: check stream_index from read_packet() for validity.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-12 01:04:12 +02:00
Daniel Kristjansson
f36ce75e35
pcm: Print number of bits in the error message of unsupported DVD PCM formats.
2011-10-12 00:47:43 +02:00
Michael Niedermayer
be5ac961e0
examples/encoding: rename to decoding_encoding.c as the file is an example for both.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-11 22:16:04 +02:00
Michael Niedermayer
f8e98061ec
examples/encoding: List more formats to make it more clear to the reader what is not handled in libavcodec.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-11 22:10:26 +02:00
Michael Niedermayer
fc11927890
mem: fix memalign hack av_realloc()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-11 22:03:19 +02:00
John Stebbins
5f3fb59953
fix AC3ENC_OPT_MODE_ON/OFF
...
The values were reversed.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2011-10-11 14:57:58 -04:00
Michael Niedermayer
96bc6485bc
arm: fix av_clipl_int32() asm
...
Note, the other arm asm code is likely affected too and should be changed as well.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-11 20:25:55 +02:00
Mans Rullgard
fdba370f8a
h264: fix HRD parameters parsing
...
The bit_rate_value_minus1 and cpb_size_value_minus1 elements
allow a wider range than get_ue_golomb() supports. This
adds a get_ue_golomb_long() function supporting up to 31
leading zeros, which is the maximum for these syntax
elements, and uses it in decode_hrd_parameters().
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-11 18:24:51 +01:00
Ronald S. Bultje
91f4732913
prores: implement multithreading.
...
60% speedup (overall decoding time) at 2 threads, and another 60%
speedup at 4 threads.
2011-10-11 07:50:49 -07:00
Ronald S. Bultje
e3f530feca
prores: idct sse2/sse4 optimizations.
...
~3.0-3.5x as fast as original C version, 1.6x as fast overall.
2011-10-11 07:50:48 -07:00
Ronald S. Bultje
6aa3cac6bf
swscale: use aligned move for storage into temporary buffer.
...
The intermediate buffer is always aligned.
2011-10-11 07:50:48 -07:00
Ronald S. Bultje
92fb52d906
prores: extract idct into its own dspcontext and merge with put_pixels.
2011-10-11 07:50:48 -07:00
Mans Rullgard
8babfc033e
h264: fix invalid shifts in init_cavlc_level_tab()
...
The level_code expression includes a shift which is invalid in
those cases where the value is not used. Moving the calculation
to the branch where the result is used avoids these.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-11 15:00:56 +01:00
Mans Rullgard
88d1e2b2b0
intfloat_readwrite: fix signed addition overflows
...
These additions might overflow the signed range for large
input values. Converting to unsigned before the addition
rather than after avoids such undefined behaviour. The
result under normal two's complement wraparound remains
unchanged.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-11 14:42:28 +01:00
Luca Barbato
30c3d976f1
mov: do not misreport empty stts
...
Return -1 instead of ENOMEM if entries is 0.
Fixes a av_malloc(0) crash in macosx.
2011-10-11 15:06:50 +02:00
Luca Barbato
5a7ba58657
mov: cosmetics, fix for and if spacing
2011-10-11 15:06:11 +02:00
Anton Khirnov
c780b543e7
id3v2: fix NULL pointer dereference
...
Bug found by Laurent Aimar fenrir at videolan org
2011-10-11 14:56:41 +02:00
Raivo Hool
2804d32075
mov: read album_artist atom
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-11 14:56:41 +02:00
Raivo Hool
dff4177546
mov: fix disc/track numbers and totals
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-11 14:56:41 +02:00
Diego Biurrun
25c27f379f
doc: fix references to obsolete presets directories for avconv/ffmpeg
2011-10-11 14:31:19 +02:00
Diego Biurrun
4b7f49082f
flashsv: return more meaningful error value
2011-10-11 14:28:23 +02:00
Diego Biurrun
f9a9c8f9bc
flashsv: fix typo in av_log() message
2011-10-11 14:28:23 +02:00
Clément Bœsch
3473639952
ffmpeg: fix two stream related comments.
2011-10-11 14:24:20 +02:00
Michael Niedermayer
5174032953
g723.1: use memmove() where overlapping src and dst can happen.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-11 13:55:09 +02:00
Michael Niedermayer
7b5c03064d
vc1: enable interlaced p fields again, they seem no longer to crash with out of array writes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-11 13:55:09 +02:00
Michael Niedermayer
4509be3d2f
vc1: reset interlaced variables, prevent another bunch of crashes.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-11 13:55:09 +02:00
Justin Ruggles
ff1f89de2d
smacker: validate channels and sample format.
2011-10-11 07:48:16 -04:00
Justin Ruggles
cf044f8bff
smacker: check buffer size before reading output size
2011-10-11 07:48:16 -04:00
Justin Ruggles
e190e453bd
smacker: validate number of channels
2011-10-11 07:48:16 -04:00
Justin Ruggles
a7984a6a6d
smacker: Separate audio flags from sample rates in smacker demuxer.
...
Makes the code easier to understand.
2011-10-11 07:48:16 -04:00
Mans Rullgard
be1242a3f2
h264: fix detection of optional trailing PPS elements
...
The PPS may contain a few trailing elements whose presence is
only signalled by data remaining after the the mandatory part
has been parsed. The current code fails to take into account
the rbsp_trailing_bits() when deciding whether to parse these
optional elements. Assuming no unnecessary padding bytes are
passed to this function, the optional elements are present if
either more than 8 extra bits remain or the remaining bits do
not form a valid rbsp_trailing_bits() after the mandatory PPS
elements have been parsed.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-11 12:05:51 +01:00
Mans Rullgard
c79d2a20ba
sipr: fix get_bits(0) calls
...
Zero-length get_bits() is undefined, must check before calling.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-11 12:05:51 +01:00
Mans Rullgard
cb668476ab
motion_est: make MotionExtContext.map_generation unsigned
...
The way this value is used, it should be an unsigned type.
While the numerical value has no meaning, unsigned wraparound
is relied upon.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-11 12:05:50 +01:00
Clément Bœsch
d557152285
eval: document recently added random(), hypot(), gcd().
2011-10-11 07:31:40 +02:00
Michael Niedermayer
1e4d60353c
vc1: disable parts of the interlaced code due to security issues.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-11 03:42:51 +02:00
Michael Niedermayer
41f55277fa
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (34 commits)
h264: reset h->ref_count in case of errors in ff_h264_decode_ref_pic_list_reordering()
error_resilience: fix the check for missing references in ff_er_frame_end() for H264
4xm: prevent NULL dereference with invalid huffman table
4xmdemux: prevent use of uninitialized memory
4xm: clear FF_INPUT_BUFFER_PADDING_SIZE bytes in temporary buffers
ptx: check for out of bound reads
tiffdec: fix out of bound reads/writes
eacmv: check for out of bound reads
eacmv: fix potential pointer arithmetic overflows
adpcm: fix out of bound reads due to integer overflow
anm: prevent infinite loop
avsdemux: check for out of bound writes
avs: check for out of bound reads
avsdemux: check for corrupted data
AVOptions: refactor set_number/write_number
AVOptions: cosmetics, rename static av_set_number2() to write_number().
AVOptions: cosmetics, move and rename static av_set_number().
AVOptions: split av_set_string3 into opt type-specific functions
avidec: fix signed overflow in avi_sync()
mxfdec: Fix some buffer overreads caused by the misuse of AVPacket related functions.
...
Conflicts:
Changelog
configure
libavcodec/ptx.c
libavcodec/ra144.c
libavcodec/vaapi_vc1.c
libavcodec/vc1.c
libavcodec/version.h
libavformat/4xm.c
libavformat/avidec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-11 03:42:43 +02:00
Stefano Sabatini
fbb8468f20
ffprobe: prefer lowercase section names over uppercase ones
...
This is consistent with chapter names. The default writer section names
are converted to uppercase for keeping backward compatibility.
2011-10-11 00:24:27 +02:00
Laurent Aimar
4c7a232fc8
h264: reset h->ref_count in case of errors in ff_h264_decode_ref_pic_list_reordering()
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:37:36 +02:00
Laurent Aimar
e8ac80fb2c
error_resilience: fix the check for missing references in ff_er_frame_end() for H264
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:37:36 +02:00
Laurent Aimar
1b1182ce97
4xm: prevent NULL dereference with invalid huffman table
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:37:36 +02:00
Laurent Aimar
79964745b3
4xmdemux: prevent use of uninitialized memory
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:37:35 +02:00
Laurent Aimar
8d518a9c4f
4xm: clear FF_INPUT_BUFFER_PADDING_SIZE bytes in temporary buffers
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:37:35 +02:00
Laurent Aimar
dc64f203a6
ptx: check for out of bound reads
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:37:15 +02:00
Laurent Aimar
04a845caa7
tiffdec: fix out of bound reads/writes
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:36:13 +02:00
Laurent Aimar
46cb2f6a29
eacmv: check for out of bound reads
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:36:13 +02:00
Laurent Aimar
8df8a87e3f
eacmv: fix potential pointer arithmetic overflows
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:36:12 +02:00
Laurent Aimar
c7f89064e2
adpcm: fix out of bound reads due to integer overflow
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:36:12 +02:00
Laurent Aimar
2475f1a83c
anm: prevent infinite loop
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:36:12 +02:00
Laurent Aimar
6de33611c9
avsdemux: check for out of bound writes
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:36:12 +02:00
Laurent Aimar
de049a95f4
avs: check for out of bound reads
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:36:12 +02:00
Laurent Aimar
76c6971a64
avsdemux: check for corrupted data
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:27:04 +02:00
Clément Bœsch
92e36ee567
libmodplug: do not call av_expr_parse() in case of no expr specified.
2011-10-10 21:15:26 +02:00
Clément Bœsch
964465eb1a
libmodplug: simpler and faster use of eval expr.
2011-10-10 21:09:30 +02:00
Anton Khirnov
7bb1807c2d
AVOptions: refactor set_number/write_number
...
write_number() does the actual writing of the supplied
number to destination. Move finding the option and choosing destination
address out of it.
2011-10-10 20:27:31 +02:00
Anton Khirnov
cf10095f0b
AVOptions: cosmetics, rename static av_set_number2() to write_number().
2011-10-10 20:27:31 +02:00
Anton Khirnov
b003d0be5b
AVOptions: cosmetics, move and rename static av_set_number().
2011-10-10 20:27:31 +02:00
Anton Khirnov
c8d787d2ef
AVOptions: split av_set_string3 into opt type-specific functions
...
Also stop attempting to honor the alloc parameter, as things break
horribly in that case.
It will be removed in upcoming successor to av_set_string3.
2011-10-10 20:27:30 +02:00
Mans Rullgard
1703013cb7
avidec: fix signed overflow in avi_sync()
...
Keeping byte values read from the file as unsigned is consistent
with how they are subsequently used and avoids an undefined left
shift by 24 when bit 7 is set.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-10 17:49:13 +01:00
Alex Converse
0c46e958d1
mxfdec: Fix some buffer overreads caused by the misuse of AVPacket related functions.
2011-10-10 09:40:26 -07:00
Baptiste Coudurier
11a32d53ca
dnxhddec: handle cid change in bitstream.
2011-10-10 09:40:26 -07:00
Kostya Shishkov
109d8aa1e6
vc1: K&R reformatting cosmetics
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-10-10 18:35:35 +02:00
Tomas Härdin
d377deaaa3
mxfdec: Move FooterPartition to MXFContext and make sure it's never set to zero
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-10 17:40:34 +02:00
Justin Ruggles
8f8f5ae991
ra288: log an error message when output buffer is too small.
...
also return AVERROR(EINVAL) instead of -1.
2011-10-10 11:38:58 -04:00
Justin Ruggles
fa6be04bf7
ra288: use a more descriptive calculation for output data size
2011-10-10 11:38:58 -04:00
Justin Ruggles
f10524d51c
ra144: use macro constants to make the code more understandable.
2011-10-10 11:38:58 -04:00
Justin Ruggles
cadd4d332a
ra144dec: log an error message when output buffer is too small.
...
also return AVERROR(EINVAL) instead of -1.
2011-10-10 11:38:58 -04:00
Justin Ruggles
80bdf7e0b7
ra144dec: use a more descriptive calculation for output data size
2011-10-10 11:38:57 -04:00
Reimar Döffinger
4b4a6ebd68
Support playing SMV files.
...
Audio and video are interleaved via stream cur_dts - no idea how
reliable this is.
It also cannot display the video properly - it is stored with
about 15 in a single JPEG frame, I cannot think of a reasonable
way to implement this.
Samples: http://samples.mplayerhq.hu/smv/
Format description: http://wiki.multimedia.cx/index.php?title=SMV
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-10-10 17:38:51 +02:00
Clément Bœsch
86a771143f
libmodplug: add bintext video stream capability.
2011-10-10 16:56:48 +02:00
Clément Bœsch
ade3ec8457
swresample: fix another broken indent chunk.
...
Also use a consistent style inside that block.
2011-10-10 15:55:28 +02:00
Michael Niedermayer
b2f88ce21c
mpegts: reduce av_log level for seek back to begin on unseekable protocols to info level.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-10 15:40:08 +02:00
Mashiat Sarker Shakkhar
51757ac789
lavc: Micro version bump for VC1 interlaced decoding support
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-10 15:26:37 +02:00
Mashiat Sarker Shakkhar
cad16562c8
vc1dec: interlaced stream decoding support 3/3
...
Cosmetics: break some lines and reformat TODOs
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-10 15:26:37 +02:00
Mashiat Sarker Shakkhar
f0c02e1cbc
vc1dec: interlaced stream decoding support 2/3
...
Cosmetics: reformat some data tables in vc1data.c
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-10 15:26:37 +02:00
Mashiat Sarker Shakkhar
d5b015e42d
vc1dec: interlaced stream decoding support 1/3
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-10 15:26:37 +02:00
Petter Ericson
1fb30586cf
mpegts: Attempt to seek back to beginning in non-seekable mpegts files.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-10 14:45:57 +02:00
Gwenole Beauchesne
53efb758c0
vaapi: Fix VC-1 decoding (reconstruct bitstream TTFRM correctly).
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-10-10 14:11:02 +02:00
Diego Biurrun
c2ed91de84
configure: Add -Wstrict-prototypes to CFLAGS if available.
2011-10-10 13:50:26 +02:00
Janne Grunau
2886f6759f
avidec: simplify size parameter in memset()
2011-10-10 13:28:18 +02:00
Carl Eugen Hoyos
3c8862a567
Add G.723.1 to the documentation.
2011-10-10 10:49:16 +02:00
Carl Eugen Hoyos
0b3e070035
Bump minor for G.723.1 encoder and muxer.
2011-10-10 10:25:07 +02:00
Clément Bœsch
9719f25e7b
swresample: fix broken indent.
2011-10-10 09:57:41 +02:00
Michael Niedermayer
0a23067ab4
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
mpeg4dec: use unsigned type for startcode in ff_mpeg4_decode_picture_header
mpeg124: use sign_extend() function
ac3dec: use get_sbits() instead of manually sign-extending
4xm: fix signed overflow
wmavoice: fix a signed overflow
mpegvideo_enc: fix a signed overflow
crc: fix signed overflow
fate: run avconv with -nostats flag
avtools: add -v as alias for -loglevel
avconv: always print stats with AV_LOG_INFO
doc/avconv: add forgotten output/per-stream info to -filter
avconv: add -stats option to enable/disable printing encoding progress
avconv: in output_packet() don't set decoded_data_size for video.
avconv: remove pointless always true condition
avconv: factorize common code in transcode_init()
zmbv: remove memcpy() of decoded frame
mpeg12enc: use sign_extend() function
h264pred: use unsigned types for pixel values, fix signed overflows
h264: fix signed overflows in x*0x01010101 expressions
h264pred: remove unused variables
Conflicts:
avconv.c
tests/fate-run.sh
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-10 03:50:58 +02:00
Michael Niedermayer
028a79c1f1
reg tests: add g723.1
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-10 02:58:18 +02:00
Mohamed Naufal
ef64c45c94
g723.1 encoder
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-10 02:58:18 +02:00
Mohamed Naufal
19562b68cb
g723.1 muxer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-10 02:58:18 +02:00
Mans Rullgard
581810f502
mpeg4dec: use unsigned type for startcode in ff_mpeg4_decode_picture_header
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-09 23:28:54 +01:00
Mans Rullgard
aa498fef0d
mpeg124: use sign_extend() function
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-09 23:22:14 +01:00
Mans Rullgard
633ddb8519
ac3dec: use get_sbits() instead of manually sign-extending
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-09 23:21:31 +01:00
Mans Rullgard
84dda40762
4xm: fix signed overflow
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-09 23:13:35 +01:00
Mans Rullgard
ba3f07d061
wmavoice: fix a signed overflow
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-09 23:04:03 +01:00
Mans Rullgard
05795f35be
mpegvideo_enc: fix a signed overflow
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-09 23:03:46 +01:00
Carl Eugen Hoyos
059707ee2d
Do not auto-detect Sorenson Spark in f4v.
...
Assuming codec_tag H263 for FLV only leads to trouble.
2011-10-09 22:58:31 +02:00
Carl Eugen Hoyos
7e75f06182
Be less verbose about continuity check errors.
2011-10-09 22:47:35 +02:00
Michael Niedermayer
397d194e50
prores: check slice mb_y against mb_height
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 21:58:13 +02:00
Michael Niedermayer
e1b2f6ec11
prores: only call get_buffer once per frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 21:52:16 +02:00
Michael Niedermayer
ebba05b3c5
prores:cosmetics
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 21:51:06 +02:00
Michael Niedermayer
fd0247f833
prores: fix typo
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 21:49:55 +02:00
Mans Rullgard
8b19ae0761
crc: fix signed overflow
...
This fixes a signed overflow from i << 24 when i == 255 by
making i unsigned. The result of the shift is already
assigned to an variable of unsigned type.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-09 16:53:31 +01:00
Mans Rullgard
0836d48a16
fate: run avconv with -nostats flag
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-09 16:53:12 +01:00
Mans Rullgard
8124d8ad66
avtools: add -v as alias for -loglevel
...
This saves a bit of typing.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-09 16:53:06 +01:00
Anton Khirnov
f5646a325b
avconv: always print stats with AV_LOG_INFO
...
It's now possible to disable printing stats during encoding with
-nostats, so there's no reason to print them differently depending on
whether it's last report or not.
2011-10-09 17:15:18 +02:00
Anton Khirnov
667d98182d
doc/avconv: add forgotten output/per-stream info to -filter
2011-10-09 17:15:18 +02:00
Anton Khirnov
3460dd8acf
avconv: add -stats option to enable/disable printing encoding progress
2011-10-09 17:15:18 +02:00
Anton Khirnov
c6007065ed
avconv: in output_packet() don't set decoded_data_size for video.
...
It's only used for audio.
2011-10-09 17:15:18 +02:00
Anton Khirnov
515901fad2
avconv: remove pointless always true condition
2011-10-09 17:15:18 +02:00
Anton Khirnov
11fdb7e197
avconv: factorize common code in transcode_init()
2011-10-09 17:15:18 +02:00
Stefano Sabatini
cb50ada4f8
ffprobe: parse arguments for -print_format writer
...
This allows -print_format to accept string of the form WRITER=OPTIONS,
as required by the pending compact writer patch.
2011-10-09 16:03:13 +02:00
Stefano Sabatini
9806dda8a8
ffprobe: create a dedicated "Writers" section in the manual
...
Also update documentation related to the output format.
2011-10-09 16:03:01 +02:00
Stefano Sabatini
eff7684b50
ffprobe: extend writers API, and move the writers up in the file
...
The new provided API is more flexible and is decoupled from the
application level code, so it is easier to maintain.
2011-10-09 16:02:52 +02:00
Stefano Sabatini
2b43bfa0c8
lavu: bump micro after gcd(), random(), and hypot() additions in eval
2011-10-09 15:58:10 +02:00
Clément Bœsch
af52e6b6dd
doc: avoid "@table has text but no @item" warning.
2011-10-09 15:27:41 +02:00
Mans Rullgard
282847ba80
zmbv: remove memcpy() of decoded frame
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-09 13:58:19 +01:00
Mans Rullgard
2f329db90e
mpeg12enc: use sign_extend() function
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-09 13:58:17 +01:00
Mans Rullgard
60f10e0ad3
h264pred: use unsigned types for pixel values, fix signed overflows
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-09 12:27:19 +01:00
Mans Rullgard
4d1418cd4f
h264: fix signed overflows in x*0x01010101 expressions
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-09 12:27:19 +01:00
Mans Rullgard
d66b9dec11
h264pred: remove unused variables
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-09 12:27:19 +01:00
Mohamed Naufal
e82cbb69a7
tools/build_libstagefright: fetch android system headers and libraries
...
Credit to Martin.
2011-10-09 14:36:12 +05:30
Themaister
18a97b030c
Allow YUV444P and RGB/BGR encoding for libx264.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 05:48:39 +02:00
Michael Niedermayer
c5db8b4d09
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavf: fix signed overflow in avformat_find_stream_info()
vp8: fix signed overflows
motion_est: fix some signed overflows
dca: fix signed overflow in shift
aacdec: fix undefined shifts
bink: Check for various out of bound writes
bink: Check for out of bound writes when building tree
put_bits: fix invalid shift by 32 in flush_put_bits()
Conflicts:
libavcodec/bink.c
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 04:02:03 +02:00
Laurent Aimar
7fb92be7e5
qtrle: check for out of bound writes.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 03:22:57 +02:00
Laurent Aimar
a68a6a4fb1
xxan: check for out of bound accesses
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 03:22:57 +02:00
Laurent Aimar
e182de9a98
txd: check for out of bound reads.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 03:22:49 +02:00
Laurent Aimar
a4ed7c3fe9
qtrle: check for invalid line offset
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 03:08:03 +02:00
Laurent Aimar
6d45702f7f
vqavideo: check for out of bound reads.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 03:08:03 +02:00
Laurent Aimar
e3123856c7
vqa: fix double free on corrupted streams
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 03:08:03 +02:00
Laurent Aimar
b226af3910
vqavideo: check for invalid/unsupported version
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 03:08:03 +02:00
Laurent Aimar
6c1fb3e763
eamad: release the reference frame on video size changes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 03:08:03 +02:00
Laurent Aimar
da35797359
eamad: check for out of bound reads when doing MC
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 03:08:03 +02:00
Laurent Aimar
6e20554a6d
eamad: avoid NULL derefence when missing the reference frame.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 03:08:03 +02:00
Laurent Aimar
6bfe0d4c3d
eatgv: fix pointer arithmetic overflows.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 03:08:02 +02:00
Laurent Aimar
09302a897d
eatgv: fix out of bound reads on corrupted motions vectors.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 03:08:02 +02:00
Laurent Aimar
74b9c59839
eamad: clear FF_INPUT_BUFFER_PADDING_SIZE bytes at the end of the temporary buffer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 03:08:02 +02:00
Laurent Aimar
31ac9b30ae
atrac1: give a valid context pointer to av_log().
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 03:08:02 +02:00
Michael Niedermayer
cfabd35d5e
pixdesc: fix gbr24p
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 02:04:54 +02:00
Michael Niedermayer
e084cad45f
ffmpeg: fix y/N regression so that \n is always needed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 02:04:54 +02:00
Michael Niedermayer
cca81e7eb0
sws: gbr24p input support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 02:04:54 +02:00
Michael Niedermayer
085ea85c2e
eval: fix () bug in not.
...
Found-by: Oded Shimon
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 02:04:54 +02:00
Michael Niedermayer
bd141af460
swscale: Fix prototypes of *toyv12 so they can be used with planar rgb input.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-09 02:04:23 +02:00
Themaister
a3e11fa43c
Start adding pixel definitions for planar rgb.
2011-10-08 23:19:14 +02:00
Michael Niedermayer
96fad826ff
ffmpeg: put space back that was lost during someone reformating it.
...
Found-by: Ramiro
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 23:18:48 +02:00
Mohamed Naufal
0ef2e660c1
libstagefright: reindent after previous commit
2011-10-09 00:48:52 +05:30
Mans Rullgard
a31e9f68a4
lavf: fix signed overflow in avformat_find_stream_info()
...
On the first iteration through this code, last_dts is always
INT64_MIN (AV_NOPTS_VALUE) and the subtraction overflows in
an invalid manner. Although the result is only used if the
input values are valid, performing the subtraction is still
not allowed in a strict environment.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-08 20:04:22 +01:00
Mans Rullgard
bb59156606
vp8: fix signed overflows
...
In addition to avoiding undefined behaviour, an unsigned type
makes more sense for packing multiple 8-bit values.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-08 20:03:55 +01:00
Mans Rullgard
e708afd3c0
motion_est: fix some signed overflows
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-08 20:03:55 +01:00
Mans Rullgard
559c244d42
dca: fix signed overflow in shift
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-08 20:03:55 +01:00
Mans Rullgard
d12294304a
aacdec: fix undefined shifts
...
Since nnz can be zero, this is needed to avoid a shift by 32.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-08 20:03:55 +01:00
Michael Niedermayer
db27bef747
dct-test: document the number of bits we use for testing.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 19:58:27 +02:00
Michael Niedermayer
3d5971d9f7
dct-test: better term for meximum error.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 19:57:30 +02:00
Michael Niedermayer
f3bacced24
ffmpeg: fix read_yn() if HAVE_TERMIOS_H || HAVE_KBHIT == 0
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 19:43:10 +02:00
Michael Niedermayer
dc46692ded
ffmpeg: fix setting codecs for demuxers.
...
Bug introduced by:
commit e3bf4e292c
Author: Anton Khirnov <anton@khirnov.net >
Date: Tue Aug 30 04:10:54 2011 +0200
ffmpeg: replace -vcodec/-acodec/-scodec with a better system.
The new option doesn't depend on its placement wrt -new* options (which
don't exist anymore) and works in a similar way as per-stream AVOptions.
-[vas]codec remain as aliases to -codec:[vas]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 19:21:22 +02:00
Michael Niedermayer
92ec66f983
ffmpeg: limit read_key() calls to get a tiny speed boost.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 18:37:47 +02:00
Michael Niedermayer
c09abba1d9
ffmpeg: avoid multiple redundant av_gettime() calls, rather reuse the value in a iteration of the main loop.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 18:37:47 +02:00
Michael Niedermayer
f3afc9d772
ffmpeg: fix run_as_daemon when HAVE_TERMIOS_H is false
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 18:37:47 +02:00
Michael Niedermayer
d6c231bac1
ffmpeg: cosmetic renamings to reduce difference to qatar.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 18:37:47 +02:00
Michael Niedermayer
0732dceef1
ffmpeg: call term_init() earlier
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 18:37:47 +02:00
Michael Niedermayer
570fb660d6
ffmpeg: make q_pressed volatile, it can be changed from signal handlers.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 17:26:43 +02:00
Michael Niedermayer
fb79558516
ffmpeg: dont call read_key() in decode_interrupt_cb() this can cause keys to be lost
...
also its slow when read_key() is slow and there are a very large number of calls
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 17:26:43 +02:00
Laurent Aimar
a00676e48e
bink: Check for various out of bound writes
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-08 16:32:01 +02:00
Laurent Aimar
24adf7832b
bink: Check for out of bound writes when building tree
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-08 16:25:56 +02:00
Michael Niedermayer
1339702540
eval: add gcd()
...
example: -vf 'scale=256:256,mp=geq=gcd(X\,Y)-2:128:128'
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 04:38:17 +02:00
Michael Niedermayer
9e5e086b7e
eval:add hypot()
...
useage example: -vf 'scale=256:256,mp=geq=random(1)/hypot(X-cos(N*0.07)*W/2-W/2\,Y-sin(N*0.09)*H/2-H/2)^2*1000000*sin(N*0.02):128:128'
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 04:38:01 +02:00
Mans Rullgard
ac6eab1496
put_bits: fix invalid shift by 32 in flush_put_bits()
...
If flush_put_bits() is called when the 32-bit buffer is empty,
e.g. after writing a multiple of 32 bits, and invalid shift by
32 is performed. Since flush_put_bits() is called infrequently,
this additional check should have negligible performance impact.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-08 02:41:58 +01:00
Michael Niedermayer
9b47173545
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (24 commits)
mpegps: Use av_get_packet() instead of poorly emulating it.
motionpixels: decode only the 111 complete frames for fate
mpc8: Check out of bound bands limit
xan: Prevent NULL dereference with missing palette
xan: Check for out of bound reads in xan_huffman_decode()
xan: Fixed out of bound accesses in xan_unpack()
motionpixels: Prevent calling init_vlc() with invalid parameters
shorten: Fix out of bound writes in fix_bitshift()
dsicinav: Check for out of bounds writes
tiertexseqv: Check for out of bound reads
quickdraw: Check for out of bound reads
dsicinav: Check for out of bounds reads
motionpixels: Fix the size of workspace buffers
motionpixels: Clear FF_INPUT_BUFFER_PADDING_SIZE bytes at the end of the temporary buffer
wmavoice: Check for corrupted extra data
wmavoice: Check for out of bound writes
xan: Prevent NULL dereferences with missing reference frame
bink: Prevent NULL dereferences with missing reference frame
wavpack: Reset internal state on corrupted blocks
wmapro: Validate the number of audio channels before using it
...
Conflicts:
libavcodec/h264.c
libavcodec/xan.c
tests/ref/fate/motionpixels
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 03:39:01 +02:00
Michael Niedermayer
ac7cda9e14
eval: add random()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 03:13:21 +02:00
Michael Niedermayer
8fd56f7b12
eval: make variables persistent so they can be used between evaluations.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 03:13:21 +02:00
Michael Niedermayer
74f77eb048
H264: set colorspace and full range to values indicating unspecified by default
...
Code based on ffdshow
Author unknown
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-08 03:13:21 +02:00
Alex Converse
98ef887a75
mpegps: Use av_get_packet() instead of poorly emulating it.
2011-10-07 17:04:14 -07:00
Clément Bœsch
3775af0fec
bintext: reset x and y pos after each frame decode.
...
This makes successive frames decode possible.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-07 22:28:07 +02:00
Maksym Veremeyenko
4052bf69ac
return error code if error happens
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-07 22:28:07 +02:00
Janne Grunau
c2f2dfb3dd
motionpixels: decode only the 111 complete frames for fate
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 19:32:07 +02:00
Laurent Aimar
9bd854b1ff
mpc8: Check out of bound bands limit
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 17:15:45 +02:00
Laurent Aimar
7d17a794f0
xan: Prevent NULL dereference with missing palette
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 17:15:31 +02:00
Laurent Aimar
3db3fdf4c6
xan: Check for out of bound reads in xan_huffman_decode()
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:32 +02:00
Laurent Aimar
3e0757c2a8
xan: Fixed out of bound accesses in xan_unpack()
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:32 +02:00
Laurent Aimar
1cd0a55163
motionpixels: Prevent calling init_vlc() with invalid parameters
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:32 +02:00
Laurent Aimar
5f05cf4ea9
shorten: Fix out of bound writes in fix_bitshift()
...
The data pointers s->decoded[*] already take into account s->nwrap.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:31 +02:00
Laurent Aimar
1720603287
dsicinav: Check for out of bounds writes
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:31 +02:00
Laurent Aimar
64263dd526
tiertexseqv: Check for out of bound reads
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:31 +02:00
Laurent Aimar
4fd56f842c
quickdraw: Check for out of bound reads
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:31 +02:00
Laurent Aimar
e3ca9b93d9
dsicinav: Check for out of bounds reads
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:31 +02:00
Laurent Aimar
210c80331e
motionpixels: Fix the size of workspace buffers
...
Some buffers must be mod 4 in width and/or height.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:31 +02:00
Laurent Aimar
d337dd3a90
motionpixels: Clear FF_INPUT_BUFFER_PADDING_SIZE bytes at the end of the temporary buffer
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:31 +02:00
Laurent Aimar
d99427cb8b
wmavoice: Check for corrupted extra data
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:31 +02:00
Laurent Aimar
1c1449b548
wmavoice: Check for out of bound writes
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:31 +02:00
Laurent Aimar
06be075cda
xan: Prevent NULL dereferences with missing reference frame
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:31 +02:00
Laurent Aimar
c7e631986b
bink: Prevent NULL dereferences with missing reference frame
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:31 +02:00
Laurent Aimar
2c6cf13940
wavpack: Reset internal state on corrupted blocks
...
wavpack_decode_block() supposes that it is called back with the exact
same buffer unless it has returned with an error. With multi-channels
files, wavpack_decode_frame() was breaking this assumption.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:31 +02:00
Laurent Aimar
2c1ba79941
wmapro: Validate the number of audio channels before using it
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:30 +02:00
Laurent Aimar
1e3336de69
mpc8: Fix return value on EOF
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:30 +02:00
Laurent Aimar
95010d18b2
shorten: Prevent block size from increasing
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:30 +02:00
Laurent Aimar
124a16f678
xan: Prevent out of bound accesses
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:30 +02:00
Michael Niedermayer
f22bc68dc0
Merge remote-tracking branch 'hexene/stagefright'
...
* hexene/stagefright:
libstagefright: start decode_thread() only after decode_frame() is called at least once.
libstagefright: mark the dummy frame as keyframe.
libstagefright: limit the output queue size
libstagefright: return EOS if CustomSource::read() is called after decode_thread() returns
libstagefright: set the correct frame size
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-07 15:32:30 +02:00
Mohamed Naufal
a85996d834
libstagefright: start decode_thread() only after decode_frame() is called at least once.
...
This prevents the situation where EOS is passed as the first frame to the
h/w decoder and thus avoids a potential crash.
2011-10-07 18:32:44 +05:30
Mohamed Naufal
fedbf9177c
libstagefright: mark the dummy frame as keyframe.
...
This makes sure decoder->read() returns if it is the first frame fed.
2011-10-07 18:32:40 +05:30
Mohamed Naufal
295f13953d
libstagefright: limit the output queue size
2011-10-07 18:32:36 +05:30
Mohamed Naufal
23ea48f2f7
libstagefright: return EOS if CustomSource::read() is called after decode_thread() returns
2011-10-07 18:32:31 +05:30
Mohamed Naufal
09a49e8919
libstagefright: set the correct frame size
2011-10-07 18:32:23 +05:30
Michael Niedermayer
14c21c1ff5
H264: Only wait before triggering ff_thread_setup_complete() until the next slice that contains a start-of-field/frame macroblock
...
This allows concurrent decoding of the last field/frame, rather than
only the last slice, of data packets with multiple NAL units packed
together.
This will fix the slowdown reported in e.g. bug 52.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-07 14:23:26 +02:00
Michael Niedermayer
355cc1a052
swresample/rematrix: show matrix with debug log level
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-07 13:51:40 +02:00
Michael Niedermayer
86602d1c79
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
vp6: Reset the internal state when aborting key frames header parsing
vp56: Release old pictures after a resolution changes
vp6: Check for huffman tree build errors
vp56: Check for missing reference frame data
cinepak: Fix invalid read access on extra data
vmd: fix segfaults on corruped streams
cook: Fix js_vlc_bits value validation for joint stereo
segafilm: Check for memory allocation failures in segafilm demuxer.
segafilm: Fix potential division by 0 on corrupted streams in the demuxer
Fixed segfault on corrupted sega streams in the demuxer.
Fixed deference of NULL pointer in motionpixels decoder.
libx264: support 9- and 10-bit output.
h264: correct implicit_weight for field-interlaced pictures.
mpegvideo: set correct offset for edge emulation buffer.
mpegvideo: fix position of bottom edge.
Conflicts:
libavcodec/motionpixels.c
libavcodec/mpegvideo.c
libavcodec/version.h
libavcodec/vmdav.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-07 03:38:50 +02:00
Marton Balint
177ed7e818
swresample: use av_get_default_channel_layout instead of guess_layout
...
Signed-off-by: Marton Balint <cus@passwd.hu >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-07 02:53:18 +02:00
Marton Balint
cbfca6225a
avutil: bump minor version because of av_get_default_channel_layout type fix
...
Well, probably an ABI breakage at least for 32bit, but hopefully it will go
unnoticed because the fix happened realtively soon.
Signed-off-by: Marton Balint <cus@passwd.hu >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-07 02:53:18 +02:00
Marton Balint
d2ba604421
audioconvert: fix type of av_get_default_channel_layout
...
Signed-off-by: Marton Balint <cus@passwd.hu >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-07 02:53:18 +02:00
Michael Niedermayer
b93cb8383f
lavc: add ff_init_buffer_info()
...
Fixes seeking per fileposition in ffplay.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-07 02:29:31 +02:00
Laurent Aimar
5ec55d216e
h264: reject unsupported 422 9 bit streams
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-07 00:57:05 +02:00
Marton Balint
9bf4371e1b
audioconvert: make 7POINT1 channel layout the default for 8 channels
...
Signed-off-by: Marton Balint <cus@passwd.hu >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-07 00:57:05 +02:00
Laurent Aimar
e588a5c2d4
h264: fix the size of PPS::chroma_qp_table
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-07 00:57:05 +02:00
Laurent Aimar
a72cad0a6c
vp6: Reset the internal state when aborting key frames header parsing
...
It prevents leaving the state only half initialized.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 00:37:32 +02:00
Laurent Aimar
3d09d0017d
vp56: Release old pictures after a resolution changes
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 00:27:24 +02:00
Laurent Aimar
066fff755a
vp6: Check for huffman tree build errors
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 00:27:03 +02:00
Laurent Aimar
0ec6d6e9b6
vp56: Check for missing reference frame data
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 00:25:43 +02:00
Laurent Aimar
d239d4b447
cinepak: Fix invalid read access on extra data
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-06 23:35:29 +02:00
Laurent Aimar
c0cbe36b18
vmd: fix segfaults on corruped streams
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-06 23:33:09 +02:00
Laurent Aimar
3a742470a8
cook: Fix js_vlc_bits value validation for joint stereo
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-06 23:31:06 +02:00
Laurent Aimar
1775b92fee
segafilm: Check for memory allocation failures in segafilm demuxer.
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-06 23:19:45 +02:00
Laurent Aimar
762ffa6861
segafilm: Fix potential division by 0 on corrupted streams in the demuxer
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-06 23:01:45 +02:00
Michael Niedermayer
a3ba542af3
h264: fix fill_colmap() to not store entries mbaff style when the reference is not mbaff at all
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-06 22:54:00 +02:00
Laurent Aimar
790f4dd5c9
Fixed segfault on corrupted sega streams in the demuxer.
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-06 22:32:02 +02:00
Laurent Aimar
69a0bce753
Fixed deference of NULL pointer in motionpixels decoder.
...
Some of the arguments given to init_vlc() come from the stream
and can be corrupted.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-06 22:29:12 +02:00
Michael Niedermayer
481747c6f7
ffmpeg: make -a/v/sn work with -map
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-06 21:59:50 +02:00
Michael Niedermayer
f7fbbf466f
lavf/utils: document AVIndexEntry.timestamp
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-06 20:21:40 +02:00
Michael Niedermayer
67b2df792f
swresample: Try to handle cases with input channel count and layout mismatching.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-06 20:21:40 +02:00
Clément Bœsch
696a780c47
bintext: fix warning message wording.
2011-10-06 18:42:42 +02:00
Gwenole Beauchesne
825dd135d8
vaapi: fix VC-1 decoding (reconstruct bitstream TTFRM correctly).
2011-10-06 15:35:48 +02:00
Michael Niedermayer
955113e31b
mpegps: drop incorrect line of sofdec detection
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-06 12:40:35 +02:00
Michael Niedermayer
5bebb6e64b
mpeg1dec: More complete sofdec support
...
Fixes Ticket517
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-06 12:40:31 +02:00
Anton Khirnov
d97efd7f87
libx264: support 9- and 10-bit output.
2011-10-06 09:16:06 +02:00
Clément Bœsch
1b3b4a575b
libmodplug: free file content buffer in read_close() callback.
2011-10-06 08:50:56 +02:00
Clément Bœsch
8830c4e8a9
libmodplug: add TODO entry for probing.
2011-10-06 08:30:38 +02:00
Clément Bœsch
c768e96668
libmodplug: add metadata support.
2011-10-06 08:30:38 +02:00
Clément Bœsch
e6f937237a
libmodplug: add an option to enlarge the max supported file size.
2011-10-06 08:30:37 +02:00
Clément Bœsch
a763b46298
libmodplug: support options (noise reduction, reverb, bass boost, ...)
2011-10-06 08:30:37 +02:00
Michael Niedermayer
6638207bce
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
Fix 'heigth' vs. 'height' typos.
lavc/lavf: use unique private classes.
lavc: use designated initializers for av_codec_context_class
Conflicts:
libavdevice/fbdev.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-06 03:42:14 +02:00
Nicolas George
2c1c0c5024
ffmpeg: fix forced key frames.
...
Now that the option was moved in the per-stream context,
the parsing is done before the time_base for the stream is decided.
This patch does the parsing in AV_TIME_BASE units and rescales the
timestamps later when the correct time base is known.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-06 03:39:15 +02:00
Michael Niedermayer
714517b26a
flvenc: Ignore metadata that has special values and is stored already based on
...
more correct values.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-06 03:20:57 +02:00
Michael Niedermayer
9fa05db400
swr-docs: update due to last change to swresample
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-06 00:32:01 +02:00
Michael Niedermayer
503e5e9db5
libswresample: support directly converting sampleformats and packed/planar in a single pass.
...
Previously a intermediate planar format was used when both input and output where packed.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-06 00:07:03 +02:00
Michael Niedermayer
63b6d5f33f
update_stream_timings: Remove redundant check.
...
Found-by:Nicolas
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-06 00:07:03 +02:00
Clément Bœsch
d7366d918f
libmodplug: handle EOF correctly.
2011-10-05 23:45:09 +02:00
Carl Eugen Hoyos
d9b6068764
Use WMAv2 as default audio codec for asf.
2011-10-05 23:44:14 +02:00
Carl Eugen Hoyos
3bcbd8c5c7
Use M4S2 as default video tag for MPEG-4 ASP in asf.
2011-10-05 23:44:13 +02:00
Clément Bœsch
9a2ceee2e3
libmodplug: simplify and fix read_packet() callback.
...
In case of av_new_packet() error, a correct return error code is raised,
the data memcpy is avoided, and pkt dts/pts are not assigned anymore
(since the defaults are good).
2011-10-05 21:25:03 +02:00
Clément Bœsch
5420885737
libmodplug: consistent use of sizeof.
2011-10-05 21:25:02 +02:00
Michael Niedermayer
f9bd979476
generic seeking: fail if there are 1000 non keyframes found with no keyframe.
...
This avoids scanning through a whole file just to fail.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-05 18:23:47 +02:00
Ronald S. Bultje
4418aa9cb3
h264: correct implicit_weight for field-interlaced pictures.
2011-10-05 04:01:23 -07:00
Ronald S. Bultje
330deb7592
mpegvideo: set correct offset for edge emulation buffer.
...
Using the old code, half of it was unused and the other half was too
small for e.g. >8bpp interlaced data, causing random buffer overruns.
2011-10-05 04:01:23 -07:00
Ronald S. Bultje
0884dd5a1b
mpegvideo: fix position of bottom edge.
...
It was wrong in colorspaces where horizontal and vertical chroma
subsampling are not the same, e.g. 422.
2011-10-05 04:01:23 -07:00
Diego Biurrun
e83c2ddebf
Fix 'heigth' vs. 'height' typos.
2011-10-05 11:12:01 +02:00
Anton Khirnov
a4ea00d021
lavc/lavf: use unique private classes.
...
This is needed by the new AVOptions API.
2011-10-05 07:52:30 +02:00
Anton Khirnov
0ba1e1978d
lavc: use designated initializers for av_codec_context_class
2011-10-05 07:52:05 +02:00
Michael Niedermayer
ec1ffae0cd
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
qcelpdec: cosmetics: do not add line break before opening bracket in 'for', 'while', 'if/else', and 'switch' statements.
qcelp: check output buffer size before decoding
qcelpdec: fix the return value of qcelp_decode_frame().
sipr: fix the output data size check and only calculate it once.
Synchronize various 4CCs and codec tags from FFmpeg.
qdm2: check output buffer size before decoding
Fix out of bound reads in the QDM2 decoder.
Check for out of bound writes in the QDM2 decoder.
ogg/celt: do not set sample_fmt in the demuxer
Conflicts:
libavcodec/avcodec.h
libavcodec/qdm2.c
libavformat/oggparsecelt.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-05 04:07:59 +02:00
Michael Niedermayer
f7da257a89
h264: remove assert() on ref_frame_count.
...
This assert can fail if a SPS with a smaller value becomes active.
Fixes Ticket532
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-05 03:21:47 +02:00
Michael Niedermayer
f108b33568
configure: fix compilation without libmodplug
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-05 00:34:14 +02:00
Laurent Aimar
0333d234b0
h264: do not let invalid values in h->ref_count after a decoder reset.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-05 00:07:39 +02:00
Laurent Aimar
253d18b352
h264: bit depth/chroma idc changes must go through a full format negociation.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-05 00:07:39 +02:00
Laurent Aimar
a51fbb56bb
h254: explicitly initialize bit depth/chroma idc
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-05 00:07:39 +02:00
Michael Niedermayer
751a4efd4d
libx264: Fix loop failure due to bufsize becoming 0
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-04 23:21:52 +02:00
Justin Ruggles
dd376b1a12
qcelpdec: cosmetics: do not add line break before opening bracket in 'for',
...
'while', 'if/else', and 'switch' statements.
also fixes some spacing, but only if already changing a line
2011-10-04 17:10:11 -04:00
Justin Ruggles
e43dd3d2a8
qcelp: check output buffer size before decoding
2011-10-04 17:10:11 -04:00
Chris Rankin
bde2570013
qcelpdec: fix the return value of qcelp_decode_frame().
...
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2011-10-04 17:09:53 -04:00
Clément Bœsch
26c7ff9317
Add libmodplug support.
2011-10-04 22:36:33 +02:00
Justin Ruggles
1b5a189f06
sipr: fix the output data size check and only calculate it once.
2011-10-04 16:13:20 -04:00
Clément Bœsch
073effb6e4
deshake: simplify filename check.
2011-10-04 21:36:54 +02:00
Clément Bœsch
e39be59b85
configure: remove bashism equality check for target_os.
2011-10-04 21:36:54 +02:00
Clément Bœsch
d4005e22c3
deshake: misc style fixes.
2011-10-04 21:36:54 +02:00
Michael Niedermayer
b0f270fdef
deshake: move angles from stack to heap.
...
Fixes Ticket530
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-04 18:32:36 +02:00
Michael Niedermayer
1e4da6031c
deshake: Allow specifying the filename for statistics and disable them by default.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-04 17:20:42 +02:00
Diego Biurrun
12bd8532cf
Synchronize various 4CCs and codec tags from FFmpeg.
2011-10-04 11:58:53 +02:00
Michael Niedermayer
171a5b5d36
deshake: remove non const static
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-04 08:31:40 +02:00
Clément Bœsch
1912c215e0
doxygen: remove a few @file parameters.
...
It is not mandatory and prevents breakage on rename.
2011-10-04 08:04:17 +02:00
Clément Bœsch
65d5edcd2c
lavfi: remove align tabs in Makefile.
2011-10-04 07:56:56 +02:00
Clément Bœsch
dc3aeba3b1
ass_split: fix invalid doxygen group end markers.
2011-10-04 07:48:56 +02:00
Clément Bœsch
a667e90aae
proresdec_gpl: remove wrong @file reference.
2011-10-04 07:48:56 +02:00
Clément Bœsch
64960fedee
bintext: remove wrong @file reference.
2011-10-04 07:48:55 +02:00
Clément Bœsch
136093236f
deshake: fix doxygen comments.
2011-10-04 07:48:55 +02:00
Clément Bœsch
5241e0144f
isom: replace pseudo doxycomments with normal comments.
...
Those chunks don't need to be parsed and they weren't parsed correctly
by Doxygen anyway.
2011-10-04 07:48:24 +02:00
Michael Niedermayer
f962518036
pngdec: set reference correctly for corepng.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-04 06:39:29 +02:00
Michael Niedermayer
51b0694bc0
ff_dv_frame_profile2: Check input buffer size.
...
Based on code by DivX, Inc. / drffmpeg
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-04 04:22:55 +02:00
Michael Niedermayer
dd968a2edf
cinepak: detect keyframes
...
Code by DivX, Inc.
Taken from drffmpeg
Author: unknown
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-04 04:16:28 +02:00
Justin Ruggles
7d49f79f1c
qdm2: check output buffer size before decoding
2011-10-03 21:34:19 -04:00
Laurent Aimar
5a19acb17c
Fix out of bound reads in the QDM2 decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2011-10-03 21:34:19 -04:00
Laurent Aimar
291d74a46d
Check for out of bound writes in the QDM2 decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com >
2011-10-03 21:34:19 -04:00
Michael Niedermayer
2f9d6ffda7
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
id3v2: remove pointless casts
id3v2: read TXXX frames with two calls to decode_str() instead of one.
id3v2: don't discard the whole tag when encountering empty frames.
libvpx: fix build with older libvpx versions.
ARM: check for inline asm 'y' operand modifier support
Conflicts:
libavcodec/libvpxenc.c
libavformat/id3v2.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-04 03:24:59 +02:00
Justin Ruggles
fc2dd2c7ac
ogg/celt: do not set sample_fmt in the demuxer
2011-10-03 21:23:22 -04:00
Luca Barbato
98df93c9fe
libvpxenc: support vpxencs command line options.
...
This simplifies useage for users who are used to vpxenc.
We continue to support the previous options with the exception of the flags
for which it would be slightly messy.
2011-10-04 03:18:33 +02:00
Michael Niedermayer
2cdb5e1986
deshake: nicer looking defaults
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-04 02:15:18 +02:00
danielgtaylor
0cc2ed4a20
libavfilter: add deshake filter
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-04 02:14:21 +02:00
danielgtaylor
7985381e23
libavfilter: image transform code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-04 02:10:18 +02:00
Michael Niedermayer
eaa21b6870
H264: hotfix for speedloss on frame threading and h264 files with slices.
...
This fix is not ideal as it still limits the multithreading on field pictures
to the 2nd field only.
Ill try to fix it properly to allow both fields to decode concurrently but this
needs more work.
This bug exists since and was caused by:
commit ea6331f8bb
Author: Ronald S. Bultje <rsbultje@gmail.com >
Date: Mon Jun 20 10:24:33 2011 -0400
h264-mt: fix deadlock in packets with multiple slices (e.g. MP4).
2011-10-04 00:26:18 +02:00
Michael Niedermayer
a9255d3781
threads: warn in case of multiple finished setup calls.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-03 23:43:22 +02:00
Michael Niedermayer
360a3d8991
h264_parser: print AU size on error.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-03 23:43:22 +02:00
Michael Niedermayer
d5c0e89e7a
h264_parser: AVC support.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-03 23:43:22 +02:00
Michael Niedermayer
2f503851c6
fate: fix due to new yuv444 formats
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-03 23:43:22 +02:00
Dominique Leuenberger
4839fafc1c
RELEASE: 0.8.5 has been released
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-03 23:32:22 +02:00
Reimar Döffinger
ae23b26995
Enable conversions to YUV444P9/YUV444P10, they seem to work fine.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-10-03 21:31:46 +02:00
Michael Niedermayer
85ea5c6e73
lavf/utils: fix overestimation of the rational number density.
...
Fixes Ticket498
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-03 16:32:17 +02:00
Loren Osborn
bf5c3bac51
mpegtsenc: Lift limit on PMT PID
...
Fixes Ticket518
2011-10-03 16:03:29 +02:00
chinshou
2d8cfe1f65
libcdio: Fix missing avclass in context
...
Fixes Ticket526
2011-10-03 15:40:40 +02:00
Anton Khirnov
60df6b0048
id3v2: remove pointless casts
2011-10-03 13:06:51 +02:00
Anton Khirnov
d2961e4ebf
id3v2: read TXXX frames with two calls to decode_str() instead of one.
...
Read the key in the first, value in the second.
This allows to avoid pointless strdups and simplify decode_str() by
dropping two of its parameters.
2011-10-03 13:06:51 +02:00
Anton Khirnov
1e18d32d01
id3v2: don't discard the whole tag when encountering empty frames.
...
While they're technically invalid, it's better to skip them and try to
read the rest of the tag.
2011-10-03 13:06:41 +02:00
Anton Khirnov
24ec9ac475
libvpx: fix build with older libvpx versions.
...
VPX_ERROR_RESILIENT_DEFAULT and VPX_ERROR_RESILIENT_PARTITIONS weren't
defined before 4cb0ebe5b27d35ccc2a78c1d16f2622ddef21f74 (CommitDate: Tue
Jun 28 11:10:17 2011)
2011-10-03 13:06:24 +02:00
Mans Rullgard
6308729e68
ARM: check for inline asm 'y' operand modifier support
...
The inline asm added in bf5d46d uses the 'y' modifier which
is only supported from gcc 4.5. This check allows building
with older compilers.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-03 08:56:24 +01:00
Ronald S. Bultje
a5dfeb612e
VP8: armv6 optimizations.
...
From 52.503s (~40fps) to 27.973sec (~80fps) decoding of 480p sintel
trailer, i.e. a ~2x speedup overall, on a Nexus S.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-03 01:49:36 +02:00
Michael Niedermayer
c3a774969a
avutil: bump for av_get_default_channel_layout()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-03 01:17:42 +02:00
Michael Niedermayer
487e088e5e
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
mpc8: check output buffer size before decoding
mpc7: return error if packet is too small.
mpc7: check output buffer size before decoding
nellymoserdec: allocate float_buf only when decoding to int16
nellymoserdec: use NELLY_BUF_LEN instead of 128
nellymoserdec: use NELLY_BLOCK_LEN instead of 64 when appropriate.
nellymoserdec: allow user to request SAMPLE_FMT_FLT for output samples.
nellymoser: check output buffer size before decoding
win32: improve threading algorithm warning
Conflicts:
libavcodec/nellymoserdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-03 01:02:45 +02:00
Michael Niedermayer
cffd20b90e
MAINTAINERS: new ffplay maintainer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-03 00:38:50 +02:00
Michael Niedermayer
57fa2fc69f
Merge remote-tracking branch 'cus/stable'
...
* cus/stable:
ffplay: use libswresample instead of av_audio_convert
audioconvert: add av_get_default_channel_layout public function
ffplay: use avctx->channels and avctx->freq before avcodec_open2 consistently
ffplay: remove now unnecessary request_channels, we set it now with options
ffplay: set request_channels to 2
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 23:53:33 +02:00
Compn
3ebab62fc6
riff: map 0x0038 to amrnb, works on http://video.mopoto.com/4/40/407/40709.avi
2011-10-02 17:41:16 -04:00
Marton Balint
1dd3c473a2
ffplay: use libswresample instead of av_audio_convert
...
Previously ffplay expected SDL_AudioOpen to provide the requested sample rate
and channel number. This is no longer a requirement because this patch replaces
the audio convert function with libswresample's swr_convert which is capable of
handling different sample formats, sample rates and different number of
channels and different channel layouts.
The patch also removes the hardcoded 16bit samples assumption and uses
av_get_bytes_per_sample almost everywhere. The only exceptions are
the update_sample_display and video_audio_display functions, it
seemed too much of a headache to make them generic.
We also fix a tiny bug in sdl_audio_callback, we ensure that the number of
bytes when we put silence in the buffer is a multiple of the frame size.
2011-10-02 22:23:11 +02:00
Marton Balint
60aaf044f3
audioconvert: add av_get_default_channel_layout public function
2011-10-02 21:21:46 +02:00
Marton Balint
2446a8cc0a
ffplay: use avctx->channels and avctx->freq before avcodec_open2 consistently
2011-10-02 21:21:46 +02:00
Marton Balint
1e7f7dc2d1
ffplay: remove now unnecessary request_channels, we set it now with options
2011-10-02 21:21:46 +02:00
Michael Niedermayer
92dac3a9dd
ffplay: set request_channels to 2
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 21:21:46 +02:00
Laurent Aimar
a4fd95b5d5
h264: fix intra 16x16 mode check when using mbaff and constrained_intra_pred.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 21:20:57 +02:00
Michael Niedermayer
6edce391cf
libvpxenc: cosmetics to make code more similar to lucas.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 21:20:46 +02:00
Laurent Aimar
c2b7f7748b
h264: check for invalid bit depth value.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 19:00:54 +02:00
Laurent Aimar
27d3361e34
h264: add entries for 11 and 12 bits in ff_h264_chroma_qp[][]
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 18:59:58 +02:00
Laurent Aimar
bcf881a685
h264: fix the check for invalid SPS:num_ref_frames.
...
This patch set the limit to 16.
For information, thoses previous commits:
41f7e2d11d
5cbb0e70a0
assumed it was either 30 or 32.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 16:48:58 +02:00
Laurent Aimar
2428b53f6d
h264: do not let invalid values in h->ref_count on ff_h264_decode_ref_pic_list_reordering() errors.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 16:48:58 +02:00
Laurent Aimar
db5b487551
Reject video with non multiple of 16 width/height in the 4xm decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 16:48:58 +02:00
Justin Ruggles
5674d4b0a3
mpc8: check output buffer size before decoding
2011-10-02 10:34:39 -04:00
Justin Ruggles
8290d1f38b
mpc7: return error if packet is too small.
2011-10-02 10:34:39 -04:00
Justin Ruggles
c8b5c4d274
mpc7: check output buffer size before decoding
2011-10-02 10:34:39 -04:00
Justin Ruggles
fac6b7f9f2
nellymoserdec: allocate float_buf only when decoding to int16
2011-10-02 10:19:04 -04:00
Justin Ruggles
32b484464c
nellymoserdec: use NELLY_BUF_LEN instead of 128
2011-10-02 10:19:04 -04:00
Justin Ruggles
ded0800d44
nellymoserdec: use NELLY_BLOCK_LEN instead of 64 when appropriate.
2011-10-02 10:19:04 -04:00
Justin Ruggles
84464b2e7f
nellymoserdec: allow user to request SAMPLE_FMT_FLT for output samples.
2011-10-02 10:19:04 -04:00
Justin Ruggles
8b31c086b6
nellymoser: check output buffer size before decoding
2011-10-02 10:19:04 -04:00
Stefano Sabatini
2a9046c741
vf_lut.c: fix wrong syntax in example
2011-10-02 15:21:12 +02:00
Stefano Sabatini
91492bd1c4
lavfi: remove usage of deprecated av_opt_set_defaults2() function
...
Prefer av_opt_set_defaults() instead.
2011-10-02 15:16:36 +02:00
Luca Barbato
0e5cc174bb
win32: improve threading algorithm warning
...
If no threading is requested do not issue warning about unsupported
threading algorithm.
2011-10-02 08:58:08 +02:00
Michael Niedermayer
f8a4075eb8
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavc: add video/audio/encoding flags to global_quality option
libvpxenc: use libvpx's own defaults for some parameters
vpxenc: add private options
Conflicts:
libavcodec/libvpxenc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 04:43:48 +02:00
Michael Niedermayer
0a19b4b0ba
4xm decoder: fix data size for i2 frames.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 03:40:26 +02:00
Michael Niedermayer
1008f639e2
4xm decoder: print some error messages in case of errors.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 03:39:59 +02:00
Laurent Aimar
9c661e952f
Check for out of bound accesses in the 4xm decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 03:24:17 +02:00
Laurent Aimar
b399cbfba5
Prevent block size from inreasing in the shorten decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 03:24:17 +02:00
Laurent Aimar
581898ae88
Check for out of bound reads in PTX decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 03:24:17 +02:00
Laurent Aimar
e1d5bbeb39
Fix the check for missing references in ff_er_frame_end() for H264.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 03:24:17 +02:00
Laurent Aimar
90a69b2f61
Clear FF_INPUT_BUFFER_PADDING_SIZE bytes at the end of the temporary buffers used in 4xm decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 03:24:17 +02:00
Laurent Aimar
4a8ff0636d
Prevent NULL dereference when the huffman table is invalid in the 4xm decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 03:24:16 +02:00
Laurent Aimar
a1876e0072
Fix use of uninitialized memory in 4X Technologies demuxer.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 01:02:29 +02:00
Michael Niedermayer
8c851ef5a8
h264: increase ref_poc size to 32 as it can be per field.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 00:47:54 +02:00
Michael Niedermayer
3af2de76ac
h264: set unused ref_counts to 0 as a precautionary meassure.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-02 00:45:41 +02:00
Michael Niedermayer
78f08c06e6
ff_dot_product(): change return value to int64_t
...
Idea-by: Vitor
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 23:16:25 +02:00
Vitor Sessak
edf1a8e361
g729dec: initialize bit reader with the correct buffer size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 18:18:06 +02:00
Michael Niedermayer
4159719473
g723.1_data: remove unneeded L
...
Found-by: Vitor
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 18:13:30 +02:00
Michael Niedermayer
c9c7a776db
h264: try reading SPS with wrong escaping, it sometimes works better
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 17:59:27 +02:00
Anton Khirnov
b036a7180c
lavc: add video/audio/encoding flags to global_quality option
2011-10-01 07:16:56 +02:00
Luca Barbato
6450f26c9a
libvpxenc: use libvpx's own defaults for some parameters
...
Specifically, qmin/qmax, gop_size and keyint_min.
Fixes bug 47.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-01 07:16:56 +02:00
Luca Barbato
e3eb015ba4
vpxenc: add private options
...
Make libvpx support close to the libx264 one. Thanks to
Jan Gerber <j@v2v.cc > for the support.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-01 07:16:56 +02:00
Michael Niedermayer
fe70c1f45f
g729dec: prevent out of array access
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 06:07:05 +02:00
Michael Niedermayer
9cb9e39c41
avienc: Add a limit on the number of skiped frames muxed in a row.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 03:48:33 +02:00
Michael Niedermayer
8447703c16
vf_scale.c: propagate error code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 03:16:32 +02:00
Michael Niedermayer
ef74ab20c2
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (34 commits)
dpcm: return error if packet is too small
dpcm: use smaller data types for static tables
dpcm: use sol_table_16 directly instead of through the DPCMContext.
dpcm: replace short with int16_t
dpcm: check to make sure channels is 1 or 2.
dpcm: misc pretty-printing
dpcm: remove unnecessary variable by using bytestream functions.
dpcm: move codec-specific variable declarations to their corresponding decoding blocks.
dpcm: consistently use the variable name 'n' for the next input byte.
dpcm: output AV_SAMPLE_FMT_U8 for Sol DPCM subcodecs 1 and 2.
dpcm: calculate and check actual output data size prior to decoding.
dpcm: factor out the stereo flag calculation
dpcm: cosmetics: rename channel_number to ch
avserver: Fix a bug where the socket is IPv4, but IPv6 is autoselected for the loopback address.
lavf: Avoid using av_malloc(0) in av_dump_format
dxva2_h264: pass the correct 8x8 scaling lists
dca: NEON optimised high freq VQ decoding
avcodec: reject audio packets with NULL data and non-zero size
dxva: Add ability to enable workaround for older ATI cards
latmenc: Set latmBufferFullness to largest value to indicate it is not used
...
Conflicts:
libavcodec/dxva2_h264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 02:54:46 +02:00
Laurent Aimar
5ca5d432e0
Fix out of bound reads/writes in the TIFF decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 02:41:40 +02:00
Laurent Aimar
4a7876c6e4
Check for out of bound writes in the QDM2 decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 02:41:40 +02:00
Laurent Aimar
491eaf35ae
Fix out of bound reads in the QDM2 decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 02:41:40 +02:00
Laurent Aimar
346876ec16
Fix out of bound reads due to integer overflow in the ADPCM IMA Electronic Arts EACS decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 02:41:40 +02:00
Laurent Aimar
a5d46235f3
Check for out of bound reads in the Electronic Arts CMV decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 02:41:40 +02:00
Laurent Aimar
113d7be624
Prevent NULL dereferences when missing the reference frame in the Electronic Arts CMV decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 02:41:40 +02:00
Laurent Aimar
e9064c9ce8
Fix potential pointer arithmetic overflows in the Electronic Arts CMV decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 02:41:39 +02:00
Laurent Aimar
39993860e1
Prevent infinite loop in the ANM decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 02:41:39 +02:00
Laurent Aimar
d39d7122e3
Fix double free on error in Deluxe Paint Animation demuxer.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 02:41:39 +02:00
Laurent Aimar
7afe9e5638
Check for out of bound reads in AVS decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 02:41:39 +02:00
Laurent Aimar
5d44c061cf
Check for out of bound writes in the avs demuxer.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 02:41:39 +02:00
Laurent Aimar
1cce7def0a
Check for corrupted data in avs demuxer.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 02:41:39 +02:00
Michael Niedermayer
834b3760a7
swresample: check for invalid sample formats.
...
Bug-Found-by: Justin Ruggles
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 01:39:17 +02:00
Michael Niedermayer
2a93f28a4b
avformat_free_context: favor av_freep()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 01:29:30 +02:00
Michael Niedermayer
3b6c0ba382
oggenc: favor av_freep()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 01:26:55 +02:00
Michael Niedermayer
17d51938d2
swr_test: test planar audio
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 01:17:39 +02:00
Michael Niedermayer
a75b254c74
swr: minor fixes to get planar audio working
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 01:17:39 +02:00
Michael Niedermayer
7322483d72
mpegvideo: increase emu edge buffer size
...
This fixes a crash with 422 H.264
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-10-01 01:16:25 +02:00
Justin Ruggles
08bd22a61b
dpcm: return error if packet is too small
2011-09-30 18:15:53 -04:00
Justin Ruggles
0354fb7ebe
dpcm: use smaller data types for static tables
2011-09-30 18:15:53 -04:00
Justin Ruggles
5a54d51017
dpcm: use sol_table_16 directly instead of through the DPCMContext.
2011-09-30 18:15:53 -04:00
Justin Ruggles
f47f7efd14
dpcm: replace short with int16_t
2011-09-30 18:15:53 -04:00
Justin Ruggles
8d77d12a2b
dpcm: check to make sure channels is 1 or 2.
2011-09-30 18:15:53 -04:00
Justin Ruggles
4bad464e7f
dpcm: misc pretty-printing
2011-09-30 18:15:53 -04:00
Justin Ruggles
1de8401c56
dpcm: remove unnecessary variable by using bytestream functions.
...
Uses 'buf' directly instead of a separate iterator variable 'in'.
2011-09-30 18:15:53 -04:00
Justin Ruggles
fc6faee0d1
dpcm: move codec-specific variable declarations to their corresponding decoding blocks.
2011-09-30 18:15:53 -04:00
Justin Ruggles
989bb7bd04
dpcm: consistently use the variable name 'n' for the next input byte.
2011-09-30 18:15:52 -04:00
Justin Ruggles
04b24cf94b
dpcm: output AV_SAMPLE_FMT_U8 for Sol DPCM subcodecs 1 and 2.
...
Uses the native sample format for the codec instead of left-shifting all
samples by 8.
2011-09-30 18:15:52 -04:00
Justin Ruggles
76db17dc7d
dpcm: calculate and check actual output data size prior to decoding.
2011-09-30 18:15:52 -04:00
Justin Ruggles
3db8db406f
dpcm: factor out the stereo flag calculation
2011-09-30 18:15:52 -04:00
Justin Ruggles
b09c7eefb7
dpcm: cosmetics: rename channel_number to ch
...
Make the code easier to read.
2011-09-30 18:15:52 -04:00
Reimar Döffinger
812010c17e
Remove unused variable.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-09-30 23:33:43 +02:00
Nathan Caldwell
f5e717f3c7
avserver: Fix a bug where the socket is IPv4, but IPv6 is autoselected for the loopback address.
...
This fixes bind(8080): Address family not supported by protocol.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-30 21:33:52 +02:00
Martin Storsjö
e81e5e8ad2
lavf: Avoid using av_malloc(0) in av_dump_format
...
On OS X, av_malloc(0) returns pointers that cause crashes when
freed.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-30 22:31:30 +03:00
Carl Eugen Hoyos
bcb1555489
dxva2_h264: pass the correct 8x8 scaling lists
...
Copy the Inter 8x8 scaling list as second 8x8 matrix into DXVA2's
quantization matrix data structure instead of a potentially unset
Intra chroma scaling matrix.
Fix dxva2 decoding for some H264 samples.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-09-30 20:15:17 +02:00
Alex Converse
3b0e242825
lavf/utils: Drop old hack for implicit HE-AAC signaling.
...
It has not been needed since a58858d60d .
Fixes decode of implicit HE-AAC without extradata or ADTS headers.
2011-09-30 20:08:10 +02:00
Mans Rullgard
bf5d46d8e6
dca: NEON optimised high freq VQ decoding
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-09-30 19:01:23 +01:00
Michael Niedermayer
53d5c463b2
doc: add swresample doc
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 18:10:28 +02:00
Michael Niedermayer
78972a69e3
lavf/utils: ignore subtitle timestamps in timings calculation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 17:17:22 +02:00
Justin Ruggles
6326afd5e9
avcodec: reject audio packets with NULL data and non-zero size
...
There is no valid reason the user should ever send such packets in the
first place, but the documentation for CODEC_CAP_DELAY states that the
codec is guaranteed not to get a NULL packet unless that capability is
set. That isn't true without preventing this case.
2011-09-30 11:02:50 -04:00
Maksym Veremeyenko
dacf076614
fix memory leak in oggenc
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 16:27:54 +02:00
Jean First
f65c6f751f
Enable multithreding when decoding with libopenjpeg
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 15:40:56 +02:00
Jean First
125ea3ee06
Warn the user if lowres > max_lowres, set lowres to max_lowres and continue
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 15:30:35 +02:00
Joakim Plate
dcce09d64b
dxva: Add ability to enable workaround for older ATI cards
...
The workaround needs to be enabled per PCI ID which cannot be detected inside
libavcodec. So add a flag to manually enable the alternate behavior.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-09-30 11:17:53 +02:00
Kieran Kunhya
d4a544cbc4
latmenc: Set latmBufferFullness to largest value to indicate it is not used
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-09-30 11:17:27 +02:00
Laurent Aimar
f42b3195d3
Fix out of bound writes in fix_bitshift() of the shorten decoder.
...
The data pointers s->decoded[*] already take into account s->nwrap.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 04:14:23 +02:00
Michael Niedermayer
c329972687
g729: dont force all cpu optims to off but override just the one that doesnt work.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 03:02:02 +02:00
Michael Niedermayer
8045af65d4
ppc: fix usage of dsp_mask
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 02:43:20 +02:00
Michael Niedermayer
30ba924bc8
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
dca: clear inactive subbands only once in qmf_32_subbands()
vf_unsharp: set default chroma size value to 5x5
vf_unsharp: fix out-of-buffer read
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 02:19:36 +02:00
Laurent Aimar
5d7e3d7167
Check for out of bound reads in the Tiertex Limited SEQ decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 02:09:59 +02:00
Laurent Aimar
62234a4d3a
Fix the size of workspace buffers in the motion pixels decoder.
...
Some buffers must be mod 4 in width and/or height.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 02:09:59 +02:00
Laurent Aimar
e60619f9b4
Clear FF_INPUT_BUFFER_PADDING_SIZE bytes at the end of the temporary buffer used in motion pixels decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 02:09:59 +02:00
Laurent Aimar
3035c4034b
Check for out of bounds writes in the Delphine Software International CIN decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 02:09:58 +02:00
Laurent Aimar
8e5f093c2c
Check for out of bounds reads in the Delphine Software International CIN decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 02:09:57 +02:00
Laurent Aimar
44e2f0c3cd
Check for out of bound reads in the QuickDraw decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 02:09:57 +02:00
Michael Niedermayer
9714a78bbb
Revert "general.texi: we dont have a g729 encoder yet"
...
This reverts commit 84f8aef40c .
2011-09-30 01:16:30 +02:00
Michael Niedermayer
68bbaac7e5
fate: only test 10seconds of the g729 data, the reference files are too huge otherwise.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 00:13:26 +02:00
Michael Niedermayer
9cff6d9eff
libstagefright: change Libav to FFmpeg in copyright header with permission of author.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 00:08:20 +02:00
Michael Niedermayer
96b0764196
fate: g729 test
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 00:08:20 +02:00
Michael Niedermayer
0f68a2bc8b
g723_1_demuxer: rco is also a commonly used extension.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-30 00:08:20 +02:00
Tomas Härdin
e571305a71
mov: Only touch extradata in mov_read_extradata() if codec_id is what we expect
...
Extradata should only be parsed from the avss, fiel, jp2h and alac atoms for
AVS, MJPEG, Motion JPEG 2000 and ALAC respectively.
This also fixes the mov demuxer coming up with bogus extradata for some
AVC-Intra samples due to the presence of fiel atoms.
2011-09-29 15:07:28 -07:00
Laurent Aimar
c8b835954a
Check for out of bound reads in xan_huffman_decode() of the xan decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 23:21:15 +02:00
Compn
7afe23808a
add LJ2K and LJ2C to jpeg2000 decoder
...
works on http://web.archive.org/web/20070128115405/http://www.leadcodecs.com/Download/MJ2K/WhatBox_MJ2k_720x480_PerfectQuality2.avi
2011-09-29 17:14:08 -04:00
Justin Ruggles
e562fbd003
adpcm: move codec-specific variable declarations to the sections for the corresponding codecs.
2011-09-29 16:54:01 -04:00
Justin Ruggles
9662539c10
adpcm: check buffer size in Funcom ISS decoder before reading header.
...
Also use the post-header data size to control termination of the main
decoding loop.
2011-09-29 16:54:01 -04:00
Justin Ruggles
ba5d2890d7
adpcm: simplify reading of Funcom ISS frame header.
2011-09-29 16:54:01 -04:00
Justin Ruggles
5c9eb4fabb
adpcm: check buffer size in IMA DK4 decoder before reading header.
...
Also use the post-header data size to control termination of the main
decoding loop.
2011-09-29 16:54:01 -04:00
Justin Ruggles
a57ea1a87e
adpcm: simplify reading of IMA DK4 frame header.
2011-09-29 16:54:01 -04:00
Justin Ruggles
8114f94ac9
adpcm_ms: clean up reading of predictor coefficients
2011-09-29 16:54:01 -04:00
Justin Ruggles
943f4db552
adpcm_4xm: process planar packets sequentially rather than simultaneously.
...
Also properly clip the right channel step_index.
2011-09-29 16:54:00 -04:00
Justin Ruggles
119974b164
adpcm_ima_wav: process channel-interleaved blocks sequentially rather than simultaneously.
...
Speeds up the ADPCM IMA WAV decoder by 15-20% overall.
2011-09-29 16:54:00 -04:00
Justin Ruggles
7c287b18a0
adpcm: update reference links
...
Add Multimedia Wiki link.
Mark dead links with [dead]. Some can still be accessed through archive.org.
Update URLs for pages which have moved.
Replace duplicated links in adpcmenc.c with a note to see the ADPCM decoder
reference documents.
2011-09-29 16:54:00 -04:00
Justin Ruggles
ac94b8bcc6
adpcm: simplify packet size bounds checking in the ADPCM IMA QT decoder.
...
This is easier to understand. It also avoids returning existing samples mixed
with new samples when the packet is too small.
2011-09-29 16:54:00 -04:00
Justin Ruggles
de0b586a87
adpcm: simplify and speed up several ADPCM decoders.
2011-09-29 16:54:00 -04:00
Justin Ruggles
5a9ed7c110
adpcm: pretty-print tables
2011-09-29 16:54:00 -04:00
Michael Niedermayer
04b4353f07
g723.1: very minor simplify of gen_acb_excitation()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 21:50:59 +02:00
Michael Niedermayer
631eee6e90
g723.1: use MULL(a,b,15) for MULL2()
...
idea by vitor
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 21:46:37 +02:00
Michael Niedermayer
cb58adaaa3
g723.1: simplify scale_vector()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 21:44:04 +02:00
Michael Niedermayer
431f8af824
g723.1: replace loop of normalize_bits( by av_log2()
...
idea by vitor
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 21:44:03 +02:00
Vitor Sessak
6e505547f1
g723.1: cleanup square_root()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 21:44:03 +02:00
Michael Niedermayer
c02c52f7b2
g723.1_ use skip_bits1()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 21:44:03 +02:00
Michael Niedermayer
fac3ac3970
g723.1: use get_bits1()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 21:44:03 +02:00
Michael Niedermayer
11512367d3
celp_math: cleanup ff_dot_product()
...
based on code & idea by vitor
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 21:44:03 +02:00
Michael Niedermayer
84f8aef40c
general.texi: we dont have a g729 encoder yet
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 21:44:03 +02:00
Mohamed Naufal Basheer
abd71130bd
G.723.1 doc and change log entry
2011-09-29 21:44:03 +02:00
Mohamed Naufal Basheer
f990dc374e
Add the G723.1 demuxer and decoder
2011-09-29 21:44:03 +02:00
Mohamed Naufal Basheer
da43980fa5
Add G.723.1 decoder data tables
2011-09-29 21:44:03 +02:00
Mohamed Naufal Basheer
a82c6238ae
Add dot_product function for use by the G.723.1 decoder
2011-09-29 21:44:03 +02:00
Mohamed Naufal Basheer
bcc67dffa0
Add a shift parameter to celp_lp_synthesis_filter for reuse by the G.723.1 decoder
2011-09-29 21:43:52 +02:00
Alex Converse
fcbe421cee
prores: Handle 0 or fewer bits left
...
show_bits() is undefined when the number of bits is less than or equal to
zero.
2011-09-29 09:45:57 -07:00
Alex Converse
fe21f78d2b
mpeg probe: check the 2/4-bit synchronization value found after a pack_start_code.
2011-09-29 09:45:57 -07:00
Mans Rullgard
bf00a73ace
dca: clear inactive subbands only once in qmf_32_subbands()
...
Writing zeros to the high entries in the array need only be
done once as the cutoff position is constant throughout the
loop.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-09-29 12:34:17 +01:00
Carl Eugen Hoyos
ecf31a68fd
Show configuration and library version with AV_LOG_INFO.
...
This partly reverts 1c5e9551bc ,
a change of behaviour that was not discussed.
The reason for the revert is that FFmpeg cares about bugreports.
2011-09-29 12:59:05 +02:00
Stefano Sabatini
1ee2014190
vf_unsharp: set default chroma size value to 5x5
...
The previous default value 0x0 was not good, since it is not even
valid.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-29 07:20:05 +02:00
Stefano Sabatini
998e8519ef
vf_unsharp: fix out-of-buffer read
...
In apply_unsharp(), when y is >= height, prevent out-of-buffer reading
from src, read from the last buffer line in src2 instead.
The check was implemented in the original unsharp libmpcodecs code and
lost in the port.
This also fixes output discrepancy between the two filters.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-29 07:19:30 +02:00
Laurent Aimar
b4483a531a
Check for unsupported parameters in ff_j2k_dwt_init()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 06:11:18 +02:00
Laurent Aimar
02660a8713
Check for out of bound reads in jpeg 2000 decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 06:11:18 +02:00
Laurent Aimar
41b7389cad
Prevent calling init_vlc() with invalid parameters in motionpixels decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 06:11:18 +02:00
Laurent Aimar
56ee5a9ad1
Prevent NULL dereference when the palette is missing in the xan decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 06:11:18 +02:00
Laurent Aimar
5279141c1d
Fixed out of bound accesses in xan_unpack() of the xan decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 06:11:18 +02:00
Michael Niedermayer
da343ff432
swr_test: dont test samples that have not been written
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 04:52:22 +02:00
Michael Niedermayer
f9a2d0c3fe
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (23 commits)
avconv: Reformat s16 volume adjustment.
ARM: NEON optimised vector_fmac_scalar()
dca: use vector_fmac_scalar from dsputil
dsputil: add vector_fmac_scalar()
latmenc: Fix private options
vf_unsharp: store hsub/vsub in the filter context
vf_unsharp: adopt a more natural order of params in apply_unsharp()
vf_unsharp: rename method "unsharpen" to "apply_unsharp"
vf_scale: apply the same transform to the aspect during init that is applied per frame
vf_pad: fix "vsub" variable value computation
vf_scale: add a "sar" variable
lavfi: fix realloc size computation in avfilter_add_format()
vsrc_color: use internal timebase
lavfi: fix signature for avfilter_graph_parse() and avfilter_graph_config()
graphparser: prefer void * over AVClass * for log contexts
avfiltergraph: use meaningful error codes
avconv: Initialize return value for codec copy path.
fate: use 'run' helper for seek-test
fate: remove seek-mpeg2reuse test
Fix memory (re)allocation in matroskadec.c, related to MSVR-11-0080.
...
Conflicts:
doc/filters.texi
libavfilter/avfilter.h
libavfilter/avfiltergraph.c
libavfilter/avfiltergraph.h
libavfilter/graphparser.c
libavfilter/vf_scale.c
libavfilter/vsrc_color.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-29 01:11:01 +02:00
Carl Eugen Hoyos
a3a5c61c61
2/4 bpp png is supported.
2011-09-28 22:53:25 +02:00
Michael Niedermayer
237d31e0b9
h264: fix FIXME and use list_count in ff_h264_fill_mbaff_ref_list()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 22:28:47 +02:00
Michael Niedermayer
dc9ce40069
h264: More correct ref_count check in decode_slice_header()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 22:28:47 +02:00
Michael Niedermayer
514c44c4fa
sink_buffer: fix typo
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 22:28:47 +02:00
Alex Converse
daf9890811
avconv: Reformat s16 volume adjustment.
2011-09-28 12:33:51 -07:00
Carl Eugen Hoyos
75f26a6f0b
Use "JPEG 2000" as long name for j2k.
2011-09-28 18:43:49 +02:00
Carl Eugen Hoyos
6a095afbbc
Encoding speex via libspeex is supported.
2011-09-28 18:34:42 +02:00
Nicolas George
194c2432ee
movenc: Replace av_realloc by av_realloc_f when relevant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 18:13:52 +02:00
Nicolas George
af84d9bb9e
gxfenc: Replace av_realloc by av_realloc_f when relevant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 18:13:52 +02:00
Nicolas George
247a1dc847
aviobuf: Replace av_realloc by av_realloc_f when relevant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 18:13:52 +02:00
Nicolas George
e47cfe9e5c
avienc: Replace av_realloc by av_realloc_f when relevant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 18:13:52 +02:00
Nicolas George
71e23d39a3
avidec: Replace av_realloc by av_realloc_f when relevant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 18:13:52 +02:00
Nicolas George
0cc44facf1
4xm: Replace av_realloc by av_realloc_f when relevant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 18:13:52 +02:00
Nicolas George
769298a686
libvpxenc: Replace av_realloc by av_realloc_f when relevant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 18:13:52 +02:00
Nicolas George
198ed6474d
bitstream: Replace av_realloc by av_realloc_f when relevant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 18:13:52 +02:00
Nicolas George
1d3b280e71
ffmpeg: Replace av_realloc by av_realloc_f when relevant.
...
Also mark with a visible comment "FIXME realloc failure" places where
av_realloc seems to lack a proper test for failure.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 18:13:52 +02:00
Nicolas George
5cd754bca2
Introduce av_realloc_f.
...
av_realloc_f helps avoiding memory-leaks in typical uses of realloc.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 18:13:52 +02:00
Nicolas George
b2600509fe
Introduce av_size_mult.
...
av_size_mult helps checking for overflow when computing the size of a memory
area.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 18:13:52 +02:00
Michael Niedermayer
e89f58810d
libx264: remove check_default_settings()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 18:13:52 +02:00
Clément Bœsch
f9d8a3423f
ffprobe: fix trailing '=' in stream id.
2011-09-28 17:57:22 +02:00
Stefano Sabatini
f63ec3eee9
lavfi: fix FF_API_* definition macros
...
Fix ABI break occurred after their use.
Bug reported and patch provided by chinsou, fix trac issue #516 ,
+80cola for me.
2011-09-28 17:24:52 +02:00
Mans Rullgard
baf6b738f2
ARM: NEON optimised vector_fmac_scalar()
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-09-28 15:56:09 +01:00
Mans Rullgard
a92a1b93b4
dca: use vector_fmac_scalar from dsputil
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-09-28 15:56:09 +01:00
Mans Rullgard
fcca826a63
dsputil: add vector_fmac_scalar()
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-09-28 15:56:08 +01:00
Nicolas George
b592f9bb65
swresample: remove unused variable.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 16:11:01 +02:00
Nicolas George
a34869ed7d
libswr/rematrix: remove unused variable.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 16:11:01 +02:00
Nicolas George
80287854c2
libswr/rematrix: add braces to silence a warning.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 16:11:01 +02:00
Nicolas George
4a14dd76cf
bintext: remove unused variable.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 16:11:01 +02:00
Nicolas George
fb35f7d7e1
vf_boxblur: remove useless code.
...
This block was probably leftovers from code refactoring.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 16:11:01 +02:00
Nicolas George
6d98e2db35
j2kdec: use correct printf format.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 16:11:01 +02:00
Michael Niedermayer
7393b41744
j2kenc: Fix pointer<->integer casts.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 15:25:04 +02:00
Kieran Kunhya
32dfd8ca65
latmenc: Fix private options
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-28 15:49:07 +03:00
Stefano Sabatini
1c257dc32d
vf_unsharp: store hsub/vsub in the filter context
...
Also drop obfuscating CHROMA_WIDTH/HEIGHT macros.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-28 08:09:18 +02:00
Stefano Sabatini
e6d17ba426
vf_unsharp: adopt a more natural order of params in apply_unsharp()
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-28 08:09:03 +02:00
Stefano Sabatini
de7b58da3e
vf_unsharp: rename method "unsharpen" to "apply_unsharp"
...
More consistent with the original libmpcodecs code, and the name
"unsharpen" was confusing.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-28 08:08:56 +02:00
Michael Niedermayer
d33e0c6bc8
vf_scale: apply the same transform to the aspect during init that is applied per frame
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-28 08:08:30 +02:00
Stefano Sabatini
80de930a78
vf_pad: fix "vsub" variable value computation
...
It was shifting 2 rather than 1, +10l.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-28 08:03:30 +02:00
Stefano Sabatini
46b29397a6
vf_scale: add a "sar" variable
...
Also create a "dar" alias for the "a" variable, for avoiding possible
confusion between dar/sar.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-28 08:03:24 +02:00
Stefano Sabatini
0ec56d1144
lavfi: fix realloc size computation in avfilter_add_format()
...
Replace sizeof((*avff)->formats)
with sizeof(*(*avff)->formats)
as the size of the array element is given by the pointed element
rather than by its pointer.
In particular fix computation with the pending patch when
sizeof(int64_t) != sizeof(int64_t *).
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-28 08:03:18 +02:00
Stefano Sabatini
e63e4c99c9
vsrc_color: use internal timebase
...
Avoid timescale conversion, simplify.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-28 08:03:11 +02:00
Stefano Sabatini
57fa314090
lavfi: fix signature for avfilter_graph_parse() and avfilter_graph_config()
...
Require "void *" rather than "AVClass *" for the log context type.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-28 08:02:53 +02:00
Stefano Sabatini
64abd375ec
graphparser: prefer void * over AVClass * for log contexts
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-28 08:02:42 +02:00
Stefano Sabatini
59cef18c24
avfiltergraph: use meaningful error codes
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-28 08:02:32 +02:00
Alex Converse
4bb0b31f76
avconv: Initialize return value for codec copy path.
2011-09-27 19:32:26 -07:00
Michael Niedermayer
5a6e7771ed
h264: dont set key_frame when the frame is not a real keyframe.
...
Fixes Ticket514
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 03:47:39 +02:00
Mans Rullgard
dec4b4705f
fate: use 'run' helper for seek-test
...
This is simpler, and the actual seek-test command is printed with V=1.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-09-28 02:30:30 +01:00
Mans Rullgard
bc3a741fa0
fate: remove seek-mpeg2reuse test
...
The input file for this test is no longer generated.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-09-28 02:30:30 +01:00
Michael Niedermayer
530cd7a913
doc/ffmpeg.texi: merge changes from avconv.texi since last merge
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 03:19:22 +02:00
Michael Niedermayer
0aa793a1be
ffplay: fix forgotten codec_name checks
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 03:19:22 +02:00
Michael Niedermayer
2f3dd904f4
ffmpeg: fix wrong indention that leaked in from merge
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 03:19:22 +02:00
Laurent Aimar
1f024b8820
Check for out of bound reads in the flic decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 02:59:28 +02:00
Michael Niedermayer
23c1db9b83
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avconv: use different variables for decoded and filtered frame.
avconv: add support for copying attachments.
matroskaenc: write attachments.
matroskadec: export mimetype of attachments as metadata.
avconv: factorize common code from new_*_stream()
doc/avconv: expand documentation for some options.
doc/avconv: document -timelimit.
Conflicts:
avconv.c
cmdutils.c
tests/codec-regression.sh
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 02:07:44 +02:00
Laurent Aimar
feca3ba053
Prevent out of bound accesses in the xan decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 01:04:52 +02:00
Laurent Aimar
b9596a5037
Check for invalid/corrupted bitstream in sun raster decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 00:52:37 +02:00
Laurent Aimar
19e95b8845
Prevent NULL dereferences when missing the reference frame in the xan decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 00:49:25 +02:00
Laurent Aimar
039f3c33ff
Check for out of bounds reads in sun rasterfile decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 00:24:51 +02:00
Laurent Aimar
61930119cb
Check for corrupted extra data in wmavoice decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 00:20:04 +02:00
Laurent Aimar
e09ae22ab7
Check for out of bound writes in the wmavoice decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-28 00:18:38 +02:00
Laurent Aimar
66aae97a60
Prevent NULL dereferences when missing the reference frame in the bink decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 23:45:37 +02:00
Michael Niedermayer
77d2ef13a8
Fix memory (re)allocation in matroskadec.c, related to MSVR-11-0080.
...
Whitespace of the patch cleaned up by Aurel
Some of the issues have been reported by Steve Manzuik / Microsoft Vulnerability Research (MSVR)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 956c901c68 )
Further suggestions from Kostya <kostya.shishkov@gmail.com > have been
implemented by Reinhard Tartler <siretart@tauware.de >
Signed-off-by: Reinhard Tartler <siretart@tauware.de >
2011-09-27 23:14:05 +02:00
Alex Converse
a9a033773a
avconv: Fix volume adjustment for non-s16 sample formats
2011-09-27 14:10:12 -07:00
Alex Converse
fe332cf5b9
avconv: Make samples void*.
...
Different sample formats are different sizes.
2011-09-27 14:10:12 -07:00
Alex Converse
af3c06b4db
avconv: Use the size of the decode sample format when allocating the audio samples buffer.
2011-09-27 14:10:12 -07:00
Tomas Härdin
a1cb09d351
mxf: Add PictureEssenceCoding UL for V210
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 22:27:52 +02:00
Michael Niedermayer
36be0f2e31
ffplay.texi: document -codec
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 22:00:20 +02:00
Michael Niedermayer
5eda0967a5
ffplay: support -codec:avs to force a specific decoder implementation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 21:56:20 +02:00
Michael Niedermayer
07a96dc1e9
regression tests: add jpeg2000
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 21:32:39 +02:00
Michael Niedermayer
2fbf691038
j2kenc: Fix use of value before its initialized.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 21:32:39 +02:00
Michael Niedermayer
398b5327a3
j2kenc: only list pixel formats that fully work currently.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 21:32:39 +02:00
Michael Niedermayer
2214a67de5
j2kenc: fix colors on yuv444
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 21:32:39 +02:00
Michael Niedermayer
9e0438c903
img2enc: show first 4 bytes if a malformed jpeg2000 codestream is detected
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 21:32:39 +02:00
Michael Niedermayer
0047ac1427
img2enc: Accept raw jpeg2000 codestream too,
...
our decoder outputs that, jasper can as well
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 21:32:39 +02:00
Dominique Leuenberger
bfea160094
RELEASE: set to 0.8.4.git after the release from 2011-09-22
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 21:32:17 +02:00
Michael Niedermayer
34ac8ec2ea
j2kenc: enable 4:2:0 YUV it works as "well" as the other subsampled yuv formats
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 19:30:19 +02:00
Michael Niedermayer
c4b269c5c6
build system: enable j2kenc
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 19:30:19 +02:00
Michael Niedermayer
e6aed5f404
j2kenc: fix coded_frame and prevent null pointer dereference.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 19:30:19 +02:00
Michael Niedermayer
40923e1567
j2kenc: Update ff_j2k_init_component() arguments
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 19:30:19 +02:00
Michael Niedermayer
2f16b6a525
j2kenc: fix arguments for ff_j2k_getnbctxno()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 19:30:19 +02:00
Michael Niedermayer
0db973e0d7
j2kenc: mark as experimental.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 19:30:19 +02:00
Michael Niedermayer
1c20a0b354
j2kenc: s/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 19:30:18 +02:00
Michael Niedermayer
de89bc994c
j2kenc: update codec name to modern ffmpeg
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 19:30:18 +02:00
Michael Niedermayer
1e086fd730
j2kenc: cleanup() is not used outside thus it is static
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 19:30:18 +02:00
Michael Niedermayer
c153c00367
j2kenc: update function name.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 19:30:18 +02:00
Anton Khirnov
d3c1d37a90
avconv: use different variables for decoded and filtered frame.
...
Makes the code less obfuscated and fixes encoding one video stream to
several outputs.
Also use avcodec_alloc_frame() instead of allocating AVFrame on stack.
Breaks me_threshold in avconv, as motion vectors aren't passed through
lavfi. They could be copied manually, but I don't think this misfeature
is useful enough to justify ugly hacks.
2011-09-27 19:17:37 +02:00
Anton Khirnov
3ccd15803b
avconv: add support for copying attachments.
2011-09-27 15:26:36 +02:00
Anton Khirnov
c7a63a521b
matroskaenc: write attachments.
2011-09-27 15:26:36 +02:00
Anton Khirnov
98cfe22b5c
matroskadec: export mimetype of attachments as metadata.
2011-09-27 15:26:36 +02:00
Anton Khirnov
becdce99eb
avconv: factorize common code from new_*_stream()
2011-09-27 15:26:35 +02:00
Anton Khirnov
d159060a87
doc/avconv: expand documentation for some options.
2011-09-27 15:26:35 +02:00
Anton Khirnov
5aa3fcec35
doc/avconv: document -timelimit.
2011-09-27 15:26:35 +02:00
Tomas Härdin
3e48dceac0
mxfdec: Consider QuantizationBits between 17 and 24 to be pcm_s24*
...
This fixes playback of BRD38772509.mxf
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 15:15:54 +02:00
Laurent Aimar
254af56dd1
Check for out of bound writes when building tree in bink decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 15:15:54 +02:00
Laurent Aimar
36bf135d4c
Check for various out of bound writes in the bink decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 15:15:54 +02:00
Tanami, Ohad
99d7d1510e
swfdec: return correct error code at EOF
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 14:52:46 +02:00
Lars Täuber
6c0a902d12
ffmpeg: fix typo in warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 14:41:09 +02:00
Michael Niedermayer
7c1aba4f01
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (21 commits)
fate: allow testing with libavfilter disabled
x86: XOP/FMA4 CPU detection support
ws_snd: misc cosmetic clean-ups
ws_snd: remove the 2-bit ADPCM table and just subtract 2 instead.
ws_snd: use memcpy() and memset() instead of loops
ws_snd: use samples pointer for loop termination instead of a separate iterator variable.
ws_snd: make sure number of channels is 1
ws_snd: add some checks to prevent buffer overread or overwrite.
ws_snd: decode to AV_SAMPLE_FMT_U8 instead of S16.
flacdec: fix buffer size checking in get_metadata_size()
rtp: Simplify ff_rtp_get_payload_type
rtpenc: Add a payload type private option
rtp: Correct ff_rtp_get_payload_type documentation
avconv: replace all fprintf() by av_log().
avconv: change av_log verbosity from ERROR to FATAL for fatal errors.
cmdutils: replace fprintf() by av_log()
avtools: parse loglevel before all the other options.
oggdec: add support for Xiph's CELT codec
sol: return error if av_get_packet() fails.
cosmetics: reindent and pretty-print
...
Conflicts:
avconv.c
cmdutils.c
libavcodec/avcodec.h
libavcodec/version.h
libavformat/oggparsecelt.c
libavformat/utils.c
libavutil/avutil.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 02:14:37 +02:00
Laurent Aimar
c2a016ad4d
Reset internal state on corrupted blocks in wavpack decoder.
...
wavpack_decode_block() supposes that it is called back with the exact
same buffer unless it has returned with an error. With multi-channels
files, wavpack_decode_frame() was breaking this assumption.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 01:07:58 +02:00
Laurent Aimar
fc64434030
Validate the number of audio channels before using it in wmapro decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-27 01:07:58 +02:00
Mans Rullgard
908f12f342
fate: allow testing with libavfilter disabled
...
This declares dependencies to skip tests using libavfilter
when it is disabled.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-09-27 00:05:51 +01:00
Jason Garrett-Glaser
96a59cf37b
x86: XOP/FMA4 CPU detection support
2011-09-26 15:30:31 -07:00
Justin Ruggles
3d371f417e
ws_snd: misc cosmetic clean-ups
2011-09-26 16:23:58 -04:00
Justin Ruggles
659c719bc7
ws_snd: remove the 2-bit ADPCM table and just subtract 2 instead.
2011-09-26 16:23:15 -04:00
Justin Ruggles
618b067d21
ws_snd: use memcpy() and memset() instead of loops
2011-09-26 16:23:14 -04:00
Justin Ruggles
6896aa7a38
ws_snd: use samples pointer for loop termination instead of a separate
...
iterator variable.
2011-09-26 16:23:14 -04:00
Justin Ruggles
6a818cb3ff
ws_snd: make sure number of channels is 1
2011-09-26 16:23:10 -04:00
Michael Niedermayer
eb11cca530
ffmpeg: document alternative to the lossless libx264 presets
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-26 22:06:39 +02:00
Lou Logan
a96b171d6c
remove libx264 lossless presets
...
It is simpler and more consistent to use "-preset $speed -qp 0" for
lossless. Also, the old presets encode slower.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-26 22:04:23 +02:00
Justin Ruggles
417364ce1f
ws_snd: add some checks to prevent buffer overread or overwrite.
2011-09-26 15:49:50 -04:00
Justin Ruggles
2322ced8da
ws_snd: decode to AV_SAMPLE_FMT_U8 instead of S16.
...
8-bit unsigned is the native sample format.
2011-09-26 15:49:50 -04:00
Justin Ruggles
4c5e7b27d5
flacdec: fix buffer size checking in get_metadata_size()
...
Adds an additional check before reading the next block header and avoids a
potential integer overflow when checking the metadata size against the
remaining buffer size.
2011-09-26 15:29:45 -04:00
Michael Niedermayer
1edf33f7f2
ffmpeg: fix -b -ab mixes with -b overriding the audio bitrate
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-26 21:04:23 +02:00
Rafaël Carré
1430ae44e8
rtp: Simplify ff_rtp_get_payload_type
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-26 21:55:27 +03:00
Rafaël Carré
9152880e95
rtpenc: Add a payload type private option
...
Specifying the payload type is useful when the type number has
already been negotiated before creating the stream, for example
in SIP protocol.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-26 21:54:57 +03:00
Rafaël Carré
142887741f
rtp: Correct ff_rtp_get_payload_type documentation
...
Since 0c378ea1f , it can't fail anymore.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-26 21:54:14 +03:00
Anton Khirnov
e3245b2631
avconv: replace all fprintf() by av_log().
...
Deprecate -v option, now only -loglevel is enough.
2011-09-26 20:33:50 +02:00
Anton Khirnov
f24facd3ec
avconv: change av_log verbosity from ERROR to FATAL for fatal errors.
2011-09-26 20:33:50 +02:00
Anton Khirnov
1c5e9551bc
cmdutils: replace fprintf() by av_log()
...
This way, all messages can be easily disabled with -loglevel.
Behavior change -- configuration is printed with AV_LOG_VERBOSE, so it's
not shown by default.
2011-09-26 20:33:50 +02:00
Anton Khirnov
182cbe433a
avtools: parse loglevel before all the other options.
...
This way it can be applied to cmdutils too -- e.g. showing the banner
and printing startup messages.
2011-09-26 20:33:50 +02:00
Michael Niedermayer
d5a3635b2c
libx264: free x4->sei
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-26 18:53:12 +02:00
Mike Scheutzow
e2dae1faa8
Fix a buffer overflow in libx264 interface to x264 encoder. Previous code ignored the compressed buffer size passed in. This change returns as many complete NALs as can fit in the buffer, and logs an error message.
...
Signed-off-by: Mike Scheutzow <mike.scheutzow@alcatel-lucent.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-26 18:48:38 +02:00
Nicolas George
4ca59d1948
oggdec: add support for Xiph's CELT codec
...
This patch also introduces CODEC_ID_CELT.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-09-26 13:51:29 +02:00
tipok
cbf914cf16
libaac+ support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-26 02:28:21 +02:00
Aurelien Jacobs
023e9960d7
mjpegenc: use named struct initializers
2011-09-26 00:24:38 +02:00
Aurelien Jacobs
f3d5840474
act: correct file description comment
2011-09-26 00:24:01 +02:00
Aurelien Jacobs
c894449fc4
act, bintext, wtvenc: use named struct initializers
2011-09-26 00:22:41 +02:00
Michael Niedermayer
f85c9b7771
h264dec: fix decoding problems introduced with baad01d8b4.
...
This affected cases where extradata was not set.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 23:51:32 +02:00
Michael Niedermayer
537a9e5cc2
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
ppc: fix some pointer to integer casts
ppc: fix 32-bit PIC build
vmdaudio: fix decoding of 16-bit audio format.
lavf: do not set codec_tag for rawvideo
h264: check for out of bounds reads in ff_h264_decode_extradata().
flvdec: Check for overflow before allocating arrays
avconv: use correct output stream index when checking max_frames
avconv: remove fake coded_frame on streamcopy hack
Conflicts:
avconv.c
libavcodec/h264.c
libavcodec/ppc/asm.S
libavcodec/vmdav.c
libavformat/flvdec.c
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 23:30:25 +02:00
Laurent Aimar
508e47a575
Check for out of bound bands limit in mpc v8 decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 23:01:44 +02:00
Laurent Aimar
7ec5ea437f
Fix return value on EOF in mpc v8 demuxer.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 23:01:43 +02:00
Reimar Döffinger
a1526cd78f
id3v2: Fix some (function) pointer types.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 23:01:43 +02:00
Laurent Aimar
f57b00e897
Fixed NULL pointer dereference in id3v2 parser.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 23:01:43 +02:00
Vitor Sessak
02aabd820f
g729dec: avoid unnecessary struct copying
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 23:01:43 +02:00
Vitor Sessak
22dd24fc7d
g729dec: remove useless headers
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 23:01:43 +02:00
Justin Ruggles
b15a9888a8
sol: return error if av_get_packet() fails.
...
This prevents sending a packet with data=NULL size=AVERROR_EOF.
2011-09-25 16:53:49 -04:00
Stefano Sabatini
9921613e82
vf_drawtext: apply misc style fixes
2011-09-25 22:47:51 +02:00
Stefano Sabatini
80daa247d8
vf_drawtext: do not reset "n" variable to 0 in case the filter is reinited
2011-09-25 22:47:51 +02:00
Stefano Sabatini
01fbcc6fd6
ffmpeg: improve feedback when processing filtergraph events
2011-09-25 22:47:51 +02:00
Stefano Sabatini
68b897ef15
ffmpeg: apply misc cosmetics fixes in the filtergraph event processing code
...
In particular provides more consistent and expressive names,
supposedly improves readability and user feedback.
2011-09-25 22:47:51 +02:00
Stefano Sabatini
dd91499b66
lavfi: add debug trace when processing events
2011-09-25 22:47:51 +02:00
Stefano Sabatini
e64de2ad1a
lavfi: document AVFilterCommand fields
2011-09-25 22:47:51 +02:00
Vitor Sessak
58c61492c6
g729dec: fix warnings:
...
libavcodec/g729postfilter.c: In function ‘long_term_filter’:
libavcodec/g729postfilter.c:114: warning: unused variable ‘n’
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 21:17:22 +02:00
Vitor Sessak
82d99e0b41
g729dec: Fix warnings:
...
libavcodec/g729dec.c: In function ‘decode_frame’:
libavcodec/g729dec.c:662: warning: passing argument 3 of ‘ff_g729_postfilter’ from incompatible pointer type
libavcodec/g729postfilter.h:96: note: expected ‘int16_t *’ but argument is of type ‘int *’
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 21:16:55 +02:00
Vitor Sessak
1c4712db81
g729dec: Add ff_ prefix to g729_postfilter() and g729_adaptive_gain_control()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 21:13:19 +02:00
Justin Ruggles
88f908fbdc
cosmetics: reindent and pretty-print
2011-09-25 14:38:08 -04:00
Justin Ruggles
8febd6afbc
libgsm: split init and close fuctions for encoder and decoder.
...
The decoder shouldn't be allocating coded_frame. It's also cleaner to split
them than to check avctx->codec->encode and avctx->codec->decode.
2011-09-25 14:38:08 -04:00
Mans Rullgard
d853e571ad
ppc: fix some pointer to integer casts
...
Use uintptr_t instead of plain int. Without this change, the
comparisons will come out wrong for pointers in certain ranges.
Fixes random failures on ppc64. Also fixes some compiler warnings.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-09-25 18:33:38 +01:00
Mans Rullgard
6e4a35ced9
ppc: fix 32-bit PIC build
...
On 32-bit ppc, the GOT pointer must be loaded manually.
This adds a "get_got" assembler macro to compute the
GOT address. The "movrel" macro is updated to take an
additional parameter containing the GOT address since
no register is reserved for this purpose on ppc32.
These changes have no effect on ppc64 builds.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-09-25 17:27:48 +01:00
Carl Eugen Hoyos
9b3df9b6d3
G.729 decoding is supported.
2011-09-25 17:57:58 +02:00
Carl Eugen Hoyos
e8b8b038d0
AMV encoding is supported.
2011-09-25 17:35:45 +02:00
Carl Eugen Hoyos
ef8756dab2
Support LZW and ZLIB compressed 4bpp tiff samples.
...
Fixes ticket #439 and ticket #440 .
2011-09-25 17:21:46 +02:00
Alexander Strasser
baad01d8b4
h264: improve checks before calling ff_h264_decode_extradata
...
The ff_h264_decode_extradata routine now checks for the buffer size
and pointer internally. This makes it possible to remove the external
checks in ff_h264_decode_init.
In decode_frame there was a size check missing because the buffer
gets tested prior to the invocation of ff_h264_decode_extradata().
Signed-off-by: Alexander Strasser <eclipse7@gmx.net >
2011-09-25 17:16:44 +02:00
Alexander Strasser
715f259bf9
h264: ff_h264_decode_extradata: check buffer args
...
The buffer size and pointer were not checked prior to testing the first
byte of the buffer. These were sometimes checked before calling, but it is
better to add it inside the function as it takes buf and size arguments.
Signed-off-by: Alexander Strasser <eclipse7@gmx.net >
2011-09-25 17:16:44 +02:00
Reimar Döffinger
424bcc46b5
Compile x86/swscale_template with -mno-red-zone.
...
Replaces a very hackish hack to fix the same issue (call instruction
overwriting stack variables).
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-09-25 16:59:52 +02:00
Michael Niedermayer
d8289ff9a9
ffmpeg: increase bit_buffer_size, the header size is clearly too small for rgb48 raw based formats
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 16:43:30 +02:00
Jean First
251345a3fe
cosmetics, remove unused and rename variables for consistency
2011-09-25 16:43:23 +02:00
Justin Ruggles
4568c2bf97
vmdaudio: fix decoding of 16-bit audio format.
...
The initial sample of each block is raw 16-bit PCM, not DPCM.
Fixes decoding of all samples in:
http://streams.videolan.org/samples/game-formats/sierra-vmd/Lighthouse/
2011-09-25 10:39:00 -04:00
Jean First
1a0770f3f7
tiffenc: Enable RGB48LE (16-bit) encoding support
2011-09-25 16:14:33 +02:00
Jean First
72381b2b47
tiffdec: add RGB48 (16bit) support
2011-09-25 16:00:04 +02:00
Mans Rullgard
bb416bd68c
lavf: do not set codec_tag for rawvideo
...
If the demuxer did not set a codec_tag, there is none and
inventing one makes no sense. This change stops the rawvideo
"decoder" over-writing user-supplied pixfmt with one derived
from the codec_tag. The pixfmt-codec_tag-pixfmt round-trip
is lossy since several pixfmts map to the same codec_tag.
This fixes fate-lavf-pixfmt with avfilter disabled.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-09-25 14:07:21 +01:00
Laurent Aimar
d1186ff72d
h264: check for out of bounds reads in ff_h264_decode_extradata().
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-25 15:04:58 +02:00
Michael Niedermayer
035320a52f
dnxhdenc: remove unneeded entries from array.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 14:56:40 +02:00
Michael Niedermayer
b8bad984ef
dnxhdenc: optimize whats left of dnxhd_switch_matrix()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 13:06:04 +02:00
Michael Niedermayer
ba9d174851
bit: remove more unused variables
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 12:29:20 +02:00
Michael Niedermayer
136a663ceb
bit: use AVERROR_INVALIDDATA
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 12:29:20 +02:00
Michael Niedermayer
9a27dc1cbd
regtests: amv video encoder test
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 12:29:20 +02:00
Michael Niedermayer
a2eae0ffd4
amvenc: another quant table fix
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 12:29:20 +02:00
Michael Niedermayer
2aaf32f52f
mpegvideo: support encoding with chroma intra tables that differ from luma.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 12:29:20 +02:00
Michael Niedermayer
a246cefa75
flvdec: Check for overflow before allocating arrays
...
On allocation, the array length is multiplied by sizeof(int64_t),
this prevents the multiplication from overflowing.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-25 12:55:21 +03:00
Nicolas George
73a5287482
lavf/utils: replace deprecated url_ferror.
2011-09-25 11:18:41 +02:00
Nicolas George
86af962830
lavf/utils: use correct format string for int64_t.
2011-09-25 11:18:41 +02:00
Nicolas George
9c98af13af
lavf/utils: use AV_NOWARN_DEPRECATED in compatibility code.
2011-09-25 11:18:41 +02:00
Nicolas George
fb1c30b71a
lavu/attributes: introduce AV_NOWARN_DEPRECATED.
2011-09-25 11:18:41 +02:00
Clément Bœsch
6f8c8fa8af
bit: use explicit struct initializers.
2011-09-25 10:44:31 +02:00
Anton Khirnov
9b921a8272
avconv: use correct output stream index when checking max_frames
2011-09-25 08:28:14 +02:00
Anton Khirnov
240ae356e9
avconv: remove fake coded_frame on streamcopy hack
...
Back in 2002 when it was added, some muxers used information from
coded_frame. It's not true anymore, so this hack is useless and can be
removed.
2011-09-25 08:28:10 +02:00
Michael Niedermayer
bf85b909f6
bit: remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 05:37:27 +02:00
Michael Niedermayer
a5e8492796
bit: set AVPacket.pos
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 05:37:22 +02:00
Michael Niedermayer
fa15b1e7b9
bit: loose seekback & wrong bitrate code.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 05:33:12 +02:00
Michael Niedermayer
dfc571ff18
bit: rewrite probe
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 05:33:09 +02:00
Michael Niedermayer
21922dc5ae
bit: replace assert() by proper check.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 05:31:49 +02:00
Michael Niedermayer
fc9d6035c3
bit: return AVERROR_EOF on eof.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 05:05:03 +02:00
Michael Niedermayer
a2f27818b5
amvenc: fix quant tables
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 04:33:58 +02:00
Michael Niedermayer
f2f28861da
AMV video encoder.
...
Authors are Vladimir Voroshilov and Dobrica Pavlinušić based on svn blame/log
For full details of authorship see http://code.google.com/p/amv-codec-tools/
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 04:33:16 +02:00
Laurent Aimar
ccecab4a0d
Add av_calloc() helper.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 00:55:25 +02:00
Laurent Aimar
35cb6854bb
Fix potential pointer arithmetic overflows in rle_unpack() of vmd video decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 00:42:42 +02:00
Laurent Aimar
4749e07498
Fix out of bound reads in rle_unpack() of vmd video decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 00:42:06 +02:00
Laurent Aimar
e07377e736
Check for out of bound reads in vmd_decode() of vmd video decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 00:34:39 +02:00
Laurent Aimar
3b26daedd8
Removed debug message in the probe function of bit demuxer.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 00:29:44 +02:00
Laurent Aimar
78cb39d2b2
Fix potential pointer arithmetic overflows in lz_unpack of vmd video decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 00:27:29 +02:00
Laurent Aimar
5127f465bd
Prevent out of bound read in lz_unpack in vmd video decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-25 00:25:42 +02:00
Laurent Aimar
6a6383bebc
Prevent NULL dereferences when the previous frame is missing in vmd video decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-24 23:42:49 +02:00
Laurent Aimar
e7aed1280e
Check for invalid update parameters in vmd video decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-24 23:42:49 +02:00
Laurent Aimar
00cbe9e405
Fix potential overread in vmd audio decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-24 23:42:49 +02:00
Michael Niedermayer
eae3cf06a5
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
flvdec: Fix invalid pointer deferences when parsing index
configure: disable hardware capabilities ELF section with suncc on Solaris x86
Use explicit struct initializers for AVCodec declarations.
Use explicit struct initializers for AVOutputFormat/AVInputFormat declarations.
adpcmenc: Set bits_per_coded_sample
adpcmenc: fix QT IMA ADPCM encoder
adpcmdec: Fix QT IMA ADPCM decoder
permit decoding of multichannel ADPCM_EA_XAS
Fix input buffer size check in adpcm_ea decoder.
fft: avoid a signed overflow
mpegps: Handle buffer exhaustion when reading packets.
Conflicts:
libavcodec/adpcm.c
libavcodec/adpcmenc.c
libavdevice/alsa-audio-enc.c
libavformat/flvdec.c
libavformat/mpeg.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-24 22:39:52 +02:00
Vladimir Voroshilov
0f2297a9b9
Add .bit (de)muxer
2011-09-24 22:10:46 +02:00
Sascha Sommer
780d45473c
Fix segfault in save_bits:
...
use put_bits_count to get the buffer fill state instead of
num_saved_bits as num_saved_bits is sometimes reset when
frames are lost
(Ticket 495)
2011-09-24 21:29:08 +02:00
Michael Niedermayer
43e05685f2
g729dec: disable all cpu acceleration, the code does not provide any alignment.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-24 21:11:01 +02:00
Michael Niedermayer
91c5f81b74
g729dec: set sample format.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-24 21:11:01 +02:00
Vladimir Voroshilov
5d5b3e527a
Disable MMX
2011-09-24 21:11:01 +02:00
Vladimir Voroshilov
8db3b85616
Fix comments about implemented codecs
2011-09-24 21:11:01 +02:00
Vladimir Voroshilov
5df643c5df
G.729 .bit file demuxer
2011-09-24 21:11:01 +02:00
Michael Niedermayer
fb98b71261
act: remove AVERROR_NOFMT useage.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-24 21:11:01 +02:00
Vladimir Voroshilov
6080553e6e
ACT demuxer
2011-09-24 21:11:01 +02:00
Vladimir Voroshilov
682337672c
Adaptive gain control
2011-09-24 21:11:01 +02:00
Vladimir Voroshilov
aca516cd67
G.729 postfilter
2011-09-24 21:11:01 +02:00
Vladimir Voroshilov
16bbb8dfea
Replace pitch_delay_int with array
2011-09-24 21:11:01 +02:00
Vladimir Voroshilov
bfbfe56f94
G.729 build environment
2011-09-24 21:11:00 +02:00
Michael Niedermayer
ce7c954800
g729dec: Make 2 functions static that are not used outside g729dec.c
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-24 21:11:00 +02:00
Vladimir Voroshilov
c458bff934
High-pass filter
2011-09-24 21:11:00 +02:00
Vladimir Voroshilov
e610c5f383
Add G.729D decoder
2011-09-24 21:11:00 +02:00
Vladimir Voroshilov
b7c7fc3359
Synthesis filter
2011-09-24 21:11:00 +02:00
Vladimir Voroshilov
4920a1a913
Indentation fix after gain codes decoding2
2011-09-24 21:11:00 +02:00
Vladimir Voroshilov
0b42463aec
Gain pitch and gain code for G729D
2011-09-24 21:11:00 +02:00
Vladimir Voroshilov
12081d0599
Indentation fix 2
2011-09-24 21:11:00 +02:00
Vladimir Voroshilov
f7980a7bed
Convert gain pitch and gain code to arrays
2011-09-24 21:11:00 +02:00
Vladimir Voroshilov
f830d1b7da
Interolate excitation signal
2011-09-24 21:11:00 +02:00
Vladimir Voroshilov
0a3337883f
Fixed- and adaptive-codebook gains
2011-09-24 21:11:00 +02:00
Vladimir Voroshilov
7fadc0151c
Frame erasure support for fixed-codebook vectors
2011-09-24 21:11:00 +02:00
Vladimir Voroshilov
9297c7822f
Fixed-codebook vector decoding
2011-09-24 21:11:00 +02:00
Vladimir Voroshilov
70efd101f1
Add packet_type
2011-09-24 21:11:00 +02:00
Vladimir Voroshilov
50cad25625
Frame erasure support for pitch delay decoding
2011-09-24 21:11:00 +02:00
Vladimir Voroshilov
d1a643e749
Doxy for LSF erasure case
2011-09-24 21:11:00 +02:00
Vladimir Voroshilov
b29e5a6780
doxy comments for LSF array
2011-09-24 21:10:59 +02:00
Vladimir Voroshilov
cd3e2820d3
Indentation fix in LSF
2011-09-24 21:10:59 +02:00
Vladimir Voroshilov
388f225561
Frame erasure support for LSF decoding
2011-09-24 21:10:59 +02:00
Michael Niedermayer
a5e0c4ddb5
Revert "g729: Merge g729.h into g729dec.c."
...
This reverts commit a2077b85da .
2011-09-24 21:10:27 +02:00
Michael Niedermayer
0b61af7382
Restore WIP g729 code that has been remvoed by diego biurrun.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-24 19:39:18 +02:00
Laurent Aimar
1aad9cd9d2
vp56:Fix error recovery code on size changes in vp5/6 decoder
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-24 19:13:37 +02:00
Laurent Aimar
91f104496b
vp6:Reset the internal state when aborting key frames header parsing in vp6 decoder.
...
It prevents leaving the state only half initialized.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-24 19:13:37 +02:00
Laurent Aimar
2b4e49d428
flvdec: Fix invalid pointer deferences when parsing index
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-24 18:08:39 +03:00
Laurent Aimar
57764c6996
h264: Check for out of bounds reads in ff_h264_decode_extradata().
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-24 16:54:16 +02:00
Sean McGovern
87a74f478f
configure: disable hardware capabilities ELF section with suncc on Solaris x86
...
When using suncc to build, the Solaris linker will mark
an executable with each instruction set encountered by
the Solaris assembler. As our libraries contain their own
guards for processor-specific code, instead suppress
generation of the HWCAPS ELF section on Solaris x86 only.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-09-24 14:47:49 +02:00
Stefano Sabatini
87f5e79732
vf_drawtext: use ctx for expressing outlink and dtext in end_frame
...
(Very) slighly improve readability.
2011-09-24 12:37:12 +02:00
Stefano Sabatini
3de684206e
vf_drawtext: perform misc cosmetics changes to uninit
...
In particular:
* lexically sort strings freeing commands
* logically group freeing instructions
* prefer NULL over 0 when setting dtext->glyphs
2011-09-24 12:37:03 +02:00
Stefano Sabatini
275516f87c
vf_drawtext: set string defaults in the options array
...
Simplify.
2011-09-24 12:36:55 +02:00
Stefano Sabatini
482ce0ce4e
vf_drawtext: make x and y options parametric
...
Address trac issue #378 .
2011-09-24 12:36:48 +02:00
Stefano Sabatini
163854bca0
vf_drawtext: drop text wrapping feature
...
Or in other word, do not go to the next line when the text cannot be
rendered within the frame.
The rationale is that wrapping is hard to manage, as it depends on the
position of the text, thus making hard/impossible to compute the size
occupied by the rendered text, and makes the filter behavior
unpredictible with moving text (implemented in a pending patch).
Also the current wrapping code is very limited (for example it splits
words in the middle), and correctly handling wrapping requires much
more complexity (alignment, gravity, word parsing etc.), while
drawtext is meant to be only a thin wrapper around libfreetype, so
such advanced features don't belong here.
2011-09-24 12:36:39 +02:00
Stefano Sabatini
d7d587db62
vf_drawtext: fix missed update in docs
2011-09-24 12:36:27 +02:00
Diego Biurrun
8671488799
Use explicit struct initializers for AVCodec declarations.
2011-09-24 12:11:19 +02:00
Diego Biurrun
30b4ee7901
Use explicit struct initializers for AVOutputFormat/AVInputFormat declarations.
2011-09-24 12:11:17 +02:00
Jean First
9569a3c9f4
Add new pix_fmt RGBA64
2011-09-24 06:01:45 +02:00
Michael Niedermayer
3715e67591
ffplay: fix order of operations for sdl audio open.
...
Fixes Ticket149
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-24 03:09:54 +02:00
Justin Ruggles
9ff6d0791b
adpcmenc: Set bits_per_coded_sample
2011-09-23 20:54:29 -04:00
Baptiste Coudurier
b304244b54
adpcmenc: fix QT IMA ADPCM encoder
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-23 20:54:29 -04:00
Baptiste Coudurier
bf334535b4
adpcmdec: Fix QT IMA ADPCM decoder
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-23 20:54:28 -04:00
Peter Ross
3a549eb82b
permit decoding of multichannel ADPCM_EA_XAS
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-23 20:54:28 -04:00
Reimar Döffinger
ffe92ff9f0
Fix input buffer size check in adpcm_ea decoder.
...
Unfortunately the output buffer size check assumes that the
input buffer is never over-consumed, thus this actually
also allowed to write outside the output buffer if "lucky".
Based on:
git.videolan.org/ffmpeg.git
commit 701d0eb185
2011-09-23 20:54:28 -04:00
Sean McGovern
c2d3f56107
fft: avoid a signed overflow
...
As a signed integer, 1<<31 overflows, so force it to unsigned.
Signed-off-by: Alex Converse <alex.converse@gmail.com >
2011-09-23 17:02:58 -07:00
Michael Niedermayer
3419d9b891
postproc: fix compilation failure, now really
...
forgot git add ...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-24 01:51:35 +02:00
Yuriy Kaminskiy
d16ebec795
postproc: Fix compilation failure.
...
libpostproc/postprocess_template.c: In function 'dering_MMX2':
libpostproc/postprocess_template.c:1045:5: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
libpostproc/postprocess_template.c:1045:5: error: 'asm' operand has impossible constraints
2011-09-24 01:37:52 +02:00
Alex Converse
9fba8ebe0a
mpegps: Handle buffer exhaustion when reading packets.
2011-09-23 16:36:16 -07:00
Michael Niedermayer
a7758884db
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
rtp: factorize dynamic payload type fallback
flvdec: Ignore the index if it's from a creator known to be different
cmdutils: move grow_array out of #if CONFIG_AVFILTER
avconv: actually set InputFile.rate_emu
ratecontrol: update last_qscale_for sooner
Fix unnecessary shift with 9/10bit vertical scaling
prores: mark prores as intra-only in libavformat/utils.c:is_intra_only()
prores: return more meaningful error values
prores: improve error message wording
prores: cosmetics: prettyprinting, drop useless parentheses
prores: lowercase AVCodec name entry
Conflicts:
cmdutils.c
libavcodec/proresdec_lgpl.c
tests/ref/lavfi/pixfmts_scale
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-24 01:03:07 +02:00
Jean First
f7e797aa5c
tiffenc: initialize forgotten avctx.
2011-09-23 23:39:51 +02:00
Jean First
43c481e569
tiffenc: Add forgotten avclass to context.
2011-09-23 23:39:26 +02:00
Michael Niedermayer
0bc5d4fd8b
aacdec: fix channel reconfigs on LATM
...
Fixes Ticket200
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-23 22:41:10 +02:00
Michael Niedermayer
b6aaa6d9a0
aacdec: Make aac-latm closer to the spec (not reading random data leading to random false configurations)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-23 22:34:26 +02:00
Michael Niedermayer
ad51833a1a
aacsbr: prevent multiple ff_aac_sbr_ctx_init()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-23 22:31:57 +02:00
Michael Niedermayer
abe0dbea2e
aacsbr: add a assert0 to check for a inconsistency that
...
occurd during debug. I dont know if this can happen normally but if so
it would be quite bad.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-23 22:30:27 +02:00
Rafaël Carré
0c378ea1f7
rtp: factorize dynamic payload type fallback
...
Move the identical code in rtp_write_header() and
ff_sdp_write_media() inside ff_rtp_get_payload_type()
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-09-23 22:00:24 +02:00
Martin Storsjö
bafff1668c
flvdec: Ignore the index if it's from a creator known to be different
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-23 20:59:48 +03:00
Michael Niedermayer
5e06f743d9
MAINTAINERS: loose svn reference
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-23 19:18:58 +02:00
Michael Niedermayer
3f7dc480c1
psxstr: improve probe to not misdetect so much.
...
The score of 50 can probably be raised if needed
Fixes Ticket490
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-23 19:10:55 +02:00
Stefano Sabatini
4bd37ca6ae
MAINTAINERS: update status of 0.6 release
...
Its current maintainer is too lazy/busy to actively maintain it.
2011-09-23 17:52:51 +02:00
Janne Grunau
e1b1015581
cmdutils: move grow_array out of #if CONFIG_AVFILTER
...
fixes programs linking with --disable-avfilter
2011-09-23 11:40:25 +02:00
Carl Eugen Hoyos
cab2860c8a
Use a colon in the stream description, this matches how -map works now.
2011-09-23 10:16:36 +02:00
Anton Khirnov
dc3e76f3f2
avconv: actually set InputFile.rate_emu
2011-09-23 10:04:44 +02:00
Michael Niedermayer
6d789f50d2
flvdec: Inject in stream extradata, into the stream.
...
The code before was unsafe, had a race condition and could crash.
This Fixes Ticket499
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-23 06:02:17 +02:00
Michael Niedermayer
9b73fbcff6
h264dec: Decode in stream avc extradata.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-23 06:01:45 +02:00
Michael Niedermayer
4ba396834d
h264: pass buffer & size to ff_h264_decode_extradata()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-23 06:01:45 +02:00
Robert Krüger
57d5d5f62d
Minor documentation clarification regarding AVStream.start_time semantics
2011-09-23 04:21:02 +02:00
Michael Niedermayer
9815039053
aacdec: disable locking code for parse_adts_frame_header() non zero chan config.
...
This fixes changing channels
It possibly might cause regressions but i cant avoid this without having a test
case that needs the locking code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-23 02:43:57 +02:00
Luca Barbato
d554b33efe
ratecontrol: update last_qscale_for sooner
...
In order to make ratecontrol converge properly update the
last_qscale_for values when populating the qscale array.
It fixes the issue reported on
http://lists.libav.org/pipermail/libav-tools/2011-September/000050.html
2011-09-22 17:25:48 -07:00
Kieran Kunhya
4d4d0e8176
Fix unnecessary shift with 9/10bit vertical scaling
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-09-23 02:13:30 +02:00
Diego Biurrun
5cc2530fc2
prores: mark prores as intra-only in libavformat/utils.c:is_intra_only()
2011-09-23 01:42:14 +02:00
Diego Biurrun
167d3b1673
prores: return more meaningful error values
2011-09-23 01:42:13 +02:00
Diego Biurrun
2161282439
prores: improve error message wording
2011-09-23 01:42:12 +02:00
Diego Biurrun
27ba121e90
prores: cosmetics: prettyprinting, drop useless parentheses
2011-09-23 01:42:12 +02:00
Diego Biurrun
2983f1f3be
prores: lowercase AVCodec name entry
...
All other codecs use lowercase names in that field.
2011-09-23 01:42:11 +02:00
Stefano Sabatini
b87d4c2b9f
vf_drawtext: do not set limitations on fontsize
...
It may be needed to use values greater than 72, and in general greater
than an arbitrary big value. Let the user choose what's too big for
her.
2011-09-23 01:35:38 +02:00
Michael Niedermayer
93c220e895
forgot git add prores_*c
...
Authorship of the decoders is elvis / maxim. For more details see previous
comits
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-23 01:12:29 +02:00
Michael Niedermayer
28d3738428
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
Add LATM demuxer
avplay: flush audio decoder with empty packets at EOF if the decoder has CODEC_CAP_DELAY set.
8svx/iff: fix decoding of compressed stereo 8svx files.
8svx: log an error message if output buffer is too small
8svx: check packet size before reading the initial sample value.
8svx: output 8-bit samples instead of 16-bit.
8svx: split delta decoding into a separate function.
mp4: Don't read an empty Decoder Config Descriptor
fate.sh: Ignore errors from rm command during cleanup.
fate.sh: Run git-pull in quiet mode to avoid console spam.
Apple ProRes decoder
rtmp: Make the input FLV parser handle data cut at any point
rv34: Check for invalid slices offsets
eval: test isnan(sqrt(-1)) instead of just sqrt(-1)
Conflicts:
Changelog
libavcodec/8svx.c
libavcodec/proresdec.c
libavcodec/version.h
libavformat/iff.c
libavformat/version.h
tests/ref/fate/eval
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-23 00:35:31 +02:00
Aaron Colwell
6c4cc0f640
matroskadec: Fix seeking for matroska files with CUES before first cluster
...
This change fixes a bug where seeking doesn't work properly for
matroska files that have the CUES element before the first cluster.
This bug was accidentally introduced a few months ago by my deferred CUES
loading patch<http://git.videolan.org/?p=ffmpeg.git;a=commit;h=31ad14c21e0735387ba8082c6e3436241f7ccfc8 >
.
When the CUES element appears before the first cluster in the file, the data
is parsed and placed in matroska->index but that data is never added to the
seek index. Currently the transfer from matroska->index to the seek index
only happens when matroska_parse_cues() is called.
Matroska_parse_cues() only gets called on a seek if cues_parsing_deferred is
set. Cues_parsing_deferred only gets set if parsing the CUES requires
seeking past the first cluster. There is no code to handle the case where
CUES is before the first cluster.
This fix essentially restores the matroska->index processing that was
happening at the end of matroska_read_header() before I made my CUES
deferral change. In the case where CUES is before the first
cluster, matroska->index will have data and the seek index will be updated.
In the case where CUES is later in the file, matroska->index will be empty
and cues_parsing_deferred will be set so loading will happen later.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-22 21:34:50 +02:00
Janne Grunau
dcb9f6a20d
Add LATM demuxer
...
This is a raw demuxer for the AAC LATM decoder and thus limited to
single stream LOAS.
2011-09-22 20:39:24 +02:00
Justin Ruggles
59df4b82a5
avplay: flush audio decoder with empty packets at EOF if the decoder has
...
CODEC_CAP_DELAY set.
2011-09-22 14:11:35 -04:00
Justin Ruggles
1993c6849c
8svx/iff: fix decoding of compressed stereo 8svx files.
...
Make the iff demuxer send the whole audio chunk to the decoder as a
single packet and move stereo interleaving from the iff demuxer to the
decoder.
Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2a
2011-09-22 14:11:34 -04:00
Justin Ruggles
fda459cee7
8svx: log an error message if output buffer is too small
...
Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2a
2011-09-22 14:11:34 -04:00
Justin Ruggles
0ac3b8fc4a
8svx: check packet size before reading the initial sample value.
2011-09-22 14:11:34 -04:00
Justin Ruggles
e371878416
8svx: output 8-bit samples instead of 16-bit.
...
Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2a
2011-09-22 14:11:34 -04:00
Justin Ruggles
ac68607bfe
8svx: split delta decoding into a separate function.
...
Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2a
2011-09-22 14:11:34 -04:00
Alex Converse
1c2e07b811
mp4: Don't read an empty Decoder Config Descriptor
2011-09-22 10:09:04 -07:00
Michael Niedermayer
e8d8517b16
lavf/utils: only complain about aspect missmatch when the difference is "meassureable"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-22 18:19:00 +02:00
Michael Niedermayer
f9bb7395a1
mpeg4videoenc: remove forgotten return -1
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-22 18:16:57 +02:00
Diego Biurrun
20e1829dad
fate.sh: Ignore errors from rm command during cleanup.
...
The install directory being deleted might not be present if the build failed.
This can lead to annoying error output if the FATE client is run as a cronjob.
2011-09-22 17:39:30 +02:00
Diego Biurrun
12ad0677b4
fate.sh: Run git-pull in quiet mode to avoid console spam.
...
Since fate.sh can be run from cron, silent commands are preferrable.
2011-09-22 17:39:29 +02:00
Michael Niedermayer
394781a897
mpeg4videoenc: guess a good aspect when we cant store the exact one.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-22 14:18:17 +02:00
Maxim Poliakovski
be64629a13
Apple ProRes decoder
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-22 14:54:46 +03:00
Carl Eugen Hoyos
ff60d1b794
Cosmetics: Fix typo.
2011-09-22 13:36:33 +02:00
Martin Storsjö
b14629e5ea
rtmp: Make the input FLV parser handle data cut at any point
...
This makes the RTMP writing code able to handle FLV data
fed in arbitrarily small or large chunks, with multiple
consecutive packets in one write call, or having the FLV
packet header split over numerous write calls.
When used in conjunction with the flv muxer, the AVIO buffer
size still needs to be large enough to fit the initial metadata
packet though, since the size of that packet is written with a
seekback.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-22 10:36:16 +03:00
Laurent Aimar
fe476e5a9b
rv34: Check for invalid slices offsets
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-22 10:35:06 +03:00
Anton Khirnov
775af761a0
eval: test isnan(sqrt(-1)) instead of just sqrt(-1)
...
sqrt(-1) returns "some NaN", it's not specified which exactly.
2011-09-22 08:13:55 +02:00
Lou Logan
e116d15cc4
presets: use private options in libx264-ipod ffpresets
...
Change flags2 options to supported libx264 private options.
2011-09-22 06:27:07 +02:00
Jonne Ahner
8a73246391
prores: skip alpha if present
2011-09-22 06:26:52 +02:00
Stefano Sabatini
3a87dce6bf
vf_drawtext: remove useless and misnamed intermediary "baseline" variable in draw_text()
2011-09-22 00:45:59 +02:00
Stefano Sabatini
500b3210da
vf_drawtext: fix background box coloring with RGB formats != RGBA
...
drawbox() expects a color specified in RGBA format, while the code was
providing a color with the components specified in the same order of
the input pixel format.
In particular, fix box coloring with AXXX RGB formats.
2011-09-22 00:45:59 +02:00
Stefano Sabatini
db56a7507e
vf_drawtext: prefer int over unsigned int
...
This avoids overflow errors when the considered x and y values are
negative, as required by the incoming patches.
2011-09-22 00:45:59 +02:00
Stefano Sabatini
751df79d29
vf_drawtext: use @itemize environment for showing examples in docs
...
Beautify.
2011-09-22 00:45:59 +02:00
Laurent Aimar
7c249d4fba
Check for huffman tree building error in vp6 decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-22 00:42:28 +02:00
Laurent Aimar
dba20b8478
Release old pictures after a resolution change in vp5/6 decoder
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-22 00:42:28 +02:00
Laurent Aimar
6a0e78929a
Check for missing reference in vp5/6 decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-22 00:42:28 +02:00
Laurent Aimar
b64269ce55
Check for invalid slices offsets in RV30/40 decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-22 00:42:28 +02:00
Laurent Aimar
741ec30bd2
Check output buffer size in nellymoser decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-22 00:42:28 +02:00
Clément Bœsch
00320ac0dd
ffprobe: remove misplaced and pointless comment.
2011-09-22 00:22:53 +02:00
Clément Bœsch
b70fd6fa8b
ffprobe: use av_get_pix_fmt_name() instead of accessing av_pix_fmt_descriptors.
2011-09-22 00:22:53 +02:00
Clément Bœsch
03d0ea0cf0
ffprobe: remove media_type_string() by inlining av_x_if_null().
2011-09-22 00:22:53 +02:00
Clément Bœsch
a70e787410
lavu: add av_x_if_null().
2011-09-22 00:22:52 +02:00
Carl Eugen Hoyos
3039c68626
Fix dxva2 decoding for some H264 samples.
2011-09-21 23:42:03 +02:00
Carl Eugen Hoyos
e71322cb00
Support Sorenson Spark in f4v.
...
Such files are produced by the Flash Media Server,
see samples/f4v/H263_NM_f.mp4
2011-09-21 23:42:03 +02:00
Carl Eugen Hoyos
d5d027682c
Use the parser for AC-3 in mov.
...
Fixes ticket #494 .
2011-09-21 23:42:03 +02:00
Michael Niedermayer
3e1a7ae44a
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
swfdec: Add support for sample_rate_code 0 (5512 Hz)
dct-test: factor out some common code and do whas was likely intended
doc: library versions need to be bumped in version.h
Revert "ffmpeg: get rid of useless AVInputStream.nb_streams."
Remove some forgotten AVCodecContext.palctrl usage.
lavc/utils: move avcodec_init() higher in the file.
lavc: replace some deprecated FF_*_TYPE with AV_PICTURE_TYPE_*
ac3dec: actually use drc_scale private option
lavc: undeprecate AVPALETTE_SIZE and AVPALETTE_COUNT macros
alsa: add missing header
msmpeg4: remove leftover unused debug variable declaration
Fix assert() calls that need updates after FF_COMMON_FRAME macro elimination.
Fix av_dlog invocations with wrong or missing logging context.
vf_yadif: add support to yuva420p
vf_yadif: correct documentation on the parity parameter
vf_yadif: copy buffer properties like aspect for second frame as well
oma: support for encrypted files
id3v2: add support for non-text and GEOB type tag frames
des: add possibility to calculate DES-CBC-MAC with small buffer
Conflicts:
ffmpeg.c
libavcodec/dct-test.c
libavformat/mpegts.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-21 21:25:43 +02:00
Alex Converse
05fc9e40a4
swfdec: Add support for sample_rate_code 0 (5512 Hz)
2011-09-21 09:42:35 -07:00
Mans Rullgard
ae2e89717b
dct-test: factor out some common code and do whas was likely intended
...
This fixes some nonsensical code by moving some should-be-shared
code to separate functions and using these.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-09-21 15:43:59 +01:00
Diego Biurrun
dd8d808ba6
doc: library versions need to be bumped in version.h
2011-09-21 14:57:29 +02:00
Anton Khirnov
9aa1f87dfd
Revert "ffmpeg: get rid of useless AVInputStream.nb_streams."
...
This reverts commit 2cf8355f98 .
AVInputStream.nb_streams tracks number of streams found at the
beginning, new streams may appear that ffmpeg doesn't know about. Fixes
crash in this case.
2011-09-21 14:12:00 +02:00
Anton Khirnov
609a2fa1fa
Remove some forgotten AVCodecContext.palctrl usage.
2011-09-21 13:51:53 +02:00
Anton Khirnov
9ecfbb3e57
lavc/utils: move avcodec_init() higher in the file.
...
Fixes build on next major bump.
2011-09-21 13:51:53 +02:00
Anton Khirnov
e5b29c1f6b
lavc: replace some deprecated FF_*_TYPE with AV_PICTURE_TYPE_*
2011-09-21 13:51:53 +02:00
Anton Khirnov
feedc0754b
ac3dec: actually use drc_scale private option
2011-09-21 13:51:53 +02:00
Anton Khirnov
63e4c8a653
lavc: undeprecate AVPALETTE_SIZE and AVPALETTE_COUNT macros
...
They are still being used and shouldn't be removed.
2011-09-21 13:51:53 +02:00
Anton Khirnov
4d77d57d20
alsa: add missing header
...
Fixes compile with next lavc major.
2011-09-21 13:51:53 +02:00
Diego Biurrun
a3e0135dbb
msmpeg4: remove leftover unused debug variable declaration
2011-09-21 09:57:33 +02:00
Diego Biurrun
95a06eb4d5
Fix assert() calls that need updates after FF_COMMON_FRAME macro elimination.
...
This fixes build failures with -DDEBUG in CPPFLAGS.
2011-09-21 09:57:32 +02:00
Diego Biurrun
35a6855868
Fix av_dlog invocations with wrong or missing logging context.
...
This fixes build failures with -DDEBUG in CPPFLAGS.
2011-09-21 09:57:32 +02:00
Stefano Sabatini
be4e8908d2
vf_yadif: add support to yuva420p
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-21 09:00:24 +02:00
Stefano Sabatini
4703a7b50b
vf_yadif: correct documentation on the parity parameter
...
0 is top-field-first, 1 is bottom-field-first, not the other way
around.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-21 08:59:58 +02:00
Joakim Plate
5feb67f8a1
vf_yadif: copy buffer properties like aspect for second frame as well
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-21 08:59:36 +02:00
David Goldwich
61f4387d39
oma: support for encrypted files
...
Signed-off-by: David Goldwich <david.goldwich@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-21 08:33:15 +02:00
David Goldwich
7a019dffe5
id3v2: add support for non-text and GEOB type tag frames
...
This extends the ID3v2 parser to allow for reading of non-text (i.e.
other than T***) meta tag frames providing a ff_id3v2_read_all()
function. An additional data structure 'ID3v2ExtraMeta' is introduced
for these tags since AVDictionary is string oriented and unsuitable
for binary data.
A parser for tag frames of type GEOB is implemented, which is needed
to extract keyring information from encrypted OMA files. GEOB data
is parsed into 'ID3v2ExtraMetaGEOB' data structures.
The routine to decode characters from different encodings to UTF-8,
formerly part of the read_ttag() function, is moved to its own
function. Because some tag frames contain subparts of unknown length,
the function is now also able to read until a null character is found.
In addition, the function now takes care of allocating a buffer long
enough to hold the decoded characters.
Signed-off-by: David Goldwich <david.goldwich@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-21 08:28:21 +02:00
David Goldwich
b3e144a7df
des: add possibility to calculate DES-CBC-MAC with small buffer
...
This patch adds the possibility to calculate the DES-CBC-MAC of a
source buffer (i.e. the last block of the buffer encrypted in CBC
mode) without having to allocate a destination buffer that is as
long as the complete source buffer, but instead only 8 bytes
for the MAC.
Signed-off-by: David Goldwich <david.goldwich@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-21 08:28:20 +02:00
Michael Niedermayer
358d837dad
prores: Add forgotten Copyright statements
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-21 04:03:51 +02:00
Michael Niedermayer
7cb5def1f3
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
rtmp: Don't blindly skip the 4 trailer bytes from the FLV packets
rtmp: Handle FLV packets written in more than one write call
rv34: Check for invalid slice offsets
Conflicts:
libavformat/rtmpproto.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-21 01:05:36 +02:00
Michael Niedermayer
c83442b057
mp3demux: pass on error code on packet read.
...
Reported-by: Tanami, Ohad
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-21 00:51:53 +02:00
Michael Niedermayer
743e1df5c2
prores: Simplify code further
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-21 00:08:53 +02:00
Jonne Ahner
ecb0edd9d7
prores: simplify 4444 handling
2011-09-20 23:55:01 +02:00
Jonne Ahner
d673972d30
prores: fixes a few prores 4444 samples
2011-09-20 22:46:36 +02:00
Jonne Ahner
989c02825e
prores: use shift instead of multiply
2011-09-20 22:46:17 +02:00
Martin Storsjö
847052db34
rtspdec: Require TCP-interleaved RTP packets to be at least 11 bytes, instead of 12.
...
(A minimal RTP packet is 12 bytes, but a minimal RTCP packet can be
much smaller, at least as small as 8 bytes.)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-20 21:58:15 +02:00
Yuriy Kaminskiy
2b2617da6b
libpostproc: mmx code uses stack below %esp, fix that
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-20 21:37:00 +02:00
Reimar Döffinger
0bbb1cdc28
Use correct LOCAL_ALIGNED for stack variables instead of DECLARE_ALIGNED.
...
LOCAL_ALIGNED should work for all compilers/systems whereas
DECLARE_ALIGNED does not work on some (do not remember which though).
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-09-20 19:05:51 +02:00
Reimar Döffinger
b9acca288e
Remove unused variable.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-09-20 19:05:51 +02:00
Reimar Döffinger
c928e91729
Hack around gcc 4.6 breaking asm using call.
...
gcc 4.6 no longer decrements esp to account for local variables.
Thus using call will end up overwriting some local variable.
So add an extra one it can safely clobber.
This is a huge hack because it's basically pure chance it works,
no idea how this is supposed to be done.
Fixes trac ticket #397 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-09-20 19:05:51 +02:00
Martin Storsjö
3ffe32eb96
rtmp: Don't blindly skip the 4 trailer bytes from the FLV packets
...
If not enough bytes are available, keep track of them and skip
them on next call.
In practice, if these trailer bytes are written in a separate
call, there is no other data written in this call, making it
fall into the "FLV packet too small" case currently - working,
but not as intended.
This patch makes the code more robust, handling all cases
except for having the FLV packet header split over multiple
write calls.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-20 16:23:48 +03:00
Chiranjeevi Melam
a14c784210
rtmp: Handle FLV packets written in more than one write call
...
If the FLV packet is larger than the AVIO buffer, a partial
FLV packet will be flushed to the RTMP protocol.
This commit handles the most common cases of FLV packets
being written in more than one call.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-20 16:23:46 +03:00
Laurent Aimar
4cc7732386
rv34: Check for invalid slice offsets
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-20 10:29:55 +03:00
Michael Niedermayer
cadbe4ecd1
mov: Fix grayscale Cinepak in mov
...
Fixes Ticket165
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-20 06:19:25 +02:00
Michael Niedermayer
7491816010
libavfilter/libmpcodecs: add vf_stereo3d support
...
(code from mplayer see their svn for detailed authorship)
parameters must be integers as we do not have mplayers parser
also the stuff passed to it through non constant globals is not supported
this should be fixed in mplayer first.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-20 05:49:42 +02:00
Michael Niedermayer
5aa18fed84
libmpcodecs: some hunks from mplayer HEAD
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-20 05:14:52 +02:00
Michael Niedermayer
65655a0499
lavf/utils: better dts wrap correction.
...
Fixes Ticket488
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-20 04:32:46 +02:00
Michael Niedermayer
4832ed4c62
h264: do not increase recovery frame which would lead to endless moving away of the recovery point.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-20 02:52:17 +02:00
Michael Niedermayer
a8a9844a3c
h264: reset recovery frame on seeks.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-20 02:52:17 +02:00
Laurent Aimar
8716c178dd
Check for invalid slice offsets in real decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-20 01:34:53 +02:00
Michael Niedermayer
a254452472
regtests: add a flashsv2 decoder test limited to keyframes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-20 01:12:42 +02:00
Michael Niedermayer
a6186f3a00
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
movenc: fix NULL reference in mov_write_tkhd_tag
rmdec: Reject invalid deinterleaving parameters
rv34: Fix potential overreads
rv34: Fix buffer size used for MC of B frames after a resolution change
rv34: Avoid NULL dereference on corrupted bitstream
rv10: Reject slices that does not have the same type as the first one
vf_yadif: add an option to enable/disable deinterlacing based on src frame "interlaced" flag
vsrc_color: set output pos values to -1
vsrc_color: add @file doxy
vsrc_buffer: remove duplicated file description
eval: implement not() expression
eval: add sqrt function for computing the square root
rmdec: use the deinterleaving mode and not the codec when creating audio packets.
lavf: Fix context pointer in av_open_input_stream when avformat_open_input fails
Conflicts:
doc/eval.texi
doc/filters.texi
libavcodec/rv10.c
libavfilter/vsrc_color.c
libavformat/rmdec.c
libavutil/avutil.h
libavutil/eval.c
tests/ref/fate/eval
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-19 22:45:34 +02:00
Michael Niedermayer
16c5d3b0d0
allcodecs: cosmetic
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-19 21:52:06 +02:00
Michael Niedermayer
f5899f026e
gitignore: add libswresample*
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-19 17:39:38 +02:00
Gwenole Beauchesne
7882dc10f8
MAINTAINERS: add my GPG fingerprint.
2011-09-19 17:04:34 +02:00
Anton Khirnov
c92a2a4eb8
movenc: fix NULL reference in mov_write_tkhd_tag
...
st may be NULL when there are more mov streams than AVStreams, e.g. when
chapters are present.
2011-09-19 16:44:42 +02:00
Laurent Aimar
f06068bbd6
rmdec: Reject invalid deinterleaving parameters
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-19 15:45:22 +03:00
Laurent Aimar
b4ed3d78cb
rv34: Fix potential overreads
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-19 15:44:22 +03:00
Laurent Aimar
d2213b6493
rv34: Fix buffer size used for MC of B frames after a resolution change
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-19 15:44:22 +03:00
Laurent Aimar
d0f6ab0298
rv34: Avoid NULL dereference on corrupted bitstream
...
rv34_decode_slice() can return without allocating any pictures.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-19 15:44:22 +03:00
Laurent Aimar
4a29b47186
rv10: Reject slices that does not have the same type as the first one
...
This prevents crashes with some corrupted bitstreams.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-19 14:58:33 +03:00
Joakim Plate
ab09df9dea
vf_yadif: add an option to enable/disable deinterlacing based on src frame "interlaced" flag
...
Signed-off-by: Joakim Plate <elupus@ecce.se >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-19 12:44:22 +02:00
Stefano Sabatini
91aff2665d
vsrc_color: set output pos values to -1
...
-1 is more correct than 0, as the position in the file is undefined.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-19 12:44:02 +02:00
Stefano Sabatini
753890d0db
vsrc_color: add @file doxy
...
Also remove outdated reference to color in vf_pad.c.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-19 12:43:25 +02:00
Stefano Sabatini
deb58ab447
vsrc_buffer: remove duplicated file description
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-19 12:43:10 +02:00
Stefano Sabatini
8cee38a298
eval: implement not() expression
2011-09-19 12:38:34 +02:00
Stefano Sabatini
9bc393908a
eval: add sqrt function for computing the square root
2011-09-19 12:38:14 +02:00
Laurent Aimar
3e033da847
rmdec: use the deinterleaving mode and not the codec when creating audio packets.
...
It prevents crashes due to non initialized fields.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-19 12:37:31 +02:00
Carl Eugen Hoyos
4a9b069b67
Support 3IVD in isom, produced by 3ivx DivX Doctor.
...
Fixes ticket #486 .
2011-09-19 12:20:42 +02:00
David Goldwich
63d64228a7
lavf: Fix context pointer in av_open_input_stream when avformat_open_input fails
...
Signed-off-by: David Goldwich <david.goldwich@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-19 12:03:56 +02:00
Michael Niedermayer
8593b743a8
rematrix: dont use floats for int16 code.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-19 09:25:50 +02:00
Michael Niedermayer
c3c1af6dc6
rematrix: use double during init.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-19 08:44:49 +02:00
Michael Niedermayer
1133676f4a
swr: replace sqrt(0.5) by M_SQRT1_2
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-19 08:44:24 +02:00
Michael Niedermayer
a5f8aace89
configure: swr pkgconfig
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-19 07:32:38 +02:00
Michael Niedermayer
9dd3da1061
swr: fix shared lib build
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-19 07:26:42 +02:00
Michael Niedermayer
b5875b9111
Add libswresample.
...
Similar to libswscale this does resampling and format convertion, just for audio
instead of video.
changing sampling rate, sample formats, channel layouts and sample packing all
in one with a very simple public interface.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-19 07:04:17 +02:00
John Stebbins
53e37840bf
calculate frame_num for recovery point "keyframe"
...
recovery points that have non-zero recovery_frame_cnt resulted in
flagging incomplete frames as keyframes. This delays setting the
keyframe flag till the frame has been fully constructed.
2011-09-18 23:13:50 +02:00
Michael Niedermayer
96c93b8ceb
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
doc/APIChanges: fill in missing hashes and dates.
Conflicts:
doc/APIchanges
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-18 22:26:46 +02:00
Carl Eugen Hoyos
4bc447a3c5
Fix compilation with --disable-everything --enable-outdev=alsa.
...
Bug found and analysed by skierpage.
2011-09-18 22:22:45 +02:00
Michael Niedermayer
ba5ff1b31e
h264dec: add forgotten copying of h->sync
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-18 21:53:30 +02:00
Carl Eugen Hoyos
0ddcfa42cc
Fix compilation without --disable-swscale.
2011-09-18 19:06:49 +02:00
Carl Eugen Hoyos
c76861723b
Fix compilation with --disable-swscale.
...
Fixes ticket #482 .
2011-09-18 18:57:35 +02:00
Joakim Plate
8e4c10003a
Set AV_PKT_FLAG_KEY based on nupplevideo header
...
Based from lipbmpdemux/nupplevideo.h and from myth NuppelVideoRecorder.cpp
2011-09-18 18:25:44 +02:00
Joakim Plate
7768f6b1b9
add support for generic seeking by reading timestamps in nuv
2011-09-18 18:16:37 +02:00
Clément Bœsch
46f415b553
doc/filters: fix numer/number typo.
2011-09-18 17:32:03 +02:00
Clément Bœsch
46c9ddf83c
lavfi: fix avfilter_get_audio_buffer() doxy to match reality.
2011-09-18 17:32:03 +02:00
Michael Niedermayer
9209249ba1
lavc: better reference to AVOptions
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-18 16:06:28 +02:00
Michael Niedermayer
0812ad01c8
h264dec: Support CODEC_FLAG2_SHOW_ALL.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-18 15:33:50 +02:00
Michael Niedermayer
86dd4b0495
mpeg2dec: support CODEC_FLAG2_SHOW_ALL.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-18 15:33:50 +02:00
Michael Niedermayer
4907302236
lavc: Document that AVOptions should be used.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-18 15:33:50 +02:00
Michael Niedermayer
645cebbe4f
lavc: add CODEC_FLAG2_SHOW_ALL
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-18 15:33:50 +02:00
Stefano Sabatini
9535929897
asrc_anullsrc: amend description to reflect the recent changes
2011-09-18 14:26:37 +02:00
Stefano Sabatini
1d8d987ba8
asrc_anullsrc: globally prefer "null" over "priv" for indicating the filter context
...
More locally and globally consistent.
2011-09-18 12:38:39 +02:00
Stefano Sabatini
17d2fee789
asrc_anullsrc: do not show the int64_t value for channel_layout
...
That was clumsy and confusing, only show the descriptive channel
layout string.
2011-09-18 12:38:39 +02:00
Stefano Sabatini
e72aa524d8
asrc_anullsrc: implement a request_frame callback for returning frames
...
This is mainly useful for filters (like the sox synth), which
overwrite the content of the passed data.
2011-09-18 12:38:33 +02:00
Stefano Sabatini
44ab77db9e
asrc_anullsrc: extend syntax to make it accept a non positional list of arguments
...
The new syntax is more extensible and more user-friendly.
This breaks the previous syntax, should not be an issue as possibly
no-one is already using anullsrc.
2011-09-18 12:30:01 +02:00
Anton Khirnov
7f9b0ef9a8
doc/APIChanges: fill in missing hashes and dates.
2011-09-18 12:01:23 +02:00
Chiranjeevi Melam
07631deeee
rtmpproto.c: Fixed RTMP Stream output issue
...
Original code had the assumption of only one FLV packet per RTMP packet. But that assumption is incorrect for higher bit rates. Made changes to the code to accommodate more than one FLV packet per RTMP
+packet.
2011-09-18 06:32:05 +02:00
Arne de Bruijn
b2f230e23d
mpegpsdec: fix reading first mpegps packet
2011-09-18 01:57:56 +02:00
Laurent Aimar
140dbcff35
Avoid NULL dereference on corrupted bitstream with real decoder.
...
rv34_decode_slice() can return without allocating any pictures.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-18 00:57:49 +02:00
Laurent Aimar
d788af6cf6
Reject slices that does not have the same type than the first one in RV10/RV20 decoder.
...
This prevents crashes with some corrupted bitstreams.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-18 00:57:49 +02:00
Michael Niedermayer
eac673d506
timecode: relicense to LGPLv2+ with permission of Baptiste and ubitux.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-18 00:29:32 +02:00
Michael Niedermayer
9a9ceb8776
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavfi: add select filter
oggdec: fix out of bound write in the ogg demuxer
movenc: create an alternate group for each media type
lavd: add libcdio-paranoia input device for audio CD grabbing
rawdec: refactor private option for raw video demuxers
pcmdec: use unique classes for all pcm demuxers.
rawdec: g722 is always 1 channel/16kHz
Conflicts:
Changelog
configure
doc/filters.texi
libavdevice/avdevice.h
libavfilter/avfilter.h
libavfilter/vf_select.c
tests/ref/lavf/mov
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-17 22:36:43 +02:00
Michael Niedermayer
979bea1300
check all svq3_get_ue_golomb() returns.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-17 21:55:11 +02:00
Michael Niedermayer
a64b028aeb
h264dec: Dont display trash before a keyframe.
...
Fixes Ticket472
This may (or may not) cause problems with files that have no keyframes.
Plese open a bugreport or mail me if you have a file for which this fails.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-17 21:20:44 +02:00
Michael Niedermayer
35f38b3ab9
rv34: check for size mismatch
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-17 20:17:10 +02:00
Stefano Sabatini
d763fb7d47
lavfi: add select filter
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-17 19:08:30 +02:00
Laurent Aimar
a5dc990a4e
Fix buffer size used for MC of B frames after a resolution change in the real decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-17 19:00:11 +02:00
Laurent Aimar
0e7efb9d23
oggdec: fix out of bound write in the ogg demuxer
...
Between ogg_save() and ogg_restore() calls, the number of streams
could have been reduced.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-09-17 09:41:02 -07:00
Laurent Aimar
4907f81358
Reject audio tracks with invalid interleaver parameters in RM demuxer.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-17 18:26:53 +02:00
Laurent Aimar
352c878de6
Fix js_vlc_bits value validation when joint stereo is used in cook decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-17 17:44:56 +02:00
Laurent Aimar
9a0a64cb26
Fix potential overreads in rv34 decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-17 17:38:26 +02:00
Anton Khirnov
7574cacbd5
movenc: create an alternate group for each media type
...
Partially fixes bug 44.
2011-09-17 08:42:30 +02:00
Anton Khirnov
e417d80d28
lavd: add libcdio-paranoia input device for audio CD grabbing
2011-09-17 06:45:26 +02:00
Anton Khirnov
85d982f1e2
rawdec: refactor private option for raw video demuxers
...
pixel_format/video_size only apply to 'rawvideo' (==uncompressed) demuxer
and make no sense for the other raw (== containerless) demuxers. Keep
only the framerate option for those.
Also use unique classes for all raw video demuxers
2011-09-17 06:43:09 +02:00
Anton Khirnov
34d2bf30a0
pcmdec: use unique classes for all pcm demuxers.
2011-09-17 06:42:32 +02:00
Anton Khirnov
d906f49aa8
rawdec: g722 is always 1 channel/16kHz
2011-09-17 06:42:17 +02:00
Michael Niedermayer
bfadca1faf
mjpegdec: print nb_components too in pict debug info
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-17 01:38:58 +02:00
Michael Niedermayer
b002184fa1
mjpegdec: make sure we dont interpret things after the bitstream buffer as resync marker
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-17 01:38:58 +02:00
Stefano Sabatini
d93a448be3
graph2dot: show timebase information for audio links
2011-09-17 01:36:32 +02:00
Stefano Sabatini
db79d04173
af_aresample: do not request a buffer with AV_PERM_REUSE2 permissions in filter_samples()
...
That was pointless. Simplify.
2011-09-17 01:36:00 +02:00
Michael Niedermayer
b6c04b6821
mjpegdec: Remove buggy avid hacks, they dont do anything good with any file i found
...
Fix multi plane jpeg
Fixes ticket471
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-16 23:09:12 +02:00
Michael Niedermayer
93869d4e44
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
libx264: introduce slice-max-size option
Fixed size given to init_get_bits().
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-16 21:43:56 +02:00
Michael Niedermayer
5c5306df96
lavf/utils: rewrite real fps calculation code.
...
The new code is free of biasing to the first timestamps
Fixes fraps.fps.test.zip
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-16 21:29:58 +02:00
Stefano Sabatini
e3fc0e8280
lavdev/lavfi: reindent after the last commit
2011-09-16 21:22:11 +02:00
Stefano Sabatini
4893c204c8
lavdev/lavfi: add audio support
2011-09-16 21:22:05 +02:00
Mina Nagy Zaki
3ee0bedcc0
lavfi: refactor query_formats and auto-insert audio conversion filters
...
Behaviour has been changed to fail negotiation if fields have been
left empty.
Patch was originally based on a patch by Hemanth.
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-09-16 20:44:27 +02:00
Stefano Sabatini
37cc443c83
lavfi: add audio convert filter
...
Add aconvert filter to perform sample format, channel layout, and
packing format conversion.
The aconvert code depends on audio conversion code in libavcodec, so
this requires a dependency on libavcodec.
Based on previous work by S.N. Hemanth Meenakshisundaram and Mina Nagy
Zaki, performed for the GSoC 2010 and 2011.
2011-09-16 20:44:27 +02:00
Stefano Sabatini
553c5e9f23
lavfi: add and use an inlink variable in avfilter_config_links()
...
Simplify expressions, improve readability.
2011-09-16 20:44:27 +02:00
Stefano Sabatini
71c644ceda
lavfi: set link audio time_base if not set in avfilter_config_links()
...
The set value depends on the input link, or on the sample_rate value.
Avoids the need to explicitely set the time_base value.
2011-09-16 20:44:26 +02:00
Daniel Kristjansson
4460b81f9e
mxfenc: Add support for MPEG-2 MP@HL-14 in mxf container
...
Support Main Profile at High 1440 Level in MXF container,
using essence coding label from SMPTE RDD 9, table 6.
2011-09-16 18:16:30 +02:00
Luca Barbato
3a78fb57de
libx264: introduce slice-max-size option
...
Yet another option useful for low latency streaming.
2011-09-16 07:56:17 -07:00
Clément Bœsch
8af64e1a67
ffprobe: fix crash with -h.
2011-09-16 14:31:42 +02:00
Clément Bœsch
9eb1c94713
doc: fix x264_opts/x264opts typo.
2011-09-16 11:50:06 +02:00
Ramiro Polla
6613db9736
dshow: remove filters from graph before releasing them
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-09-16 11:16:05 +02:00
Ramiro Polla
a1644f6287
dshow: reset list for each filter removed
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-09-16 11:16:05 +02:00
Ramiro Polla
215e197942
dshow: invert condition to avoid leaking objects
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-09-16 11:16:05 +02:00
Ramiro Polla
dd41036a4c
dshow: cleanup internal references on capture interface
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-09-16 11:16:05 +02:00
Ramiro Polla
0b951d103d
dshow: release pin on disconnect
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-09-16 11:16:05 +02:00
Ramiro Polla
c7807eeb78
doc: add documentation for dshow indev
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-09-16 11:16:00 +02:00
Ramiro Polla
01b997b958
dshow: indent
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-09-16 11:09:47 +02:00
Ramiro Polla
0883a7fa3b
dshow: add option to list audio/video options
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-09-16 11:09:13 +02:00
Ramiro Polla
c4b2027d10
dshow: add audio/video options
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-09-16 11:06:56 +02:00
Ramiro Polla
d0da310317
dshow: initialize variable to prevent releasing random data
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-09-16 11:02:26 +02:00
Ramiro Polla
ee4ed80485
dshow: factorise cycling through pins
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2011-09-16 11:02:13 +02:00
Michael Niedermayer
41215fdeb3
libavfilter/formats.c: fix compile of test
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-16 06:07:07 +02:00
Michael Niedermayer
cfe4e8c220
bintext: make decoder names unique
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-16 05:53:32 +02:00
Michael Niedermayer
3ac4f444e2
bintext: set buffer hints
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-16 05:53:32 +02:00
Michael Niedermayer
b9dbaa409f
bintext: fix possible x variable overflow.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-16 05:53:32 +02:00
Michael Niedermayer
fa2dbcd46a
bintext: remove unneeded get_buffer()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-16 05:53:31 +02:00
Peter Ross
07a70caba7
Binary text decoder
...
Decoder and demuxer for various binary text formats.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-16 05:53:14 +02:00
Stefano Sabatini
ea8de109af
lavfi: add avfilter_all_channel_layouts public symbol
...
This list is mainly useful to be directly used as a parameter by the
audio sink buffer, when there is no need to force a specific channel
layout.
The list of formats is generated programmatically, and avoids channel
layouts not supported by libavfilter (with more than 8 channels).
We preferred to avoid compile-time generation in order to avoid some
unnecessary complexity (build hacks, generating code maintainance
etc.).
A more compact way to express this list through the use of macros
should be possible when libavfilter will support more than 8 channels,
as there will be no need to filter out channel layouts with more than
8 channels.
See thread:
Subject: [FFmpeg-devel] [PATCH] lavfi: add ff_all_channel_layouts internal symbol
Date: Sat, 20 Aug 2011 15:33:16 +0200
2011-09-16 00:46:41 +02:00
Stefano Sabatini
9899037dc6
lavfi: rename avfilter_all_* function names to avfilter_make_all_*
...
A function name should tell what the function does rather than what
the function returns. This also avoids possible conflicts
(e.g. between a function and a public list of all supported formats),
and clarifies the code.
Breaks audio API/ABI, add a backward compatibility layer for video
API/ABI.
2011-09-16 00:42:47 +02:00
Stefano Sabatini
98b906e1af
APIchanges: remove prores decoder addition entry
...
It is not an API change.
2011-09-16 00:42:09 +02:00
Michael Niedermayer
62101030c4
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
swscale: fix byte overreads in SSE-optimized hscale().
matroskadec: fix typo.
matroskadec: bail on parsing of incorrect seek index segments
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-15 23:10:26 +02:00
Michael Niedermayer
e78d1a594a
mpegts: make sure the "standard" code doesnt override the probing with NONE/DATA.
...
Fixes video stream detection in vid_0x80.ts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-15 23:01:04 +02:00
Laurent Aimar
b59efc9434
Fixed size given to init_get_bits().
...
init_get_bits() takes a number of bits and not a number of bytes as
its size argument.
Signed-off-by: Alex Converse <alex.converse@gmail.com >
2011-09-15 13:23:04 -07:00
Ingo Brückl
5d305c9398
Correct determination of file size and frames in VBRI headers
...
The fields "Number of Bytes" and "Number of Frames" are mixed up. "Bytes"
come first, "Frames" behind.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-15 20:16:55 +02:00
Elvis Presley
b3887bd5fa
configure: require gplv2 for prores
...
Signed-off-by: Elvis Presley <elvis@e.p>
2011-09-15 17:07:00 +02:00
Elvis Presley
db54ff6d53
configure: add GPLv2 support (needed for ProRes)
...
Signed-off-by: Elvis Presley <elvis@e.p>
2011-09-15 17:06:21 +02:00
Ronald S. Bultje
ea540401d6
swscale: fix byte overreads in SSE-optimized hscale().
...
SSE-optimized hScale() scales up to 4 pixels at once, so we need to
allocate up to 3 padding pixels to prevent overreads. This fixes
valgrind errors in various swscale-tests on fate.
2011-09-15 07:30:46 -07:00
Elvis Presley
3dd47ae537
Revert "get_bits: remove x86 inline asm in A32 bitstream reader"
...
This reverts commit 23ce6e7212 .
2011-09-15 15:59:04 +02:00
Elvis Presley
5554de13b2
ProRes Decoder
...
Signed-off-by: Elvis Presley <elvis@e.p>
2011-09-15 15:58:56 +02:00
Dustin Brody
d7d2f0e63c
matroskadec: fix typo.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-15 09:34:38 +02:00
Dustin Brody
4a9628f276
matroskadec: bail on parsing of incorrect seek index segments
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-15 09:34:16 +02:00
Michael Niedermayer
d55b06b8e7
mjpeg: interlaced buggy avid fix
...
Fix Ticket362
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-15 04:20:11 +02:00
Michael Niedermayer
e009432b50
mjpegdec: fix len for AVI1 reader
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-15 04:18:32 +02:00
Michael Niedermayer
b34c7a5656
Revert "MJPEG: emulate EOI also on two consecutive SOI."
...
This causes Ticket463, fix will be in the next commits
This reverts commit 5e2ea138b7 .
2011-09-15 04:17:26 +02:00
Michael Niedermayer
3ee83f4605
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavf utils: Remove write-only variable
lavf utils: Rename shadowing variable
smacker: fix a few off by 1 errors
Check for invalid VLC value in smacker decoder.
Check and propagate errors when VLC trees cannot be built in smacker decoder.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-14 21:57:47 +02:00
Michael Niedermayer
205c13685f
h264: allow disabling bitstream overread protection by using the fast flag.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-14 20:48:00 +02:00
Joakim Plate
cdced09ef6
Don't override duration from file header with bitrate duration
...
This is most noticable on matroska files which has duration
as part of it's header.
2011-09-14 20:08:43 +02:00
Joakim Plate
5d70536804
[yop] Check return value of avio_seek and avoid modifying state if it fails
2011-09-14 19:53:45 +02:00
Joakim Plate
7bcd81299a
[wtv] Check return value of avio_seek and avoid modifying state if it fails
2011-09-14 19:53:45 +02:00
Joakim Plate
d9d7174d70
[tta] Check return value of avio_seek and avoid modifying state if it fails
2011-09-14 19:53:45 +02:00
Joakim Plate
fc12f54ea9
[tmv] Check return value of avio_seek and avoid modifying state if it fails
2011-09-14 19:53:45 +02:00
Joakim Plate
425907809b
[r3d] Check return value of avio_seek and avoid modifying state if it fails
2011-09-14 19:53:45 +02:00
Joakim Plate
e22155ef0e
[nsv] Check return value of avio_seek and avoid modifying state if it fails
2011-09-14 19:53:45 +02:00
Joakim Plate
a3f4fc813d
[mxfdec] Check return value of avio_seek and avoid modifying state if it fails
2011-09-14 19:53:45 +02:00
Joakim Plate
88ad79415c
[mpc8] Check return value of avio_seek and avoid modifying state if it fails
2011-09-14 19:53:45 +02:00
Joakim Plate
833358172b
[jvd] Check return value of avio_seek and avoid modifying state if it fails
2011-09-14 19:53:39 +02:00
Joakim Plate
58540d7bd3
[filmstrip] Check return value of avio_seek and avoid modifying state if it fails
2011-09-14 19:51:07 +02:00
Joakim Plate
928cfc7e4f
[ffmdec] Check return value of avio_seek and avoid modifying state if it fails
2011-09-14 19:51:07 +02:00
Joakim Plate
1df00ac80f
[dv] Check return value of avio_seek and avoid modifying state if it fails
2011-09-14 19:51:07 +02:00
Joakim Plate
75f418064e
[cafdec] Check return value of avio_seek and avoid modifying state if it fails
2011-09-14 19:51:07 +02:00
Joakim Plate
598cc84fbf
[bink] Check return value of avio_seek and avoid modifying state if it fails
2011-09-14 19:51:07 +02:00
Alex Converse
940173d4d1
lavf utils: Remove write-only variable
2011-09-14 10:35:46 -07:00
Alex Converse
4439caa482
lavf utils: Rename shadowing variable
2011-09-14 10:35:42 -07:00
Michael Niedermayer
d2a847c203
Merge remote-tracking branch 'hexene/scratchpad'
...
* hexene/scratchpad:
libstagefright: Explicitly free smart pointer objects
Changelog: Explain why C++ support is added, and that its optional
tools/build_libstagefright: rename build/libav to something neutral
Conflicts:
Changelog
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-14 17:46:49 +02:00
Mohamed Naufal
e7f9aa6ff5
libstagefright: Explicitly free smart pointer objects
2011-09-14 21:01:07 +05:30
Michael Niedermayer
1a2d8c8b35
Changelog: Explain why C++ support is added, and that its optional
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-14 20:55:07 +05:30
elupus
9fa47cb773
make mpegts_get_pcr resync if it's not on a valid mpegts packet
2011-09-14 17:11:23 +02:00
elupus
6214266362
cosmetic reindent of mpegts_get_pcr
2011-09-14 17:11:07 +02:00
elupus
0a90b6a43e
check return value of url_fseek in mpegts_get_pcr
2011-09-14 17:10:40 +02:00
elupus
880e83827f
respect the maximum position mpegts_get_pcr is allowed to seek to
2011-09-14 17:09:56 +02:00
elupus
2130d2f594
remove unused code in mpegts_get_pcr
2011-09-14 17:08:43 +02:00
Michael Niedermayer
b5824233fb
tools/build_libstagefright: rename build/libav to something neutral
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-14 19:51:18 +05:30
Michael Niedermayer
a30ef63354
ffplay: dont drop all frames if realtime decoding is impossible
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-14 14:56:59 +02:00
Michael Niedermayer
5166376f24
smacker: fix a few off by 1 errors
...
stereo & 16bit is untested due to lack of samples
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-14 11:13:54 +03:00
Laurent Aimar
6489455495
Check for invalid VLC value in smacker decoder.
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-14 10:40:31 +03:00
Laurent Aimar
9676ffba83
Check and propagate errors when VLC trees cannot be built in smacker decoder.
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-14 10:38:49 +03:00
Kelly Anderson
872655fee9
dvdsubdec: fix bad free in dvdsub_init
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-14 07:14:37 +02:00
Michael Niedermayer
15240feb99
Merge remote-tracking branch 'hexene/scratchpad'
...
* hexene/scratchpad:
Move & Rename buildscript, remove tabs
Fix regular build
Support (H/W accelerated) H.264 decoding on Android via Stagefright
Add build-script for Android
C++ Support ;)
Conflicts:
Changelog
Makefile
configure
libavcodec/Makefile
libavcodec/allcodecs.c
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-14 01:23:16 +02:00
Carl Eugen Hoyos
f27f68eb4f
Muxing WTV is supported.
2011-09-14 01:21:15 +02:00
Michael Niedermayer
6a507ccfe5
wtvenc: add some asserts because iam paranoid
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-14 01:08:01 +02:00
zhentan feng
438debd095
WTV muxer (2_wtvenc.patch, 3_add_wtv_muxer.patch)
2011-09-14 00:41:25 +02:00
Michael Niedermayer
d06c5b44cc
swscale: drop redundant code.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-14 00:32:18 +02:00
Michael Niedermayer
1eb8014b49
swscale: add 14bit support to the "MMX/SSE2/SSSE3/SSE4 versions for horizontal scaling"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-14 00:19:03 +02:00
Michael Niedermayer
7700846cf6
swscale: remove unused and forgotten file.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-14 00:05:19 +02:00
Michael Niedermayer
1294ae6f94
Revert "Check if dxva2api.h is recent enough to compile vc1_dxva2_hwaccel."
...
This reverts commit 9104cd5161 .
Revert requested by ramiro
Conflicts:
configure
2011-09-13 23:56:13 +02:00
Michael Niedermayer
b62e42dafe
doc/ffmpeg: s/avserver/ffserver/
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-13 23:52:43 +02:00
Michael Niedermayer
cac9877ed5
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
sws: implement MMX/SSE2/SSSE3/SSE4 versions for horizontal scaling.
include stdint.h in adpcm_data.h
mpeg12: reorder functions to avoid ugly forward declarations
Fixed off by one packet size allocation in the smacker demuxer.
Check for invalid packet size in the smacker demuxer.
ape demuxer: fix segfault on memory allocation failure.
xan: Add some buffer checks
xan: Remove extra trailing newline
Fixed size given to init_get_bits() in xan decoder.
Conflicts:
libavcodec/mpeg12.c
libswscale/x86/swscale_template.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-13 23:44:12 +02:00
Clément Bœsch
5ad01decef
ffprobe: rename print_{int,str}_f callbacks to print_{integer,string}.
...
Renamed for consistency. Also, since print_int() and print_str() are
already defined as macros, the long name version is preferred.
2011-09-13 23:06:11 +02:00
Clément Bœsch
3fdf519e4b
ffprobe: add JSON output printing format.
2011-09-13 23:03:05 +02:00
Clément Bœsch
afbeb49456
ffprobe: replace fmt callback with str callback.
...
Having a string callback is much more simpler than a variable args
one for writers to deal with, especially when dealing with escaping.
This patch also introduces a local fast_asprintf() function which is
similar to av_asprintf() but avoids reallocating at each print (leading
to a performance issue).
2011-09-13 22:41:08 +02:00
Michael Niedermayer
e29d6db55b
Merge avconv.texi in ffmpeg.texi
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-13 20:34:19 +02:00
Ronald S. Bultje
e0c3e07387
sws: implement MMX/SSE2/SSSE3/SSE4 versions for horizontal scaling.
...
Speed: from 3.9x to 9.6x speed improvement over C, and some small
(up to 15%) speed improvements over existing MMX code (particularly
for bigger filters).
2011-09-13 09:53:42 -07:00
Michael Niedermayer
9331a2ee41
configure: slightly more robust looking check for math functions.
...
I dont know on which system the prior check failed but an advanced
linker on some platform might have optimized func() out as unreachable.
Patch taken from http://floss.freebox.fr
Author: unknown
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-13 17:34:19 +02:00
Michael Niedermayer
8f5bb35f40
ffmpeg: fix video synchronization code to be exact on constant fps videos. Fixes Ticket137
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-13 17:29:23 +02:00
Justin Ruggles
3ed7860943
include stdint.h in adpcm_data.h
...
fixes make checkheaders
2011-09-13 10:59:47 -04:00
Diego Biurrun
a05ea77c9f
mpeg12: reorder functions to avoid ugly forward declarations
2011-09-13 15:53:05 +02:00
Michael Niedermayer
fbbe092568
ffplay: remove thread command line option code, it is unneeded for -threads X to work.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-13 15:05:42 +02:00
Michael Niedermayer
838e36635a
avcodec: move "thread emulation" warning to common code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-13 15:05:42 +02:00
Carl Eugen Hoyos
391b1e3911
Fix false positive when detecting dxva2.
2011-09-13 10:11:16 +02:00
Michael Niedermayer
38670356f9
libavformat/utils: print ts in the "invalid dts/pts combination" case.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-13 06:42:13 +02:00
Michael Niedermayer
39e0accb7a
vf_remove_logo: domt access vf->next->query_format() directly but use the API.
...
This fixes a crash
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-13 03:52:30 +02:00
Michael Niedermayer
d67e74929c
smacker: fix a few off by 1 errors
...
stereo & 16bit is untested due to lack of samples
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-13 01:27:35 +02:00
Joakim Plate
32c0c562e7
dvdsubdec: Move colormap and alpha to context
...
This makes it rememember old values should the stream not
contain new values for these for each subtitle.
2011-09-13 00:26:27 +02:00
Michael Niedermayer
f98edc73c5
smacker: add forgotten *
...
found by fenrir
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-12 23:55:44 +02:00
Laurent Aimar
a92d0fa5d2
Fixed off by one packet size allocation in the smacker demuxer.
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-12 23:44:51 +03:00
Laurent Aimar
e055932f56
Check for invalid packet size in the smacker demuxer.
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-12 23:43:52 +03:00
Andrew Wason
5e85fd9f9c
libx264: fix overwriting presets with flags2
...
This fixes overwriting x264 preset settings for flags2 based options.
See https://ffmpeg.org/trac/ffmpeg/ticket/448
2011-09-12 22:12:47 +02:00
Joakim Plate
6c9a24636b
asf: only try to read asf index once
...
This avoid retrying to read ASF index in files for every
attempt to seek. This makes a big difference to protocols
with slow seeking (for example http)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-12 22:12:14 +02:00
Stefano Sabatini
9efae6a161
lavfi: bump minor and update APIchanges after recent updates
...
These changes were forgotten in commits:
lavfi: simplify signature for avfilter_get_audio_buffer() and friends
(commit 2c0317419b )
and
lavfi: consistently use int for sample_rate in AVFilterLink and AVFilterBufferRefAudioProps
(commit 4381bddc9f )
2011-09-12 22:08:53 +02:00
Laurent Aimar
c58d45e004
segafilm: Fix potential division by 0 on corrupted segafilm streams in the demuxer.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-12 21:45:23 +02:00
Laurent Aimar
7cbe025758
segafilm: Check for memory allocation failures in segafilm demuxer.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-12 21:45:07 +02:00
Andrew Wason
3eb1e65f5f
libx264: fix overwriting preset rc_lookahead
...
This fixes https://ffmpeg.org/trac/ffmpeg/ticket/448 - at least for
rc_lookahead. A similar problem still exists for the flags2 based
options.
2011-09-12 21:35:24 +02:00
Joakim Plate
7009b96511
dvdsubdec: Support palette information for vobsub's stored as text in extradata
...
This is how mkv's store palette information for vobsubs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-12 21:35:10 +02:00
Laurent Aimar
273aab99bf
ape demuxer: fix segfault on memory allocation failure.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-12 21:12:31 +02:00
Michael Niedermayer
9765caec1b
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
adpcm: split ADPCM encoders and decoders into separate files.
doc/avconv: fix typo.
rv34: check that subsequent slices have the same type as first one.
smacker demuxer: handle possible av_realloc() failure.
lavfi: add split filter from soc.
lavfi: add showinfo filter
libxavs: add private options corresponding to deprecated global options
Conflicts:
Changelog
libavcodec/adpcm.c
libavfilter/avfilter.h
libavfilter/vf_showinfo.c
libavfilter/vf_split.c
libavformat/smacker.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-12 21:01:12 +02:00
Alex Converse
0872bb23b4
xan: Add some buffer checks
2011-09-12 11:18:57 -07:00
Alex Converse
350f57bd7b
xan: Remove extra trailing newline
2011-09-12 11:18:57 -07:00
Laurent Aimar
393d5031c6
Fixed size given to init_get_bits() in xan decoder.
2011-09-12 11:18:57 -07:00
Ramiro Polla
f0c64d0d0b
dshow: indent
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
2011-09-12 19:22:13 +02:00
Ramiro Polla
1c282f96ab
dshow: add option to list devices
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
2011-09-12 19:22:10 +02:00
Ramiro Polla
fad4e1a572
dshow: factorise cycling through devices
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
2011-09-12 19:22:06 +02:00
Stefano Sabatini
4381bddc9f
lavfi: consistently use int for sample_rate in AVFilterLink and AVFilterBufferRefAudioProps
...
Also consistent with AVCodecContext.sample_rate. Simplify/avoid
pointless type checks and conversions.
Breaks audio API/ABI.
2011-09-12 18:51:46 +02:00
Stefano Sabatini
2c0317419b
lavfi: simplify signature for avfilter_get_audio_buffer() and friends
...
The additional parameters were never used and are complicating the
function interface. Also, they were inconsistent with the way the
video API works.
So this assumes that a requested samples buffer will have *always* the
format specified in the requested link.
This breaks audio filtering API and ABI.
2011-09-12 18:51:18 +02:00
Philip de Nier
47886e3644
mxfdec: skip to end of structural sets This fixes reading of partition packs. The code stops reading after the operational pattern and should skip the array of essence container labels that follow
2011-09-12 18:17:49 +02:00
Hendrik Leppkes
7321163011
gitignore: ignore .exp files, as generated by the MS linker on win32
...
Ignore another filetype, as generated by Microsofts lib.exe when creating the import libraries.
2011-09-12 18:17:43 +02:00
Justin Ruggles
826c56d16e
adpcm: split ADPCM encoders and decoders into separate files.
...
Move shared tables to a separate file as well.
2011-09-12 11:26:11 -04:00
Anton Khirnov
57650c70e2
doc/avconv: fix typo.
2011-09-12 15:53:26 +02:00
Kostya Shishkov
23a1f0c592
rv34: check that subsequent slices have the same type as first one.
...
This prevents some crashes when corrupted bitstream reports e.g. P-type
slice in I-frame. Official RealVideo decoder demands all slices to be
of the same type too.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-12 15:51:30 +02:00
Kostya Shishkov
47a8589f7b
smacker demuxer: handle possible av_realloc() failure.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-12 15:51:21 +02:00
Clément Bœsch
677a831ec6
ffmpeg: remove unused data_codec_name.
2011-09-12 12:09:09 +02:00
Clément Bœsch
525d4852b9
ffmpeg: set {audio,video,subtitle}_codec_name const.
...
This fixes "assignment discards ‘const’ qualifier from pointer target
type." warnings.
2011-09-12 12:09:08 +02:00
Clément Bœsch
4b961ddfea
ffmpeg: a bit more consistent prototypes.
2011-09-12 11:52:55 +02:00
Bobby Bingham
615baa13e4
lavfi: add split filter from soc.
...
Some fixes by Stefano.
For detailed authorship see SOC repo
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-12 08:48:16 +02:00
Stefano Sabatini
ee42716b07
lavfi: add showinfo filter
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-12 08:48:14 +02:00
Anton Khirnov
af1e247038
libxavs: add private options corresponding to deprecated global options
...
Code mostly copied from libx264 wrapper.
2011-09-12 08:45:55 +02:00
Michael Niedermayer
83a0caad84
alsa: increase max buffer size
...
Fixes Ticket373
Thanks to llogan for testing
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-12 06:16:40 +02:00
Michael Niedermayer
716c1f7b2a
h264: improve MAX_SLICES too small check so it gives less false positives.
...
Fixes Ticket273
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-12 06:07:58 +02:00
Michael Niedermayer
ad2fba8619
doc: replace avserver by ffserver as we have not done that rename
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-12 06:07:58 +02:00
Joakim Plate
7e4111cfe2
rmdec: Check return value of more avio_seek calls
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-12 04:39:13 +02:00
Joakim Plate
f9e083a156
avidec: Check return value of more avio_seek calls
...
The move of avio_seek in avi_read_seek is to avoiding modifying
state if the seek would fail.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-12 04:39:12 +02:00
Joakim Plate
ac1d489320
asf: Check return value of more avio_seek calls
...
This reduces problems when underlying protocol is not
seekable even if marked as such or if the file has been
cut short.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-12 04:39:12 +02:00
Laurent Aimar
bc851a2946
Fix writes out of bounds in the ogg demuxer.
...
Between ogg_save() and ogg_restore() calls, the number of streams
could have been reduced.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-12 04:39:12 +02:00
Joakim Plate
340e6735fe
mpeg12dec: if lavc's mpeg2 decoder was asked to drop a frame, it could still output an old frame, and mess up timestamps
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-12 04:03:40 +02:00
Michael Niedermayer
411cc5c46a
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (31 commits)
audioconvert: add explanatory comments to channel_names array
audioconvert: K&R whitespace cosmetics
avconv: use correct index when selecting metadata to write to.
avconv: fix inverted variable
doc/avconv: document option types (input/output/per-stream/...)
doc/avtools-common-opts: write a section about stream specifiers.
doc/avconv: remove two pointless paragraphs.
doc/avconv: document that global options should be specified first.
doc/avconv: remove entries for nonexistent options
doc/avconv: remove documentation for removed 'timestamp' option
doc: cosmetics, rename fftools-common-opts to avtools-....
avconv: move streamid_map to options context.
avconv: extend -vf syntax
avconv: move top_field_first to options context.
avconv: move inter/intra matrix to options context.
avconv: remove -psnr option.
avconv: remove me_threshold option.
avconv: move video_rc_override_string to options context.
avconv: move frame pixel format to the options context.
avconv: move frame aspect ratio to the options context.
...
Conflicts:
avconv.c
cmdutils_common_opts.h
doc/avconv.texi
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-12 00:32:54 +02:00
Joakim Plate
5a6f4a1302
gitignore: add files to git ignore generated on a win32 build
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-11 21:42:54 +02:00
Laurent Aimar
dc255275f6
Fixed invalid read access on extra data in cinepak decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-11 21:19:46 +02:00
Laurent Aimar
d0121e8d96
Fixed segfault on corrupted smacker streams in the demuxer.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-11 21:19:45 +02:00
Laurent Aimar
d07ac1853d
Fixed segfaults on corruped smacker streams in the decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-11 21:19:45 +02:00
Laurent Aimar
1632a576e6
Fixed segfault on memory allocation failure in ape demuxer.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-11 21:19:45 +02:00
Joakim Plate
c8ce2b0a1d
mpegts: When playing mpegts over rtp/rtsp/sdp, lavf must still read PAT/SDT to get available streams
...
The code path using for mpegts over rtp doesn't open the demuxer using
mpegts_read_header,
so it never starts listening for PAT/SDT, only uses auto_guess
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-11 20:21:47 +02:00
Stefano Sabatini
6cfed11270
audioconvert: add explanatory comments to channel_names array
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-09-11 18:41:34 +02:00
Stefano Sabatini
3a0b5fa5e8
audioconvert: K&R whitespace cosmetics
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-09-11 18:41:33 +02:00
Joakim Plate
53f8f0a70e
Fix for some non interleaved avi files that gets played twice or won't end
...
This changes so we assume EOF when we can't find the next
streams index entry for non interleaved file.
http://trac.xbmc.org/ticket/5585
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-11 18:21:07 +02:00
Joakim Plate
e42a3dd123
Allow reading of growing avi files (ie currently being written)
...
This uses the RIFF header stored size to figure out the expected AVI file size, instead
of the actual file. To work fully it requires handling failed avio_seek() instead
of assuming they always succeed.
Some fate file has been cut off and contains half a frame at the end which previously
was not output during demuxing. This frame is now output to encoder, thus fate
diff update.
2011-09-11 17:44:20 +02:00
Michael Niedermayer
fe0ac337bd
mpeg4videodec: Fix new slice end detection for missing slices.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-11 17:36:37 +02:00
Anton Khirnov
4bb3ae1eaa
avconv: use correct index when selecting metadata to write to.
2011-09-11 17:30:05 +02:00
Anton Khirnov
f39ecc79aa
avconv: fix inverted variable
2011-09-11 17:30:05 +02:00
Anton Khirnov
172efad7c7
doc/avconv: document option types (input/output/per-stream/...)
...
Also trim some redundant stream specifiers descriptions.
2011-09-11 17:30:05 +02:00
Anton Khirnov
99442bfe20
doc/avtools-common-opts: write a section about stream specifiers.
2011-09-11 17:30:05 +02:00
Anton Khirnov
3a37392efe
doc/avconv: remove two pointless paragraphs.
...
They are misleading and carry no useful information.
2011-09-11 17:30:04 +02:00
Anton Khirnov
eb05446367
doc/avconv: document that global options should be specified first.
2011-09-11 17:30:04 +02:00
Anton Khirnov
d3d6a2582e
doc/avconv: remove entries for nonexistent options
2011-09-11 17:30:04 +02:00
Anton Khirnov
1533c10286
doc/avconv: remove documentation for removed 'timestamp' option
2011-09-11 17:30:04 +02:00
Anton Khirnov
b3dd2010af
doc: cosmetics, rename fftools-common-opts to avtools-....
2011-09-11 17:30:04 +02:00
Anton Khirnov
495ecfd139
avconv: move streamid_map to options context.
2011-09-11 17:30:04 +02:00
Anton Khirnov
8e5ce5901b
avconv: extend -vf syntax
...
Add a per-stream -filter option, make -vf an alias for -filter:v. Move
vfilters to the options context.
2011-09-11 17:30:04 +02:00
Anton Khirnov
828e0bcb86
avconv: move top_field_first to options context.
2011-09-11 17:30:04 +02:00
Anton Khirnov
2c2cff16d9
avconv: move inter/intra matrix to options context.
2011-09-11 17:30:04 +02:00
Anton Khirnov
0bc391281a
avconv: remove -psnr option.
...
It's redundant -- -flags +psnr does the same thing.
2011-09-11 17:30:04 +02:00
Anton Khirnov
d242d80e36
avconv: remove me_threshold option.
...
It's only shadowing the AVOption with the same name.
2011-09-11 17:30:04 +02:00
Anton Khirnov
0e68c78385
avconv: move video_rc_override_string to options context.
2011-09-11 17:30:03 +02:00
Anton Khirnov
b2254d8385
avconv: move frame pixel format to the options context.
...
Also remove redundant -pix_fmt list syntax, it's inconsistent and only
makes the code more complicated. -pix_fmts should be enough for
everyone.
2011-09-11 17:30:03 +02:00
Anton Khirnov
ca46fde792
avconv: move frame aspect ratio to the options context.
2011-09-11 17:30:03 +02:00
Anton Khirnov
d4397b0323
avconv: move frame size to the options context.
2011-09-11 17:30:03 +02:00
Anton Khirnov
91ea4811b3
avconv: move frame_rate to the options context.
2011-09-11 17:30:03 +02:00
Anton Khirnov
bef737a78a
avconv: move force_fps to the options context.
2011-09-11 17:30:03 +02:00
Anton Khirnov
7c0296723c
avconv: move forced_key_frames to the options context.
2011-09-11 17:30:03 +02:00
Anton Khirnov
77d9c4542c
avconv: rewrite -qscale and -aq handling.
...
Merge video_qscale (set by -qscale) and audio_qscale (set by -aq) into
one 'qscale' field in the options context. Add a shortcut -q for -qscale
and make -aq an alias for -q:a.
2011-09-11 17:30:03 +02:00
Anton Khirnov
e2469ccf01
avconv: move audio_sample_rate to the options context.
2011-09-11 17:30:03 +02:00
Anton Khirnov
2c474ddbc5
cmdutils: add support for programs in check_stream_specifier()
...
Remove now redundant (and broken/undocumented) opt_programid.
2011-09-11 17:30:01 +02:00
Anton Khirnov
05bffc12c4
avconv: move audio_sample_fmt to options context.
...
Also document it and replace undocumented and inconsistent
'-sample_fmt list' syntax with -sample_fmts.
2011-09-11 17:29:55 +02:00
Georgi Chorbadzhiyski
f1f15c3c1a
mpegts: improve error reporting
...
When reporting continuity error show pid, expected and received cc.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-09-11 09:27:13 -04:00
Aviad Rozenhek
162f1fbc14
mpegts: on seek, reset the cc for all PIDs
...
Prevent false positive continuity counter error logs.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-09-11 09:26:21 -04:00
Edgar Hucek
3fec40b601
Fix VA-API decoding artefacts.
...
Fixes ticket #457 .
2011-09-11 12:54:47 +02:00
Michael Niedermayer
ea0ac11e52
h264: prevent an out of array read in decode_nal_units()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-11 07:23:00 +02:00
Michael Niedermayer
0c0ec4be6b
ffmpeg: dont copy duration when -t is used
...
Fixes Ticket445
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-11 05:24:26 +02:00
Michael Niedermayer
23f5cff92c
h264dec: Prevent CABAC and CAVLC bitsteram overreading
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-11 04:57:46 +02:00
Compn
28ccda7823
add libspeex encoder change
2011-09-10 22:42:11 -04:00
Art Clarke
a52cdcd296
libspeex encoder wraper
...
taken from svn head of xuggle
2011-09-11 04:07:08 +02:00
Clément Bœsch
c975cfaef2
build: fix install rule with --progs-suffix.
2011-09-11 01:48:29 +02:00
Clément Bœsch
754d7f23ee
Fix compilation with --disable-everything --enable-muxer=dv
2011-09-11 01:48:29 +02:00
Michael Niedermayer
7ba8e6bbae
ffmpeg: replace messy duplicated tag compatibility functions by more generic solution.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-11 01:23:05 +02:00
Michael Niedermayer
cec92fe49a
ffmpeg: add vbsf & absf for compatibility.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-11 01:22:58 +02:00
Michael Niedermayer
cb66db8010
mpegts: update comment to match code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-11 00:55:16 +02:00
Joakim Plate
6796b82407
libavformat/utils: Only require first packet to be known for all audio and video streams
...
It can take a long time before subtitles or data streams show up,
so we shouldn't wait for those before assuming we have all info
for streams.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-11 00:33:20 +02:00
Stefano Sabatini
2298818f96
Remove reference to the libavfilter soc SVN repo, update libavfilter status description
...
The libavfilter SOC SVN repo is badly outdated, and some filters
supports a syntax different from the current code, so it is better do
not misled users into using it and just drop its reference.
2011-09-10 23:40:52 +02:00
Joakim Plate
4a3294ef00
dvbsubdec: don't hardcode subtitle colors count in dvbsubdec to 16
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-10 23:12:29 +02:00
Joakim Plate
8fd1da5bd2
vp3dec: set key_frame field of AVFrame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-10 22:10:00 +02:00
Joakim Plate
6d40f88cab
mpegts: Some additional HDMV types and reg descriptors for mpegts
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-10 22:10:00 +02:00
Luca Barbato
d162994a81
doc: explain __STDC_CONSTANT_MACROS in C++
...
In order to build C++ programs using libav you need
-D__STDC_CONSTANT_MACROS appened to the CXXFLAGS.
2011-09-10 15:21:22 -04:00
Michael Niedermayer
7db7eb08e0
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
Fixed segfault with wavpack decoder on corrupted decorrelation terms sub-blocks.
avconv: move audio_channels to the options context.
avconv: move *_disable to options context.
avconv: remove -[vas]lang options.
avconv: move codec tags to options context.
cljr: init_get_bits size in bits instead of bytes
indeo2: fail if input buffer too small
indeo2: init_get_bits size in bits instead of bytes
ffv1: Fixed size given to init_get_bits() in decoder.
Conflicts:
avconv.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-10 20:52:48 +02:00
Carl Eugen Hoyos
60599c68b0
Fix copmilation with --disable-everything --enable-muxer=mxf.
2011-09-10 20:39:05 +02:00
Michael Niedermayer
1eb805ed70
cabac test: Change input to test, so a wider range of states is tested.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-10 20:09:48 +02:00
Michael Niedermayer
830d7d5c4f
cabac test: match encode and decode side
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-10 20:05:45 +02:00
Michael Niedermayer
89653ea728
cabac: fix cabac encoder
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-10 20:05:45 +02:00
Laurent Aimar
8bfea4ab4e
Fixed segfault with wavpack decoder on corrupted decorrelation terms sub-blocks.
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-10 18:58:57 +03:00
Laurent Aimar
824f98f442
Fixed deference of NULL pointer in motionpixels decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-10 15:38:59 +02:00
Anton Khirnov
6a11686dfc
avconv: move audio_channels to the options context.
2011-09-10 15:25:57 +02:00
Anton Khirnov
2130981af3
avconv: move *_disable to options context.
2011-09-10 13:10:02 +02:00
Anton Khirnov
35c5d7d1ef
avconv: remove -[vas]lang options.
...
They are redundant, the same can be now accomplished with -metadata.
2011-09-10 13:09:42 +02:00
Anton Khirnov
013887ebcd
avconv: move codec tags to options context.
...
Add a new -tag option, make -[vas]tag an alias for -tag:[vas]
2011-09-10 13:03:54 +02:00
chinshou
b10ba1175d
avisynth: Fix upside down bug
2011-09-10 05:24:39 +02:00
chinshou
4f123a7d7c
avisynth: Remove wrong pts calculation.
...
Fixes Ticket428
2011-09-10 05:24:26 +02:00
Michael Niedermayer
78a041a9db
mpeg4videodec: rewrite the slice end detection of non partitioned packets.
...
This no longer needs thread syncronization thus speeding frame multithreading up.
Fixes Ticket28
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-10 03:20:29 +02:00
Laurent Aimar
e5e0580b93
Fixed size given to init_get_bits().
...
init_get_bits() takes a number of bits and not a number of bytes as
its size argument.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-10 00:26:48 +02:00
Alex Converse
0c1f5b93d9
cljr: init_get_bits size in bits instead of bytes
2011-09-09 15:01:00 -07:00
Alex Converse
b7ce4f1d1c
indeo2: fail if input buffer too small
2011-09-09 15:01:00 -07:00
Alex Converse
68ca330cbd
indeo2: init_get_bits size in bits instead of bytes
2011-09-09 15:01:00 -07:00
Laurent Aimar
46b004959b
ffv1: Fixed size given to init_get_bits() in decoder.
...
init_get_bits() takes a number of bits and not a number of bytes as
its size argument.
Signed-off-by: Alex Converse <alex.converse@gmail.com >
2011-09-09 15:00:28 -07:00
Laurent Aimar
8362a0ffed
Fixed size given to init_get_bits() in ffv1 decoder.
...
init_get_bits() takes a number of bits and not a number of bytes as
its size argument.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-09 22:19:56 +02:00
Michael Niedermayer
22bf6f7054
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
wavpack: Check error codes rather than working around error conditions.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-09 22:01:31 +02:00
Michael Niedermayer
1bb766a988
ffmpeg: fix -re
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-09 19:54:04 +02:00
Mohamed Naufal
9c29ab5851
Move & Rename buildscript, remove tabs
2011-09-09 23:14:36 +05:30
Michael Niedermayer
73e0ec2ff4
rc: finetune convergence failure fix
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-09 18:50:00 +02:00
Michael Niedermayer
ed14517c23
rc: fix convergence failure
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-09 18:06:51 +02:00
Panagiotis H.M. Issaris
bcef876f16
Fix documentation for "-debug" commandline argument
...
(cherry picked from commit 180e7829428e26413916f0cbc2ad85eeb1fb877e)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-09 17:29:16 +02:00
Wolfram Gloger
6dcbbe34e8
av_interleave_packet_per_dts: switch noninterleaved flushing logic to max dts.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-09 17:19:54 +02:00
Clément Bœsch
88fddd0bcc
ffprobe: replace specific ## GNU cpp extension with __VA_ARGS__.
2011-09-09 14:40:18 +02:00
Chiranjeevi Melam
8096b7c67f
asfenc: fix assert failure on long ffserver runs
2011-09-09 03:34:27 +02:00
Gavin Kinsey
d64066f6e8
Prevent double free of side_data when AVFMT_FLAG_KEEP_SIDE_DATA flag is set
2011-09-08 23:47:23 +02:00
Clément Bœsch
5241bc2773
ffprobe: replace simple string printing with the appropriate helper.
2011-09-08 23:15:55 +02:00
Michael Niedermayer
78d7d8fe91
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
Employ FF_ARRAY_ELEMS instead of manually calculating array length.
Fixed invalid access in wavpack decoder on corrupted bitstream.
Fixed invalid writes in wavpack decoder on corrupted bitstreams.
Fixed invalid access in wavpack decoder on corrupted extra bits sub-blocks.
rtpdec_asf: Fix integer underflow that could allow remote code execution
Conflicts:
libavformat/rtpdec_asf.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-08 22:37:31 +02:00
Chris Rankin
04c13dca88
qcelpdec: fix the return value of qcelp_decode_frame().
2011-09-08 21:20:50 +02:00
Chris Rankin
54e1eaef67
mp3dec: Dont spam the user on multiple mp3 frames.
2011-09-08 21:04:26 +02:00
Yan Jing
8ba987bff3
ffmdec: set avio buffer to ffm->packet_size, avoid dirty reads
2011-09-08 20:53:44 +02:00
Michael Niedermayer
0b99e858d1
ffmdec: fix seeking for non indexed files
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-08 20:53:37 +02:00
Yan Jing
59810f8388
ffmdec: handle wrapped file in ffm_seek
2011-09-08 20:09:40 +02:00
Alex Converse
dba2b63a98
wavpack: Check error codes rather than working around error conditions.
2011-09-08 11:02:43 -07:00
Michael Niedermayer
6337de9252
doxygen: dont generate docs for avconv.c
...
This is a workaround to avoid links in the ffmpeg.c documentation randomly pointing to
different code in avconv.c
This should be removed once doxygen is fixed and we upgraded
doxygen 1.7.3 is the latests i tested and that still has this issue.
Fixed Ticket421
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-08 17:56:17 +02:00
Mohamed Naufal
fd265746fe
Fix regular build
2011-09-08 21:17:17 +05:30
Diego Biurrun
6376362d15
Employ FF_ARRAY_ELEMS instead of manually calculating array length.
2011-09-08 15:57:14 +02:00
Laurent Aimar
55354b7de2
Fixed invalid access in wavpack decoder on corrupted bitstream.
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-08 12:04:06 +03:00
Laurent Aimar
0aedab0340
Fixed invalid writes in wavpack decoder on corrupted bitstreams.
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-08 12:00:13 +03:00
Laurent Aimar
beefafda63
Fixed invalid access in wavpack decoder on corrupted extra bits sub-blocks.
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-08 11:57:13 +03:00
Carl Eugen Hoyos
f6e99bf514
Add loas as an extension for LOAS/LATM.
2011-09-08 08:24:17 +02:00
Carl Eugen Hoyos
c1fcd7e1ab
Support remuxing aac_latm.
2011-09-08 08:22:50 +02:00
James Zern
1da43f7e99
libvpxenc: add 'crf' private option
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-08 05:53:54 +02:00
James Zern
3dc14b4628
libvpxenc: add 'rc_lookahead' private option
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-08 05:53:54 +02:00
James Zern
fb99d78778
libvpxenc: silence AVOption related warnings
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-08 05:53:54 +02:00
Michael Niedermayer
0962ad0e2f
avopt: Fix searching for constants
...
Fixes Ticket350
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-08 05:34:17 +02:00
Michael Niedermayer
bd358e128f
jpeglsdec: fix infinite loop
...
Fixes Ticket331
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-08 05:34:17 +02:00
zhentan feng
42d4df06e1
WTV muxer (1_extract_wtv_common_code.patch)
2011-09-08 01:55:07 +02:00
Asad Mehmood
bcc531f04a
flvdec: Remove AVFMTCTX_NOHEADER if both flags and metadata claim 1 stream
...
If there is only 1 stream in an flv avformat_find_stream_info will continually
read until probesize is reached. This should stop it reading if the metadata
also claims there to be 1 stream.
2011-09-08 00:26:28 +02:00
Michael Niedermayer
f1b5693027
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
Add LATM muxer
v210enc: clip values according to specifications
v210enc: switch to PIX_FMT_422P10
v210dec: switch to PIX_FMT_422P10
AVOptions: remove AVOption.offset <= 0 checks
AVOptions: deprecate av_opt_set_defaults2
AVOptions: move doxy for av_opt_set_defaults() from opt.c to opt.h
libx264: fix setting some more parameters
libx264: fix setting the H.264 level
libx264: add 'direct-pred' private option
libx264: add 'partitions' private option
Conflicts:
Changelog
libavcodec/Makefile
libavcodec/libx264.c
libavcodec/v210enc.c
libavfilter/src_movie.c
libavformat/version.h
libavutil/opt.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-07 22:58:39 +02:00
Michael Niedermayer
5ea091fb5a
rtpdec_asf: Fix integer underflow that could allow remote code execution
...
Fixes MSVR-11-0088.
Credit: Jeong Wook Oh of Microsoft and Microsoft Vulnerability Research (MSVR)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-07 23:33:53 +03:00
Michael Niedermayer
a2b66a366d
rtpdec_asf: fix memleak
...
Based on a suggestion by Ronald S. Bultje
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-07 16:48:49 +02:00
Michael Niedermayer
ba9a7e0d71
rtp: Fix integer underflow that could allow remote code execution.
...
Fixes MSVR-11-0088
Credit: Jeong Wook Oh of Microsoft and Microsoft Vulnerability Research (MSVR)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-07 14:59:39 +02:00
Kieran Kunhya
0ca36b4de7
Add LATM muxer
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-09-07 12:57:55 +02:00
Baptiste Coudurier
635bbecfc3
v210enc: clip values according to specifications
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-07 12:50:11 +02:00
Baptiste Coudurier
d239b83e2e
v210enc: switch to PIX_FMT_422P10
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-07 12:16:21 +02:00
Baptiste Coudurier
08fa23d6c2
v210dec: switch to PIX_FMT_422P10
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-07 12:16:15 +02:00
Anton Khirnov
4dbcdfa86d
AVOptions: remove AVOption.offset <= 0 checks
...
They will only ever be <=0 if the option is broken, in which case this
check is hiding a bug.
2011-09-07 11:20:29 +02:00
Anton Khirnov
79eff91325
AVOptions: deprecate av_opt_set_defaults2
...
It's a hack which was created to allow for multiple options with
different defaults to refer to same field (e.g. 'b' vs 'ab'). There is
no need for it anymore.
2011-09-07 11:19:43 +02:00
Anton Khirnov
a7e2b2ccc9
AVOptions: move doxy for av_opt_set_defaults() from opt.c to opt.h
...
Also change it to be more readable.
2011-09-07 11:16:52 +02:00
Anton Khirnov
0962f23b35
libx264: fix setting some more parameters
...
Specifically, trellis, nr, me_range, me_method, subq, b_strategy,
keyint_min, chroma_me and coder.
Change their defaults to -1 and apply them after
x264_param_default_preset() if the user explicitly set them.
2011-09-07 10:36:15 +02:00
Andrej Peterka
2bb5d637fc
libx264: fix setting the H.264 level
...
Move setting it after x264_param_default_preset()
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-07 09:16:06 +02:00
Anton Khirnov
9c684feadc
libx264: add 'direct-pred' private option
...
Deprecate AVCodecContext.directpred
2011-09-07 07:27:55 +02:00
Anton Khirnov
0635a8aa21
libx264: add 'partitions' private option
...
Deprecate AVCodecContext.partitions.
2011-09-07 07:27:18 +02:00
Mark Himsley
3961695b7f
Correct docs for boxblur parameters
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-07 04:18:43 +02:00
Joseph Wecker
0078430e30
flvdec: A little bit of cleanup
2011-09-07 02:38:57 +02:00
Joseph Wecker
4ee53d7e86
flvenc: Correctly encode data stream into in-band metadata frames.
2011-09-07 02:38:15 +02:00
Joseph Wecker
4c05042978
flvdec: Properly decoding in-band metadata packets as data frames.
2011-09-07 02:38:13 +02:00
Joseph Wecker
c054f11606
flvdec: Started to remove most of the "only 1-audio+1-video" assumptions
2011-09-07 02:36:42 +02:00
Joseph Wecker
30bcd6a945
flv: Ammon's changes migrated from 0.6.0 - I believe for the android broadcaster.
2011-09-07 02:02:03 +02:00
Carl Eugen Hoyos
b5d4c0e26e
Support Speex in isom.
...
Adobe Flash Media Server produces such files although the f4v
specification does not allow Speex (nor Nellymoser).
2011-09-07 01:10:14 +02:00
Carl Eugen Hoyos
d898ab9090
Fix decoding of 2/4 bpp Tiff samples.
2011-09-07 01:10:14 +02:00
Carl Eugen Hoyos
f863cdef81
Cosmetics: Fix comment.
2011-09-07 01:10:14 +02:00
Michael Niedermayer
9243454e31
libavformat/utils: only run delta_dts_min calculation code when its value is used.
...
This should improve speed.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-07 00:23:18 +02:00
Michael Niedermayer
effbeff503
libavformat/utils: use FFMIN() where possible
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-07 00:13:09 +02:00
wg
37ed5df5c5
libavformat/utils: Treat subtitle streams as noninterleaved when 20 seconds have passed without a packet
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-07 00:10:44 +02:00
Michael Niedermayer
c0323b9c9b
avfilter: dont crash on filters with NULL instance names.
...
Found-by: Rolf Siegrist
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-06 22:23:15 +02:00
Michael Niedermayer
2fd4901921
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
libx264: add 'cplxblur' private option
libx264: add 'deblock' private option
libx264: add 'b-bias' private option
libx264: fix setting some options.
libx264: remove useless assignment
ac3dec: avoid pointless alloc and indirection for input_buffer
mpeg12: cosmetics: reformat as K&R
Conflicts:
libavcodec/libx264.c
libavcodec/mpeg12.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-06 21:35:18 +02:00
Ramiro Polla
ff5e1b0b7a
dshow: properly disconnect and remove filters from graph
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-06 21:14:51 +02:00
Ramiro Polla
5e77dc2ea7
dshow: remove some unused code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-06 21:13:06 +02:00
Ramiro Polla
0a333001a2
vfwcap: actually use framerate option
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-06 21:12:45 +02:00
Anton Khirnov
7042337673
libx264: add 'cplxblur' private option
...
Deprecate AVCodecContext.complexityblur
2011-09-06 21:03:41 +02:00
Anton Khirnov
71b5f4427b
libx264: add 'deblock' private option
...
Deprecate AVCodecContext.deblockalpha/deblockbeta
2011-09-06 21:02:45 +02:00
Anton Khirnov
f83c45183e
libx264: add 'b-bias' private option
...
Deprecate AVCodecContext.bframebias.
2011-09-06 20:14:35 +02:00
Anton Khirnov
bb73cda2f6
libx264: fix setting some options.
...
Specifically: gop_size, max_b_frames, scenechange_threshold, qmin, qmax,
max_qdiff, qblur, qcompress and refs.
Change their default values to -1 and only use them if the user
explicitly set them. Otherwise x264 defaults are used.
Move setting those options after x264_param_default_preset(), so they
don't get overwritten by it.
2011-09-06 20:13:28 +02:00
Anton Khirnov
d8dee0e7bd
libx264: remove useless assignment
...
priv_data is memset to 0.
2011-09-06 20:13:11 +02:00
Michael Niedermayer
0c9cba24b7
pngdec: implement 4bpp interlaced
...
Fixes Ticket435
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-06 19:50:01 +02:00
Michael Niedermayer
dcabb3d608
pngdec: implement 2 bpp interlaced.
...
Fixes Ticket434
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-06 19:50:01 +02:00
Stefano Sabatini
4f7dfe12ea
lavfi: rename vsink_buffer.c to sink_buffer.c, and vsink_buffer.h to buffersink.h
...
This is done in order to clarify the non-video-specific nature of the
buffersink code, as the result of the video/audio API unification of
the previous commit, and for improving overall consistency.
2011-09-06 18:51:09 +02:00
Stefano Sabatini
c4415f6ec9
lavfi: unify asink_buffer and vsink_buffer API
...
The new API is more generic (no distinction between audio/video for
pulling frames), and avoids code duplication.
A backward compatibility layer is kept for avoiding tools ABI breaks
(only for the video binary interface, audio interface was never used
in the tools).
2011-09-06 18:47:04 +02:00
Reimar Döffinger
459fe331e9
ac3dec: avoid pointless alloc and indirection for input_buffer
...
Since we now always allocate it, it can simply be made part of the context
instead.
2011-09-06 12:43:16 -04:00
Michael Niedermayer
be7eed72c8
mjpegdec; even better RSTn skiping
...
Fixes Ticket426
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-06 18:20:34 +02:00
Michael Niedermayer
bc6445f2db
pngdec: Fix interlaced PAETH prediction
...
Fixes Ticket161
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-06 16:22:38 +02:00
Michael Niedermayer
2d4102fc13
pngdec: Implement 2bpp
...
Fixes Ticket433
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-06 15:48:01 +02:00
Michael Niedermayer
dc43ad6d1a
pngdec: Fix interlaced 1bpp
...
Fixes Ticket214
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-06 15:28:36 +02:00
Michael Niedermayer
738219c921
pngdec: 4bpp support
...
Fixes Ticket208
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-06 14:11:04 +02:00
Diego Biurrun
6192b6f3e7
mpeg12: cosmetics: reformat as K&R
2011-09-06 11:46:57 +02:00
Michael Niedermayer
6dbac85f8d
mpeg4: fix another packed divx issue.
...
Fixes getting_stuck.avi
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-06 04:09:43 +02:00
Michael Niedermayer
d543b3bb52
ffmpeg: map subtitle stream by default when user specified -scodec
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-06 00:49:23 +02:00
Michael Niedermayer
845383c358
vf_drawtext: always use expanded_text as we always support strftime() now and dont depend on localtime_r() anymore
...
Found-by: Rolf Siegrist
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-05 23:13:59 +02:00
Michael Niedermayer
3c54e7ed4f
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
ac3enc: Add channel coupling support for the fixed-point AC-3 encoder.
ac3enc: scale floating-point coupling channel coefficients in scale_coefficients() rather than in apply_channel_coupling()
ac3enc: fix encoding of stereo ac3 files when rematrixing is disabled.
wavpack: fix wrong return value in wavpack_decode_block()
avconv: fix parsing metadata specifiers.
fate: use +frame+slice named constants instead of '3'
mpeg12: propagate more real return values through chunk decode error return and fix some indentation
wavpack: use context reset in appropriate places
avconv: move mux_preload and mux_max_delay to options context
avconv: move bitstream filters to options context.
avconv: move rate_emu to options context.
avconv: move max_frames to options context.
avconv: move metadata to options context.
avconv: move ts scale to options context.
avconv: move chapter maps to options context.
avconv: move metadata maps to options context.
avconv: move codec_names to options context.
Conflicts:
avconv.c
tests/fate-run.sh
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-05 22:29:16 +02:00
Michael Niedermayer
27bf599350
swscale: Fix unused asm and enable it
...
Author of the fix is ronald, the enabling & commit message are mine.
This fixes
commit 4e3e333a79
Author: Ronald S. Bultje <rsbultje@gmail.com >
Date: Tue Jul 5 12:49:11 2011 -0700
swscale: error dithering for 16/9/10-bit to 8-bit.
Based on a somewhat similar idea in FFmpeg's swscale copy.
The Fix was originally commited in: (and i missed it due to the commit message)
commit 5c391a161a
Author: Ronald S. Bultje <rsbultje@gmail.com >
Date: Fri Jul 8 14:39:04 2011 -0700
swscale: rename uv_off/uv_off2 to uv_off_px/byte.
2011-09-05 18:42:44 +02:00
Justin Ruggles
ae264bb29b
ac3enc: Add channel coupling support for the fixed-point AC-3 encoder.
...
Update FATE references accordingly.
2011-09-05 10:09:44 -04:00
Justin Ruggles
a0d17b6d45
ac3enc: scale floating-point coupling channel coefficients in
...
scale_coefficients() rather than in apply_channel_coupling()
2011-09-05 10:07:43 -04:00
Justin Ruggles
3e5722a8ca
ac3enc: fix encoding of stereo ac3 files when rematrixing is disabled.
...
The number of rematrixing bands still needs to be calculated.
2011-09-05 09:24:59 -04:00
Kostya Shishkov
bcd4aa8bec
wavpack: fix wrong return value in wavpack_decode_block()
...
This function should return number of samples decoded, not number of bytes
decoded.
Spotted by Uoti Urpala.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-09-05 12:44:26 +02:00
Anton Khirnov
a2a38d9665
avconv: fix parsing metadata specifiers.
...
After 039267f192 , metadata specifiers are
passed without the leading ':'. Remove a ++ that didn't take this into
account.
2011-09-05 12:11:10 +02:00
Anton Khirnov
bc5acfa7af
fate: use +frame+slice named constants instead of '3'
2011-09-05 12:11:08 +02:00
Dustin Brody
ff17fc6353
mpeg12: propagate more real return values through chunk decode error return and fix some indentation
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-05 11:19:14 +02:00
Kostya Shishkov
9bc4e21a9b
wavpack: use context reset in appropriate places
...
This fixes improper flushing in the cases when the same frame is decoded in
several iterations (for being too large to fit into output buffer) and flush is
called mid-decoding and it also resets context in case of decoding errors.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-05 11:18:27 +02:00
Anton Khirnov
dc26318c2d
avconv: move mux_preload and mux_max_delay to options context
2011-09-05 11:18:15 +02:00
Anton Khirnov
d821cbe2ff
avconv: move bitstream filters to options context.
...
Change syntax -- -[vas]bsf are replaced by -bsf:[stream specifier], the
argument is now a comma-separated list of bitstream filters.
2011-09-05 11:17:31 +02:00
Anton Khirnov
f480532822
avconv: move rate_emu to options context.
...
Make it work properly with multiple input files.
2011-09-05 11:17:07 +02:00
Anton Khirnov
96139b5e32
avconv: move max_frames to options context.
...
Add a -frames option that uses generic stream specifiers, change
-[vad]frames into aliases to it.
2011-09-05 11:16:46 +02:00
Anton Khirnov
039267f192
avconv: move metadata to options context.
...
It is now possible to set metadata on streams and chapters.
2011-09-05 11:16:02 +02:00
Anton Khirnov
33f75d72e6
avconv: move ts scale to options context.
2011-09-05 11:15:40 +02:00
Anton Khirnov
c5bb372e85
avconv: move chapter maps to options context.
2011-09-05 11:15:28 +02:00
Anton Khirnov
847529f84a
avconv: move metadata maps to options context.
2011-09-05 11:15:17 +02:00
Anton Khirnov
35e6f8c174
avconv: move codec_names to options context.
2011-09-05 11:13:36 +02:00
Michael Niedermayer
038a465efc
vf_drawtext: make strftime work without localtime_r()
...
modern OS should have localtime_r() or return thread locals on localtime() hopefully
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-05 05:16:44 +02:00
Michael Niedermayer
6f8b1fcd4b
ffmpeg: tell reset_options() if it is used on input or output files.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-05 03:11:18 +02:00
Michael Niedermayer
d2084402e6
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavc: fix type for thread_type option
avconv: move format to options context
avconv: move limit_filesize to options context
avconv: move start_time, recording_time and input_ts_offset to options context
avconv: add a context for options.
cmdutils: allow storing per-stream/chapter/.... options in a generic way
cmdutils: split per-option code out of parse_options().
cmdutils: add support for caller-provided option context.
cmdutils: declare only one pointer type in OptionDef
cmdutils: move grow_array() from avconv to cmdutils.
cmdutils: move exit_program() declaration to cmdutils from avconv
http: Consider the stream as seekable if the reply contains Accept-Ranges: bytes
nutenc: add namespace to the api facing functions
Conflicts:
avconv.c
cmdutils.c
cmdutils.h
ffmpeg.c
ffplay.c
ffprobe.c
ffserver.c
libavformat/http.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-05 03:10:45 +02:00
Michael Niedermayer
b881a2e254
vf_drawtext: Fix reinit to allow color changes.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-04 20:58:13 +02:00
Reimar Döffinger
09c5f990bc
Check extradata size on resolution change.
...
Ignore resolution change if resolution not defined in extradata.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-09-04 16:09:40 +02:00
Anton Khirnov
fb47997edb
lavc: fix type for thread_type option
...
It should be flags, not int.
2011-09-04 13:15:36 +02:00
Anton Khirnov
7041bb3b1a
avconv: move format to options context
2011-09-04 13:12:00 +02:00
Anton Khirnov
13ccba50d4
avconv: move limit_filesize to options context
2011-09-04 13:12:00 +02:00
Anton Khirnov
6b779cccaa
avconv: move start_time, recording_time and input_ts_offset to options context
2011-09-04 13:12:00 +02:00
Anton Khirnov
575ec4e17d
avconv: add a context for options.
...
Move stream maps to it.
Eventually all non-global options should be stored in it.
2011-09-04 13:12:00 +02:00
Anton Khirnov
6361c5e1e6
cmdutils: allow storing per-stream/chapter/.... options in a generic way
2011-09-04 13:12:00 +02:00
Anton Khirnov
2f8e586df1
cmdutils: split per-option code out of parse_options().
...
This allows options like -target, which are just shortcuts for other
options, to work without dummy function for all options they invoke.
2011-09-04 13:12:00 +02:00
Anton Khirnov
7cc8d6385a
cmdutils: add support for caller-provided option context.
...
This is the first step to removing the globals plague from avtools.
2011-09-04 13:12:00 +02:00
Anton Khirnov
7efe05ab29
cmdutils: declare only one pointer type in OptionDef
...
This will be useful in the following commit.
2011-09-04 13:12:00 +02:00
Anton Khirnov
cac651c834
cmdutils: move grow_array() from avconv to cmdutils.
2011-09-04 13:12:00 +02:00
Anton Khirnov
dad09ff93f
cmdutils: move exit_program() declaration to cmdutils from avconv
...
Allows cmdutils to call each tool's own cleanup function.
2011-09-04 13:12:00 +02:00
Stefan Fritsch
346ea9e222
http: Consider the stream as seekable if the reply contains Accept-Ranges: bytes
...
The initial request contains "Range: 0-", which servers normally
have responded with "HTTP/1.1 206 Partial Content" reply with
a Content-Range header, which was used as indicator for seekability.
Apache, since 2.2.20, responds with "HTTP/1.1 200 OK" for these
requests, which is more friendly to caches and proxies, but the
seekability still is indicated via the Accept-Ranges: bytes header.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-04 11:28:53 +02:00
Luca Barbato
5ee5dc4e9a
nutenc: add namespace to the api facing functions
...
Rename write_{header,packet,trailer} to nut_write_{header,packet,trailer}
in order to make easier debugging them.
2011-09-04 11:09:06 +02:00
Clément Bœsch
61e2e29691
av_string: add av_asprintf().
2011-09-04 09:37:41 +02:00
Michael Niedermayer
1889c6724a
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
AVOptions: fix av_set_string3() doxy to match reality.
cmdutils: get rid of dummy contexts for examining AVOptions.
lavf,lavc,sws: add {avcodec,avformat,sws}_get_class() functions.
AVOptions: add AV_OPT_SEARCH_FAKE_OBJ flag for av_opt_find().
cpu detection: avoid a signed overflow
Conflicts:
avconv.c
cmdutils.c
doc/APIchanges
ffmpeg.c
libavcodec/options.c
libavcodec/version.h
libavformat/version.h
libavutil/avutil.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-04 04:11:53 +02:00
Michael Niedermayer
ca4d71b149
ffmpeg: fix reading from stdin on windows
...
Based on code by Rolf Siegrist
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-04 02:14:39 +02:00
Stefan Fritsch
31dfc49598
http: Fix decetion of range support in HTTP servers
...
currently libavformat only allows seeking if a request with "Range:
0-" results in a 206 reply from the HTTP server which includes a
Content-Range header. But according to RFC 2616, the server may also
reply with a normal 200 reply (which is more efficient for a request
for the whole file). In fact Apache HTTPD 2.2.20 has changed the
behaviour in this way and it looks like this change will be kept in
future versions. The fix for libavformat is easy: Also look at the
Accept-Ranges header.
2011-09-03 22:29:07 +02:00
Anton Khirnov
e955a682e1
AVOptions: fix av_set_string3() doxy to match reality.
...
Fixes bug 28.
2011-09-03 21:00:52 +02:00
Anton Khirnov
20c21f8b75
cmdutils: get rid of dummy contexts for examining AVOptions.
...
Replace it with newly introduced libavutil API.
2011-09-03 20:58:15 +02:00
Anton Khirnov
fb4ca26bdb
lavf,lavc,sws: add {avcodec,avformat,sws}_get_class() functions.
2011-09-03 20:53:35 +02:00
Anton Khirnov
c11fb8288d
AVOptions: add AV_OPT_SEARCH_FAKE_OBJ flag for av_opt_find().
...
It allows to search for options only with AVClass, without allocating
the corresponding context.
2011-09-03 20:52:21 +02:00
Sean McGovern
5938e02185
cpu detection: avoid a signed overflow
...
1<<31 overflows because 1 is signed, so force it to unsigned.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-09-03 08:31:50 -07:00
Michael Niedermayer
23a287e9cc
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
codec-regression: force vsync 0 on the me_threshold test to make sure frames match.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-03 04:51:07 +02:00
Michael Niedermayer
3d15853839
cmdutils: revert avconv rename of pathes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-03 00:50:08 +02:00
Michael Niedermayer
6233a3a153
Revert "ffmpeg: remove presets." and reimplement the needed parts that no longer exist.
...
Needed by libvpx
This reverts commit a0147957e7 .
2011-09-03 00:50:00 +02:00
Alexander Strasser
a49363132d
doc: issue tracking: explain the term issue
...
Transforms the loose enumeration of issues that was to far below
in the text into a more verbose paragraph at the top. The new text
also mentions the possibility to propose new types of issues to
track on the development mailing list.
Signed-off-by: Alexander Strasser <eclipse7@gmx.net >
2011-09-02 23:08:03 +02:00
Alexander Strasser
a81319d5f3
doc: issue tracking: add more vertical whitespace
...
This change makes the first part of the file easier to read quickly.
It makes it also easier to spot the URLs which might be one of the main
interests of many readers.
Signed-off-by: Alexander Strasser <eclipse7@gmx.net >
2011-09-02 23:08:02 +02:00
Alexander Strasser
0bd96bcc79
doc: issue tracking: fix grammar/spelling
...
Correct a few grammar and spelling errors. Also improve consistency
by always referring to substatus (not substate).
Signed-off-by: Alexander Strasser <eclipse7@gmx.net >
2011-09-02 23:08:02 +02:00
Tomas Härdin
9289eada91
Parse MXF partitions
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-02 20:40:54 +02:00
Michael Niedermayer
3e7e1f1509
mpeg4: adjust dummy frame threashold for packed divx.
...
Fixes Ticket427
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-02 18:04:28 +02:00
Michael Niedermayer
6fc1299cca
openal-dec: fix missing list_devices unit for list_devices AVOption
...
Found-by: Ramiro
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-02 05:28:31 +02:00
Michael Niedermayer
63d2cfd142
dvdec: Fix dvsd profile[1] detection.
...
Fixes Ticket159
If someone knows of a cleaner way to detect this, patch is welcome.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-02 05:21:25 +02:00
Alex Converse
757b86cd9e
codec-regression: force vsync 0 on the me_threshold test to make sure frames match.
2011-09-01 16:35:38 -07:00
Michael Niedermayer
fea20d1ddc
Revert "mjpeg: treat external huffman table setup failure as codec init failure if external huffman table use requested"
...
This broke mplayer
This reverts commit a18e04bcf9 .
2011-09-02 01:18:22 +02:00
Chiranjeevi Melam
e6ea4c715d
ffmpeg: Fix minor memleak of input_tmp
2011-09-02 01:09:39 +02:00
Michael Niedermayer
94c2478d90
jpegdec: better rst skiping
...
Fixes Ticket426
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-02 01:09:39 +02:00
Reimar Döffinger
746f1f14de
Remove unused variables.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-09-01 22:55:51 +02:00
Reimar Döffinger
d07950f774
Autodetect PowerPC vs. PowerPC64.
...
This is the same code as for x86_64.
This is necessary because uname returns PPC64 if the hardware
is 64 bit, however the userland can still be fully 32 bit.
In that case FFmpeg fails to compile because some macros in the
asm code are set up incorrectly.
For details see https://bugs.gentoo.org/show_bug.cgi?id=341235
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-09-01 22:55:51 +02:00
Reimar Döffinger
177aec1257
Do not free BITMAPINFOHEADER before we are done using it.
...
Fixes trac ticket #396 .
Completely untested.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-09-01 22:54:35 +02:00
Reimar Döffinger
5e2ea138b7
MJPEG: emulate EOI also on two consecutive SOI.
...
Fixes issue #362 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-09-01 22:54:35 +02:00
Reimar Döffinger
55a1fe7a80
Reset cur_scan at more appropriate places.
...
Reset it when we actually process an EOI, not when we actually
decide to ignore it for bug-workarounds, and reset it on
SOF to make it more reliable in case of missing EOI.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-09-01 22:54:35 +02:00
Clément Bœsch
d5d7de7671
ffprobe: directly use va args in print fmt callbacks.
2011-09-01 22:15:06 +02:00
Michael Niedermayer
58677d73ed
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avconv: fix some bugs introduced in 630902a1e1
libmp3lame: fix typo
AVOptions: drop av_ prefix from static av_get_number().
libx264: use X264_THREADS_AUTO constant instead of 0.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-01 22:08:44 +02:00
Clément Bœsch
acc3c380cb
resample: fix typo (ouput → output).
2011-09-01 20:25:32 +02:00
Clément Bœsch
f738388bba
Makefile: remove unused PROGS_G.
2011-09-01 20:23:40 +02:00
Clément Bœsch
33d9077001
build: introduce --progs-suffix option.
2011-09-01 20:23:40 +02:00
Clément Bœsch
3dd2c8bbbc
wav: init st to NULL to avoid a false-positive warning.
...
If st is NULL, it means no 'fmt ' tag is found, but 'data' tag (which
needs a previous 'fmt ' tag to be parsed correctly and st initialized)
check will make sure st is never dereferenced in that case.
2011-09-01 20:23:40 +02:00
Clément Bœsch
0baf651bc1
cmdutils: fix uninitialized variable (type) warning.
2011-09-01 20:23:40 +02:00
Clément Bœsch
7c14c24250
sws: fix a huge amount of incompatible pointer type arguments warnings.
2011-09-01 20:23:40 +02:00
Clément Bœsch
df8737eb35
ffmpeg: fix two unused variables warnings.
2011-09-01 20:23:40 +02:00
Clément Bœsch
b85e9d3104
resample: fix set but unused variable (lfe) warning.
2011-09-01 20:23:40 +02:00
Clément Bœsch
f067d8a618
imgconvert: avoid mixed declarations and code.
2011-09-01 20:23:40 +02:00
Carl Eugen Hoyos
c0e8bce349
Fix compilation with --disable-avfilter.
...
Fixes ticket #425 .
2011-09-01 19:03:39 +02:00
Gavin Kinsey
2f870e262e
jpegdec: set color_range
2011-09-01 16:18:22 +02:00
Michael Niedermayer
6248694861
avconv: fix some bugs introduced in 630902a1e1
...
These caused scrambled error messages to be printed and
floating point exceptions.
For example when there was no decoder available for a
stream.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-09-01 11:04:13 +02:00
Anton Khirnov
9bc9188e58
libmp3lame: fix typo
...
FF_API_LAME_GLOBAL_OPTIONS => FF_API_LAME_GLOBAL_OPTS
Thanks to Clément Bœsch for spotting.
2011-09-01 10:37:19 +02:00
Anton Khirnov
bea5670a4f
AVOptions: drop av_ prefix from static av_get_number().
2011-09-01 10:37:04 +02:00
Anton Khirnov
1440037411
libx264: use X264_THREADS_AUTO constant instead of 0.
2011-09-01 10:12:30 +02:00
Michael Niedermayer
3584b01e4e
ffmpeg: Fix typos introduced in:
...
commit 630902a1e1
Author: Anton Khirnov <anton@khirnov.net >
Date: Wed Jul 6 08:49:07 2011 +0200
avconv: factor out initializing input streams.
These caused scrambled error messages to be printed and
floating point exceptions.
For example when there was no decoder available for a
stream
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-01 04:17:23 +02:00
Michael Niedermayer
a538e0f9a0
vc1: loose one line difference to qatar.
...
This should make no functional difference.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-01 02:38:56 +02:00
Michael Niedermayer
f5bda9fcbb
mpeg4: fix typo in mpeg4_encode_gop_header()
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-01 02:22:36 +02:00
Diego Biurrun
aebb56e184
Replace some commented-out debug printf() / av_log() messages with av_dlog().
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-01 01:31:03 +02:00
Michael Niedermayer
8c6fde8c17
APIchanges: remove "deprecate url_feof"
...
url_feof() is usefull when a file is appended to
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-01 01:18:56 +02:00
Michael Niedermayer
0ed7bc49a3
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (31 commits)
libx264: set default thread count to 0 (auto)
lavc: cosmetics, group deprecated codec flags
mpeg12: add 'scan_offset' private option.
h263/p encoder: add 'structured_slices' private option.
h263/p encoder: add 'obmc' private option.
h263p encoder: add 'aiv' private option.
h263p encoder: add 'umv' private option.
mpeg12enc/mpeg4videoenc: add 'alternate_scan' private option.
mjpegdec: add 'extern_huff' private option.
mpeg4enc: add 'data_partitioning' private option.
snow: add 'memc_only' private option.
libx264: add 'mbtree' private option.
libx264: add 'psy' private option.
libmp3lame: add 'reservoir' private option.
mpeg2enc: add 'non_linear_quant' private option
mpeg12enc: add drop_frame_timecode private option.
mpeg12enc: add intra_vlc private option.
VC1: Support dynamic dimension changes
mjpeg: treat external huffman table setup failure as codec init failure if external huffman table use requested
lavc: deprecate CODEC_FLAG2_BRDO
...
Conflicts:
avconv.c
libavcodec/libmp3lame.c
libavcodec/libx264.c
libavcodec/mjpegdec.c
libavcodec/mpeg12enc.c
libavcodec/mpegvideo.h
libavcodec/vc1.c
libavcodec/vc1dec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-09-01 00:01:21 +02:00
Anton Khirnov
5d06f15235
libx264: set default thread count to 0 (auto)
2011-08-31 17:39:13 +02:00
Stefano Sabatini
a9c69362ea
vsink_buffer: fix void pointer dereference in av_vsink_buffer_get_video_buffer_ref()
2011-08-31 16:27:33 +02:00
Stefano Sabatini
6da590d0a5
lavdev/lavfi: add debug traces in lavfi_read_packet()
2011-08-31 16:27:27 +02:00
Stefano Sabatini
22ee131e85
vf_yadif: add support to yuva420p
2011-08-31 16:11:26 +02:00
Anton Khirnov
f013cb8118
lavc: cosmetics, group deprecated codec flags
2011-08-31 13:28:54 +02:00
Anton Khirnov
aed7900704
mpeg12: add 'scan_offset' private option.
...
Deprecate CODEC_FLAG_SVCD_SCAN_OFFSET
2011-08-31 13:28:41 +02:00
Anton Khirnov
4bcee8e7f8
h263/p encoder: add 'structured_slices' private option.
...
Deprecate CODEC_FLAG_H263P_SLICE_STRUCT
2011-08-31 13:28:26 +02:00
Anton Khirnov
0d904de89d
h263/p encoder: add 'obmc' private option.
...
Deprecate CODEC_FLAG_OBMC
2011-08-31 13:28:11 +02:00
Anton Khirnov
e3922d1110
h263p encoder: add 'aiv' private option.
...
Deprecate CODEC_FLAG_H263P_AIV
2011-08-31 13:27:59 +02:00
Anton Khirnov
9bb2d1a3f0
h263p encoder: add 'umv' private option.
...
Deprecate CODEC_FLAG_H263P_UMV
2011-08-31 13:27:36 +02:00
Anton Khirnov
0e5d37309f
mpeg12enc/mpeg4videoenc: add 'alternate_scan' private option.
...
Deprecate CODEC_FLAG_ALT_SCAN
2011-08-31 13:26:26 +02:00
Anton Khirnov
1f0c7020a1
mjpegdec: add 'extern_huff' private option.
...
Deprecate CODEC_FLAG_EXTERN_HUFF
2011-08-31 13:25:54 +02:00
Anton Khirnov
4623420d84
mpeg4enc: add 'data_partitioning' private option.
...
Deprecate CODEC_FLAG_PART
2011-08-31 13:25:18 +02:00
Anton Khirnov
0cc06b9e23
snow: add 'memc_only' private option.
...
Deprecate CODEC_FLAG2_MEMC_ONLY
2011-08-31 13:24:16 +02:00
Anton Khirnov
0dc5e12f1e
libx264: add 'mbtree' private option.
...
Deprecate CODEC_FLAG2_MBTREE
2011-08-31 13:24:02 +02:00
Anton Khirnov
38934f19fe
libx264: add 'psy' private option.
...
Deprecate CODEC_FLAG2_PSY
2011-08-31 13:23:37 +02:00
Anton Khirnov
a7cec3a094
libmp3lame: add 'reservoir' private option.
...
Deprecate CODEC_FLAG2_BIT_RESERVOIR
2011-08-31 13:22:53 +02:00
Anton Khirnov
88262ca87d
mpeg2enc: add 'non_linear_quant' private option
...
Deprecate CODEC_FLAG2_NON_LINEAR_QUANT
2011-08-31 13:21:59 +02:00
Anton Khirnov
2c5e1efc09
mpeg12enc: add drop_frame_timecode private option.
...
Deprecate CODEC_FLAG2_DROP_FRAME_TIMECODE
2011-08-31 13:21:05 +02:00
Anton Khirnov
297d9cb3dc
mpeg12enc: add intra_vlc private option.
...
Deprecate CODEC_FLAG2_INTRA_VLC.
2011-08-31 13:19:14 +02:00
Alberto Delmás
d2f119a1f2
VC1: Support dynamic dimension changes
...
Fixes SA00072, SA00073, SA10150, SA10151, Issue2076
Improves SA10153
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-31 13:11:23 +02:00
Dustin Brody
a18e04bcf9
mjpeg: treat external huffman table setup failure as codec init failure if external huffman table use requested
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-31 10:28:29 +02:00
Anton Khirnov
7485e54708
lavc: deprecate CODEC_FLAG2_BRDO
...
It's been unused for the last 3 years.
2011-08-31 10:26:21 +02:00
Anton Khirnov
cf90c5d0e0
libx264: add 'aud' private option.
...
Deprecate CODEC_FLAG2_AUD.
2011-08-31 10:26:11 +02:00
Anton Khirnov
3b82aeeec0
libx264: add 'fast-pskip' private option.
...
Deprecate CODEC_FLAG2_FASTPSKIP.
2011-08-31 10:25:54 +02:00
Anton Khirnov
373257fa79
libx264: add '8x8dct' private option.
...
Deprecate CODEC_FLAG2_8X8DCT.
2011-08-31 10:25:34 +02:00
Anton Khirnov
eab21c32e3
libx264: add 'mixed-refs' private option.
...
Deprecate CODEC_FLAG2_MIXED_REFS.
2011-08-31 10:25:06 +02:00
Anton Khirnov
0f29699db7
libx264: add 'weightb' private option.
...
Deprecate CODEC_FLAG2_BPYRAMID.
2011-08-31 10:24:56 +02:00
Anton Khirnov
34dda1251d
libx264: add 'b-pyramid' private option.
...
Deprecate CODEC_FLAG2_BPYRAMID.
2011-08-31 10:24:17 +02:00
Anton Khirnov
5d4a1048ee
libx264: add 'intra-refresh' private option.
...
Deprecate CODEC_FLAG2_INTRA_REFRESH.
2011-08-31 10:23:26 +02:00
Anton Khirnov
faaecd4708
libx264: add 'ssim' private option.
...
Deprecate CODEC_FLAG2_SSIM.
2011-08-31 10:23:03 +02:00
Anton Khirnov
3b81636f33
libx264: make options compatible with x264
...
Replace '_' with '-', merge psy-trellis into psy-rd and rename cqp->qp
Also fix typo pdy-rd -> psy-rd
2011-08-31 10:21:36 +02:00
Luca Barbato
dde372934a
avcodec: remove misleading comment
...
coded_width is the width before lowres scaling,
coded_height is the height before lowres scaling.
2011-08-31 09:57:46 +02:00
Michael Niedermayer
66ce282df5
h264: clean all non null elements of delayed_pic[]
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-31 05:04:14 +02:00
Michael Niedermayer
b955ab2f49
h264: change MAX_DELAYED_PIC_COUNT check to av_assert0
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-31 05:00:39 +02:00
Mohamed Naufal
84f26f5288
Support (H/W accelerated) H.264 decoding on Android via Stagefright
2011-08-31 05:12:54 +05:30
Mohamed Naufal
6a6cabf2a2
Add build-script for Android
2011-08-31 04:56:12 +05:30
Mohamed Naufal
006d2ab484
C++ Support ;)
2011-08-31 04:54:50 +05:30
Michael Niedermayer
76ba894eab
Merge commit 'f593628e5868e52a46de666767896c6afcebdae4'
...
* commit 'f593628e5868e52a46de666767896c6afcebdae4':
avconv: Replace raw picture frame swapping hack.
RV40: reuse some H.264 motion compensation functions in RV40.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-31 00:12:05 +02:00
Carl Eugen Hoyos
a9424d27c4
Support speex in avi.
2011-08-30 23:45:39 +02:00
Michael Niedermayer
595cfdef97
vf_drawtext: add basetime argument to allow specifying the wall clock time of PTS=0
...
the basetime argument also enables useage of pts instead of time()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-30 23:37:49 +02:00
Michael Niedermayer
cc2b4e889d
libavfilter/graphparser: Avoid spaces in filter instance names.
...
This makes it easier to refer to filters where things are seperated by spaces.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-30 22:02:38 +02:00
Michael Niedermayer
7c3f4fb42d
ffmpeg: ffmpeg: fix reading commands from the keyboard
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-30 21:56:40 +02:00
Anton Khirnov
2e2594ca5b
avconv: remove -threads option.
...
It's only shadowing the AVOption with the same name.
2011-08-30 20:51:32 +02:00
Michael Niedermayer
e312543c82
ffmpeg: fix reading commands from stdin
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-30 20:27:11 +02:00
Michael Niedermayer
3016c7f543
vf_drawtext: fix segfault on reinit
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-30 20:25:58 +02:00
Alex Converse
f593628e58
avconv: Replace raw picture frame swapping hack.
2011-08-30 10:12:22 -07:00
Michael Niedermayer
e01770ba01
fate: Switch default tool to test from avconv to ffmpeg
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-30 18:16:03 +02:00
Anton Khirnov
4bb2a74ffc
ffmpeg: re-add nb_streams to InputFile.
...
It was mistakenly removed in 2cf8355f98 ,
not taking into account that new streams might appear in av_read_frame()
that avconv doesn't know about.
Fixes bug 24.
2011-08-30 18:10:10 +02:00
Alex Converse
ff037c54b4
ffmpeg: Replace goto redo on decode fail with continue.
...
This checks for sigterm but otherwise is identical to the previous
behavior.
2011-08-30 18:10:10 +02:00
Alex Converse
cf89e55ac0
ffmpeg: Remove dead store.
2011-08-30 18:10:10 +02:00
Alex Converse
08fe874fa4
ffmpeg: use av_clip_int16 for audio clipping
2011-08-30 18:10:09 +02:00
Michael Niedermayer
ef24426599
ffmpeg: switch stream mapping print code to qatars variant
...
Author of the lines of code is probably Nicolas and or Anton
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-30 18:08:35 +02:00
Anton Khirnov
10c3b03380
ffmpeg: move the avcodec_find_decoder() call to add_input_streams().
...
This makes the code simpler to understand, though it results in an
unnecessary call to avcodec_find_decoder() if the stream won't be
decoded.
2011-08-30 18:08:23 +02:00
Alex Converse
93ed69ad21
ffmpeg: Separate initialization from the main transcode loop.
2011-08-30 18:08:23 +02:00
Anton Khirnov
e5362cecfb
ffmpeg: reset input_ts_offset between files.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-30 18:08:23 +02:00
Anton Khirnov
3806494549
ffmpeg: call flush_encoders() from transcode() directly.
...
And remove now pointless parameter.
Signed-off-by: Alex Converse <alex.converse@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-30 18:08:23 +02:00
Anton Khirnov
d73e8cab02
ffmpeg: fix broken indentation.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-30 18:08:23 +02:00
Anton Khirnov
877ba7b4bd
ffmpeg: rescue poor abused limit_filesize global.
...
Keep a per-OutputFile instance of it, thus making -fs work with multiple
output files.
Signed-off-by: Alex Converse <alex.converse@gmail.com >
2011-08-30 18:08:23 +02:00
Alex Converse
cb13438543
ffmpeg: Set error code before before jumping to fail.
2011-08-30 18:08:23 +02:00
Alex Converse
6e6ccf0d56
ffmpeg: Fix spelling errors.
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-08-30 18:08:23 +02:00
Anton Khirnov
47a3439ee7
ffmpeg: save two levels of indentation in flush_encoders()
...
By replacing
if (foo)
<do stuff>
with
if (!foo)
continue;
<do stuff>
2011-08-30 18:08:22 +02:00
Anton Khirnov
a16f1afb11
ffmpeg: factor flushing encoders out of output_packet().
2011-08-30 18:08:22 +02:00
Anton Khirnov
94adca68f8
ffmpeg: factor out initializing input streams.
2011-08-30 18:08:22 +02:00
Anton Khirnov
8b85b9fa42
ffmpeg: reset streamid_map between output files.
2011-08-30 18:08:22 +02:00
Anton Khirnov
6bdd9fbc89
ffmpeg: make timer_start a local var in transcode().
2011-08-30 18:08:22 +02:00
Anton Khirnov
3a7b4ccd1c
ffmpeg: cosmetics, move OutputStream.
...
Allows us to get rid of forward InputStream declaration.
2011-08-30 18:08:22 +02:00
Anton Khirnov
8f9c77e765
ffmpeg: remove two unused macros.
2011-08-30 18:08:22 +02:00
Anton Khirnov
e0aee84084
ffmpeg: reindent.
2011-08-30 18:08:22 +02:00
Anton Khirnov
d4d5a95055
ffmpeg: rescue poor abused start_time global.
...
Keep a per-OutputFile instance of it, thus making -ss work with multiple
output files.
2011-08-30 18:08:22 +02:00
Anton Khirnov
08890d355e
ffmpeg: : rescue poor abused recording_time global.
...
Keep a per-OutputFile instance of it, thus making -t work with multiple
output files.
2011-08-30 18:08:22 +02:00
Anton Khirnov
5c2a4d3bb1
ffmpeg: fix broken indentation.
2011-08-30 18:08:22 +02:00
Anton Khirnov
dd0724288e
ffmpeg: get rid of the arbitrary MAX_FILES limit.
2011-08-30 18:08:22 +02:00
Anton Khirnov
76e4873319
ffmpeg: get rid of the output_streams_for_file vs. ost_table schizophrenia
...
Instead store output streams in the same way as input streams.
2011-08-30 18:08:22 +02:00
Michael Niedermayer
b091de2285
Revert "Fix stream mapping regression"
...
Subsequent cherry picks are based on code prior to this, thus this needs to be rebased
on HEAD by a volunteer.
This reverts commit b25d931a82 .
2011-08-30 18:06:37 +02:00
Anton Khirnov
61b933f554
ffmpeg: add a wrapper for output AVFormatContexts and merge output_opts into it
2011-08-30 17:58:00 +02:00
Anton Khirnov
0ea58d7115
ffmpeg: make itsscale syntax consistent with other options.
...
Move the stream specifier to the option name.
2011-08-30 17:58:00 +02:00
Anton Khirnov
81e4655566
ffmpeg: factor out adding input streams.
2011-08-30 17:58:00 +02:00
Alex Converse
a6d0340ca1
ffmpeg: Factorize combining auto vsync with format.
2011-08-30 17:57:59 +02:00
Alex Converse
ebf94f439e
ffmpeg: Factorize video resampling.
2011-08-30 17:57:59 +02:00
Alex Converse
dadbebbbbc
ffmpeg: Don't unnecessarily convert ipts to a double.
2011-08-30 17:57:59 +02:00
Anton Khirnov
7357f6e678
ffmpeg: don't segfault on 0 input files.
2011-08-30 17:57:59 +02:00
Anton Khirnov
6e675b504a
ffmpeg: remove pointless parameter from new_*_stream().
...
New streams are always added to the last output file.
2011-08-30 17:57:59 +02:00
Anton Khirnov
868013aa01
ffmpeg: cosmetics, move code
...
Move find_codec_or_die(), choose_codec(), new_output_stream() and
read_avserver_streams() below transcode() where they belong.
2011-08-30 17:57:59 +02:00
Anton Khirnov
6f610fa144
ffmpeg: cosmetics -- move copy_chapters().
...
It's only used in opt_output_file(), so move it right above
opt_output_file().
2011-08-30 17:57:59 +02:00
Anton Khirnov
c692eda3e7
ffmpeg: cosmetics -- move parse_forced_key_frames().
...
parse_forced_key_frames() is only used in new_video_stream(), so move it
right above new_video_stream().
2011-08-30 17:57:59 +02:00
Anton Khirnov
f69e8c7d15
ffmpeg: switch to a:b syntax
2011-08-30 17:57:59 +02:00
Anton Khirnov
e3bf4e292c
ffmpeg: replace -vcodec/-acodec/-scodec with a better system.
...
The new option doesn't depend on its placement wrt -new* options (which
don't exist anymore) and works in a similar way as per-stream AVOptions.
-[vas]codec remain as aliases to -codec:[vas]
2011-08-30 17:57:59 +02:00
Anton Khirnov
a0147957e7
ffmpeg: remove presets.
...
Nothing except x264 uses them and native x264 presets should be used
with private options.
2011-08-30 17:57:59 +02:00
Michael Niedermayer
2d726b195e
Revert "ffmpeg: simplify opt_*_codec() options"
...
This is needed because the following cherry picks are based on code prior of this
This reverts commit f712f6c8a4 .
2011-08-30 17:57:59 +02:00
Anton Khirnov
88bfe4518b
ffmpeg: change semantics of -map
...
New syntax contains an optional stream type, allowing to refer to n-th
stream of specific type.
Omitting stream number now maps all streams of the given type.
2011-08-30 17:57:59 +02:00
Anton Khirnov
f12f40b31a
ffmpeg: get rid of new* options.
...
They are confusing, irregular and redundant -- -map already contains all
the information. Stream maps can now be parsed in opt_output_file().
Add a more user-friendly default behavior in case no maps are present.
Breaks -programid for now, but it never worked properly anyway. A better
solution will be written soon.
2011-08-30 17:57:59 +02:00
Anton Khirnov
7efec8dd6d
ffmpeg: rename sameq variables to same_quant
2011-08-30 17:57:59 +02:00
Anton Khirnov
5a9e42ec45
ffmpeg: make -map_metadata work consistently with the other options
...
Before, it took an input and output file index, now it only takes an
input file and applies to the next output file.
Stream/chapter/program specification is now part of the option name and
the delimiter was changed from ',' to ':' to be consistent with the
similar feature for AVOptions.
2011-08-30 17:57:59 +02:00
Anton Khirnov
6bf3c39d17
ffmpeg: make -map_chapters accept only the input file index.
...
This is consistent with how all the other options work
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-30 17:57:59 +02:00
Michael Niedermayer
97861f5b08
ffmpeg: Set codec_type in new_output_stream
...
Ported from a change from anton khirnov to avconv
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-30 17:57:59 +02:00
Anton Khirnov
a0ce297b69
ffmpeg: rename ffmpeg_exit in exit_program
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-30 17:57:59 +02:00
Kostya Shishkov
a80852316e
RV40: reuse some H.264 motion compensation functions in RV40.
...
Since RV40 is based on H.264, it uses the same interpolation filters and
functions for halfpel interpolation in one direction can be reused.
Unfortunately other cases are implemented differently and produce slightly
different output because of rounding.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-08-30 12:04:46 +01:00
Carl Eugen Hoyos
c41bf905f4
Only autodetect loas in transport streams.
...
The Makito encoder sets stream type 0x11 for AAC.
This patch should be reverted if it breaks decoding valid streams (and
the problem can't be fixed in the probe function).
2011-08-30 10:46:51 +02:00
Carl Eugen Hoyos
75a225217c
Support Nellymoser in isom.
2011-08-30 10:46:51 +02:00
Carl Eugen Hoyos
66624cbb80
Disable cropping for the brainfart case.
...
This fixes ticket #348 for the few users who have a playback application
that supports Sisvel 3D. The other 99% have to wait until FFmpeg
supports arbitrary cropping.
2011-08-30 10:46:50 +02:00
Stefano Sabatini
c70e8523af
vsrc_testsrc: set more properties in the output frames
2011-08-30 10:03:19 +02:00
Stefano Sabatini
bf917e26e1
fifo: add note in av_fifo_realloc2() doxy regarding reallocation failure behavior
2011-08-30 10:03:13 +02:00
Clément Bœsch
0629b1ff35
ffprobe: introduce output format writers.
2011-08-30 09:28:31 +02:00
Baptiste Coudurier
f33be93b1b
mov: read tmcd tag and set timecode drop flag accordingly.
2011-08-30 09:14:05 +02:00
Michael Niedermayer
6270207511
h264: allow debuging SEI types
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-30 05:41:44 +02:00
Carl Eugen Hoyos
caf63ebd0b
Fix some APIchange versions.
2011-08-30 00:19:58 +02:00
Michael Niedermayer
db5effe1a4
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
Revert "h264: Properly set coded_{width, height} when parsing H.264."
isom: add missing AVC-Intra tags, rearrange list and update comments
avconv: remove stubs of crop* and pad* options
avconv: re-add nb_streams to InputFile.
Conflicts:
avconv.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-29 22:24:01 +02:00
Michael Niedermayer
ea36c44e84
avfilter_graph_queue_command: Allow queueing commands out of order
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-29 20:55:22 +02:00
Michael Niedermayer
37f9de59d1
avfilter: fix processing multiple commands per frame and filter
...
Found-by: Nicolas George
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-29 20:39:34 +02:00
Michael Niedermayer
50be0b911a
ffmpeg: Support queing filter commands for later times
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-29 20:16:13 +02:00
Michael Niedermayer
3d8176d2f5
avfilter: Add avfilter_graph_que_command()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-29 20:16:10 +02:00
Michael Niedermayer
f782ce3b4d
drawtext: Support changing parameters through reinit command at runtime.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-29 20:16:08 +02:00
Michael Niedermayer
bb22f39fe2
ffmpeg: Support passing commands to filters at runtime
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-29 20:16:06 +02:00
Michael Niedermayer
1e5014c7c7
avfilter: Add command passing support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-29 20:16:01 +02:00
Luca Barbato
22141917a9
Revert "h264: Properly set coded_{width, height} when parsing H.264."
...
This reverts commit b47904d158 .
coded_{width, height} overwrites width and height in avcodec_open and
it currently just report the non-lowres size.
2011-08-29 18:32:31 +02:00
Tomas Härdin
8b7222979c
isom: add missing AVC-Intra tags, rearrange list and update comments
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-08-29 16:48:39 +02:00
Anton Khirnov
c922816d31
avconv: remove stubs of crop* and pad* options
2011-08-29 06:22:10 +02:00
Anton Khirnov
ed5b13265e
avconv: re-add nb_streams to InputFile.
...
It was mistakenly removed in 2cf8355f98 ,
not taking into account that new streams might appear in av_read_frame()
that avconv doesn't know about.
Fixes bug 24.
2011-08-29 06:22:07 +02:00
Michael Niedermayer
4becc86139
issue_tracker.txt: more updates toward trac
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-29 04:34:35 +02:00
Michael Niedermayer
6e2c036bb8
doc/issue_tracker.txt: regressions are important
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-29 04:32:04 +02:00
Michael Niedermayer
80d4538d05
doc/issue_tracker.txt: Update toward trac
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-29 04:30:06 +02:00
Carl Eugen Hoyos
312645e030
Do not set codec_tag property for matroska muxers.
...
Fixes ticket #8 .
2011-08-28 23:13:17 +02:00
Carl Eugen Hoyos
ab539d9eb8
Use the shorter channel layout description for the common case.
2011-08-28 22:37:11 +02:00
Carl Eugen Hoyos
262ab1c59a
Do not assume timestamps for mp2 format.
2011-08-28 21:43:04 +02:00
Michael Niedermayer
3dd44e5075
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
Use deinterleavers for demangling audio packets in RealMedia.
vf_scale: don't leak SWS context.
doxygen: drop another pointless star from pointer variable name
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-28 00:15:05 +02:00
Fredrik Axelsson
09a858da7d
Add support for BDAV/m2ts-mode muxing
...
Signed-off-by: Fredrik Axelsson <fraxbe@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-27 23:57:24 +02:00
Reimar Döffinger
b118255e91
Replace goto by break, it has the same effect.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-08-27 22:17:23 +02:00
Reimar Döffinger
056c13fd17
vocdec: Take channel count into account when calculating bit rate.
...
Fixes trac issue #343 .
Carl Eugen Hoyos actually made a patch first, but I missed it because
trac does not send notification emails when an attachment is added.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-08-27 22:12:51 +02:00
Reimar Döffinger
2cd7a9ebe0
JPEG-LS: clip offset based on cur_scan to valid range.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-08-27 22:12:50 +02:00
Marton Balint
dacd827b81
Rename find_program_from_stream to av_find_program_from_stream and add it to avformat.h
...
Also extend the functionality to use the last found program to start the search
after that program.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-27 22:06:09 +02:00
Michael Niedermayer
941bb552c6
Fix memory corruption in case of memory allocation failure in av_probe_input_buffer()
...
Reported-by: Tanami Ohad
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-27 21:39:52 +02:00
Kostya Shishkov
10397215aa
Use deinterleavers for demangling audio packets in RealMedia.
...
Unlike other containers RealMedia stores its audio packets in scrambled form,
with interleaver ID preceeding audio codec ID. Currently deinterleaving
decision is tied to the codec while it's possible to have non-default
deinterleaver with audio codec (like Int0 deinterleaver instead of specific
one for Sipro).
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-27 17:23:45 +02:00
Michael Niedermayer
52982dbe47
vf_scale: don't leak SWS context.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-27 17:23:45 +02:00
Diego Biurrun
fa19c5c20e
doxygen: drop another pointless star from pointer variable name
2011-08-27 14:00:54 +02:00
Stefano Sabatini
24ddfb2bdb
lavfi: add amovie source - audio movie source
2011-08-27 12:46:55 +02:00
Matthew Einhorn
1d6eca2d27
Removes the internal avcodec_find_best_pix_fmt1()function previously used by avcodec_find_best_pix_fmt() and not used anymore.
...
Signed-off-by: Matthew Einhorn <moiein2000@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-27 05:09:48 +02:00
Michael Niedermayer
c8868f28e3
vf_scale: apply the same transform to the aspect during init that is applied per frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-27 02:04:37 +02:00
Michael Niedermayer
1287c81d65
imgconvert: make avcodec_find_best_pix_fmt2() more bug robust against future changes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-27 01:07:00 +02:00
Matthew Einhorn
adfe59407e
Adds a new pix fmt function that selects the best dest fmt from among 2 formats to convert to, given a certain src format.
...
Similar to avcodec_find_best_pix_fmt(), but instead only compares two destination
pix fmts and selects one of these fmts as the best dest format when converting from
a given source format. Also, as opposed to avcodec_find_best_pix_fmt() which supports
only the first 64 defined pixel formats, this supports as input any of the defined
pixel formats.
Also replaces the old function to rely on the new function.
Signed-off-by: Matthew Einhorn <moiein2000@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-27 00:57:46 +02:00
Michael Niedermayer
094a496818
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
fifo: add FIFO API test program, and fate test
fifo: add av_fifo_peek2(), and deprecate av_fifo_peek()
postprocess.c: filter name needs to be double 0 terminated
doxygen: fix wrong comment syntax, //< vs. ///<
doxygen: drop pointless star from pointer variable names
Replace deprecated av_find_stream_info() by avformat_find_stream_info().
xmv: eliminate superfluous zeroing of zero data
configure: fix typo in avconv dependency list
Conflicts:
configure
doc/APIchanges
libavutil/Makefile
libavutil/avutil.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-26 23:18:54 +02:00
Stefano Sabatini
1717ba0cdd
fifo: add FIFO API test program, and fate test
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-26 20:54:36 +02:00
Stefano Sabatini
f2011ed234
fifo: add av_fifo_peek2(), and deprecate av_fifo_peek()
...
The new function provides a more generic interface than av_fifo_peek()
for peeking at a FIFO buffer data.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-26 20:53:02 +02:00
Piotr Kaczuba
f4f3300c09
postprocess.c: filter name needs to be double 0 terminated
...
Signed-off-by: Reinhard Tartler <siretart@tauware.de >
2011-08-26 20:28:54 +02:00
Diego Biurrun
0249478756
doxygen: fix wrong comment syntax, //< vs. ///<
2011-08-26 18:34:28 +02:00
Diego Biurrun
0138a8dead
doxygen: drop pointless star from pointer variable names
2011-08-26 18:08:38 +02:00
Diego Biurrun
c960e67ad0
Replace deprecated av_find_stream_info() by avformat_find_stream_info().
2011-08-26 17:40:07 +02:00
Marton Balint
0a1cf66210
ffplay: fix a crash caused by aborting the video queue
...
If the video queue is aborted, we have to pop the pending ALLOC event or wait
for the allocation to complete, because the current code assumes that
VideoState->pictq_windex does not change until the allocation is complete.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-26 17:08:46 +02:00
Sven Hesse
5f677aac76
xmv: eliminate superfluous zeroing of zero data
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-08-26 16:26:57 +02:00
Clément Bœsch
8af9366e2f
ffprobe: fix deprecated call to av_find_stream_info.
2011-08-26 14:33:28 +02:00
Michael Niedermayer
a544545a03
acodec: change default bitrate to 128k
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-26 14:15:46 +02:00
Michael Niedermayer
2e97d1267e
regtests: use bitrate syntax understood by both tools
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-26 14:15:17 +02:00
Diego Biurrun
d2ba1fb50c
configure: fix typo in avconv dependency list
2011-08-26 03:46:10 +02:00
Michael Niedermayer
876d1d796b
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
vp6: partially propagate huffman tree building errors during coeff model parsing and fix misspelling
mpeg12: propagate chunk decode errors and fix conditional indentation
vc1: fix VC-1 Pulldown handling.
VC1: Fix first/last row checks with slices
mp4: Handle non-trivial ES Descriptors.
vc1: properly zero coded_block[] edges on new slice entry.
Conflicts:
libavcodec/vc1dec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-26 01:29:40 +02:00
Dustin Brody
f913eeea43
vp6: partially propagate huffman tree building errors during coeff model parsing and fix misspelling
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-08-25 15:49:56 -07:00
Dustin Brody
09c274e067
mpeg12: propagate chunk decode errors and fix conditional indentation
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-08-25 15:49:28 -07:00
Michael Niedermayer
7c4e4c6a06
udp: fix circular buffer error handling
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-25 21:43:30 +02:00
John Stebbins
0d802ac54e
vc1: fix VC-1 Pulldown handling.
...
Pulldown flags are being set incorrectly and AVFrame->repeat_pict is not
being set. Also, skipped frames exit header parsing too early and do not
set pulldown flags appropriately. Ticks_per_frame needs to be set and
time_base adjusted so player can extend frame duration by a field time.
This fixes problems encountered when attempting to transcode HD-DVD EVOB
files with HandBrake. Also makes these files play smoothly in avplay.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-08-25 12:41:45 -07:00
Alberto Delmás
1cf82cab08
VC1: Fix first/last row checks with slices
...
In some places 0/mb_height were used in place of start_mb_y/end_mb_y.
Fixes SA00049, SA00058, SA10091, SA10097, SA10131, SA20021, SA30030
Improves PSNR in SA00054, SA00059, SA00060, SA10096, SA10098, SA20022,
SA30031, SA30032, SA40012, SA40013
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-08-25 12:33:58 -07:00
Michael Niedermayer
20f0bf8cfb
udp: buffer datagrams in circular buffer instead of a bytestream
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-25 21:33:54 +02:00
Alex Converse
ad6c7c1b52
mp4: Handle non-trivial ES Descriptors.
2011-08-25 11:53:21 -07:00
Michael Niedermayer
abe0b8e9f3
sws: use shift for chroma sample up convertion
...
sws: use shifts for non full range luma sample upconvertion
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-25 14:49:29 +02:00
Ronald S. Bultje
d4b9974465
vc1: properly zero coded_block[] edges on new slice entry.
...
Previously, we would leave the left edge uninitialized, which led to
CBP prediction errors on slice edges, e.g. in SA10098.vc1.
2011-08-24 22:06:06 -07:00
Marton Balint
ee0ff051f2
ffplay: use lock manager callback to make libavcodec thread-safe
...
Altough ffplay is working pretty well without using a lock manager, it is still
a multithreaded application calling libavcodec functions from multiple threads,
so using a lock manager is probably a good idea.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-25 04:06:09 +02:00
Michael Niedermayer
7e7012d0b4
oggdec: subtract time of first packet only from duration when it is significant
...
this fixes accuracy with normal ogg files while keeping support for ogg files
starting at times different from 0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-24 23:20:09 +02:00
Michael Niedermayer
d2cab951e3
oggdec: Make sure start time correction is applied once to each stream
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-24 23:13:57 +02:00
Michael Niedermayer
bd4640375e
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avconv: Replace goto redo on decode fail with continue.
avconv: Remove dead store.
libx264: add 'crf_max' private option.
libx264: add 'weightp' private option.
libx264: add 'rc_lookahead' private option.
libx264: add 'psy_trellis' private option.
libx264: add 'psy_rd' private option.
libx264: add 'aq_strength' private option.
libx264: add 'aq_mode' private option.
libx264: add 'cqp' private option.
libx264: add 'crf' private option.
lavc: remove vbv_delay option
lavf utils: Fix bad indentation.
avconv: use av_clip_int16 for audio clipping
Conflicts:
libavcodec/libx264.c
libavcodec/options.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-24 20:26:48 +02:00
Alex Converse
b9630bcf82
avconv: Replace goto redo on decode fail with continue.
...
This checks for sigterm but otherwise is identical to the previous
behavior.
2011-08-24 10:13:32 -07:00
Alex Converse
389e0a5a24
avconv: Remove dead store.
2011-08-24 10:13:32 -07:00
Michael Niedermayer
d4f30c7daf
h264-422: fix fate to handle 10 bit formats on big endian correctly.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-24 18:38:46 +02:00
Michael Niedermayer
565cabf5c8
h264: Try to fix 422 intra NEON
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-24 17:57:40 +02:00
Anton Khirnov
4ae30cac22
libx264: add 'crf_max' private option.
...
Deprecate corresponding global option.
2011-08-24 14:33:40 +02:00
Anton Khirnov
c5dd0bc4ca
libx264: add 'weightp' private option.
...
Deprecate corresponding global option.
2011-08-24 14:32:24 +02:00
Anton Khirnov
d4b9671318
libx264: add 'rc_lookahead' private option.
...
Deprecate corresponding global option.
2011-08-24 14:31:55 +02:00
Anton Khirnov
2a44a8f609
libx264: add 'psy_trellis' private option.
...
Deprecate corresponding global option.
2011-08-24 14:31:07 +02:00
Anton Khirnov
93e623c642
libx264: add 'psy_rd' private option.
...
Deprecate corresponding global option.
2011-08-24 14:30:25 +02:00
Anton Khirnov
5c75b2a0b7
libx264: add 'aq_strength' private option.
...
Deprecate corresponding global option.
2011-08-24 14:30:00 +02:00
Anton Khirnov
85254fcb46
libx264: add 'aq_mode' private option.
...
Deprecate corresponding global option.
2011-08-24 14:28:40 +02:00
Anton Khirnov
9d508e4914
libx264: add 'cqp' private option.
...
Deprecate corresponding global option.
2011-08-24 14:28:07 +02:00
Anton Khirnov
d5dc8cc297
libx264: add 'crf' private option.
...
Deprecate corresponding global option.
Ideally all x264 private options should be generated automatically, but
x264 doesn't provide the API for this yet.
2011-08-24 14:26:12 +02:00
Anton Khirnov
8ee18b4bee
lavc: remove vbv_delay option
...
It's broken and serves no purpose as it's a read-only field.
2011-08-24 14:07:39 +02:00
Carl Eugen Hoyos
5f5e37e0fa
Support decoding of 2bpp and 4bpp TIFF images.
...
Based on patches by Kostya and ami_stuff.
2011-08-23 20:38:43 +02:00
Alex Converse
7e6029f98a
lavf utils: Fix bad indentation.
2011-08-23 09:53:23 -07:00
Alex Converse
6c7ee2f7db
avconv: use av_clip_int16 for audio clipping
2011-08-23 09:53:23 -07:00
Michael Niedermayer
4ca6a151e0
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avconv: print the codecs names in the stream mapping.
avconv: move the avcodec_find_decoder() call to add_input_streams().
Windows Media Image decoder (WMVP/WVP2)
ac3enc: remove outdated TODO comment for apply_channel_coupling()
Conflicts:
Changelog
libavcodec/avcodec.h
libavcodec/vc1dec.c
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-23 18:26:37 +02:00
Nicolas George
bc8c50512f
avconv: print the codecs names in the stream mapping.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-23 16:50:01 +02:00
Anton Khirnov
c74b44de08
avconv: move the avcodec_find_decoder() call to add_input_streams().
...
This makes the code simpler to understand, though it results in an
unnecessary call to avcodec_find_decoder() if the stream won't be
decoded.
2011-08-23 16:50:01 +02:00
Stefano Sabatini
276f43be68
lavfi: rename vsrc_movie.c to src_movie.c
...
The file is going to contain the amovie source, so give it a less
specific name.
2011-08-23 15:45:53 +02:00
Stefano Sabatini
e26782a9b4
lavfi: add ff_parse_pixel_format() internal function, and use it
...
Reduce code duplication.
2011-08-23 15:45:44 +02:00
Baptiste Coudurier
2c6348ea67
fate: add h264 intra 4:2:2 tests
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-23 14:29:36 +02:00
Carl Eugen Hoyos
88f71f3daa
Fix compilation with --disable-avfilter.
...
Fixes ticket #414 .
2011-08-23 11:25:40 +02:00
Alberto Delmás
45ecda8554
Windows Media Image decoder (WMVP/WVP2)
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-23 11:18:35 +02:00
Carl Eugen Hoyos
04c9c0baf3
Make strtok_r a dependency of abuffer / fix typo.
...
Fix ticket 413.
2011-08-23 09:16:39 +02:00
Michael Niedermayer
c693aec960
developer.texi: Suggest a git clone if the patch review process doesnt work out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-23 04:34:14 +02:00
Michael Niedermayer
743586ff38
developer.texi: add Contributing section
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-23 04:34:05 +02:00
Michael Niedermayer
f3fb71f029
developer.texi: Simplify "Regression tests section"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-23 03:02:25 +02:00
Michael Niedermayer
58368cf215
developer.texi: remove reference to non existing target fulltest
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-23 02:58:45 +02:00
Nicolas George
7a71a3d098
codec_names: remove spaces in sed command.
2011-08-22 20:12:50 +02:00
Justin Ruggles
3be5a94351
ac3enc: remove outdated TODO comment for apply_channel_coupling()
2011-08-22 12:14:57 -04:00
Carl Eugen Hoyos
5b71ae2b65
Be more verbose about H264 cropping errors.
2011-08-22 16:58:59 +02:00
Michael Niedermayer
124deea1a0
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
libx264: only use ABR mode when the user explicitly set bitrate.
libx264: use medium preset by default.
mp2 encoder: make 128k the default bitrate.
movenc: use libx264 by default when possible for mov, mp4 and psp
avienc: saner default audio codec.
matroskaenc: saner default codecs.
avplay: add examples of how to specify size/pixel format through private options
lavc: add A|E|D flags to "ac" and "ar" options
Conflicts:
doc/ffplay.texi
libavcodec/libx264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-22 15:00:53 +02:00
Nicolas George
aeba058340
lavf: warn when a parser is needed and not found.
2011-08-22 12:13:27 +02:00
Nicolas George
355ac7ff6c
rtpenc: use avcodec_get_name to report unsupported codecs.
2011-08-22 12:13:27 +02:00
Nicolas George
1c58264e62
flvenc: use avcodec_get_name to report unsupported codecs.
2011-08-22 12:13:27 +02:00
Nicolas George
83ff2a1153
ffmpeg: use avcodec_get_name to report missing en/decoders.
2011-08-22 12:13:27 +02:00
Nicolas George
d2d7b7134f
lavc: use av_get_media_type_string and avcodec_get_name in avcodec_string.
2011-08-22 12:13:24 +02:00
Nicolas George
b3be9f4a88
lavc: add a table of all codecs names.
...
The table is automatically generated from the definition of enum CodecID in
avcodec.h and contains the name of all known codecs, even those for which no
encoder nor decoder exists or is enabled.
The table is queried using the avcodec_get_name function.
If CONFIG_SMALL is true, the table is not compiled in; the avcodec_get_name
looks for names in the list of available decoders and encoders.
2011-08-22 10:54:44 +02:00
Nicolas George
8b52b46c97
ffmpeg: print the codecs names in the stream mapping.
2011-08-22 10:46:13 +02:00
Stefano Sabatini
e0ddc2e953
vsrc_movie: rename video movie specific callbacks, prefix them with "movie"
2011-08-22 10:40:50 +02:00
Stefano Sabatini
df4c7ae9db
asink_abuffer: extend ABufferSinkContext to make it accept lists of formats in input
...
This is required for the pending lavfi indev extension, also
consistent with the video buffer sink.
2011-08-22 10:34:43 +02:00
Stefano Sabatini
3e4666f34c
vsrc_movie: create media agnostic movie init and uninit routines
...
Allow factorization for the pending work on the audio movie source.
2011-08-22 10:34:43 +02:00
Stefano Sabatini
8aa62bb950
af_aformat: use evil ADD_FORMATS macro for cutting out duplicated code
2011-08-22 10:34:43 +02:00
Nicolas George
5fa98ab42d
ffmpeg: ignore forward gaps for subtitles streams.
2011-08-22 09:55:35 +02:00
Carl Eugen Hoyos
05a267305d
Support more codecs when muxing caf.
2011-08-22 09:35:58 +02:00
Anton Khirnov
ae60927aef
libx264: only use ABR mode when the user explicitly set bitrate.
2011-08-22 07:17:39 +02:00
Anton Khirnov
03eff2bf43
libx264: use medium preset by default.
2011-08-22 07:17:38 +02:00
Anton Khirnov
0a593de38a
mp2 encoder: make 128k the default bitrate.
2011-08-22 07:17:38 +02:00
Anton Khirnov
fb42d156ed
movenc: use libx264 by default when possible for mov, mp4 and psp
2011-08-22 07:17:35 +02:00
Anton Khirnov
b71389cbae
avienc: saner default audio codec.
...
libmp3lame if available, ac3 otherwise.
2011-08-22 07:17:19 +02:00
Anton Khirnov
3436c4a368
matroskaenc: saner default codecs.
...
libvorbis/libx264 for video if available, otherwise ac3/mpeg4.
2011-08-22 07:16:55 +02:00
Stefano Sabatini
b6d28eff84
avplay: add examples of how to specify size/pixel format through private options
...
Clarify with an example what the user should use instead of the
deprecated (and no longer working) -s/-pix_fmt options.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-22 07:16:28 +02:00
Marton Balint
ba571f6b4d
ffplay: remove unnecessary if (cur_stream) checks
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-21 20:33:02 +02:00
Marton Balint
84506ebd48
ffplay: get rid of the global cur_stream variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-21 20:33:02 +02:00
Marton Balint
5db1f94b8d
ffplay: make step variable a member of the VideoState struct
...
Getting rid of globals are generally a good thing. The patch also makes
toggle_pause and step_to_next_frame use a function parameter instead of
the global cur_stream variable.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-21 20:33:02 +02:00
Matthew Einhorn
27667d28a6
Updates avcodec_get_pix_fmt_loss to return maximum loss for an invalid destination pixel format.
...
Signed-off-by: Matthew Einhorn <moiein2000@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-21 20:33:02 +02:00
Reimar Döffinger
18de79692c
roqvideodec: Improve checking of input buffer bounds.
...
Fixes trac issue #408 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-08-21 16:34:35 +02:00
Stefano Sabatini
143d6a3fa7
lavc: add A|E|D flags to "ac" and "ar" options
...
Fix setting of the corresponding AVCodecContext fields via
cmdutils.c:filter_codec_opts().
In particular, fix ffplay -ac and -ar options.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-21 16:06:16 +02:00
Michael Niedermayer
ff96098084
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
WavPack demuxer: do not rely on index when timestamp is not in indexed range.
WavPack demuxer: store position of the first block in index.
WavPack decoder: implement flush function
avconv: Separate initialization from the main transcode loop.
Conflicts:
avconv.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-21 15:27:02 +02:00
Stefano Sabatini
34c997599e
vsrc_testsrc: allow to set the sample aspect ratio
...
Add the sar option. Useful for debugging/testing purposes.
2011-08-21 15:27:09 +02:00
Stefano Sabatini
6a5c693a18
lavdev/lavfi: set sample aspect ratio in the output stream/codec context
2011-08-21 15:27:09 +02:00
Carl Eugen Hoyos
ef25e70de3
Stream-copying PureVoice into caf works fine.
2011-08-21 14:52:48 +02:00
Kostya Shishkov
ccb919e34b
WavPack demuxer: do not rely on index when timestamp is not in indexed range.
...
This fixes the situation when there are not enough entries in the index
(e.g. on initial seek there's only one index entry in the index) and index
search returns just the last known entry. That causes seeking function just to
seek there instead of trying harder to get at the requested position.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-08-21 12:55:17 +02:00
Kostya Shishkov
5561fe487f
WavPack demuxer: store position of the first block in index.
...
Currently for multichannel audio position for the last block position is
stored in index (and used for seeking), which is obviously not correct.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-08-21 12:54:35 +02:00
Kostya Shishkov
4ba8c521b1
WavPack decoder: implement flush function
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-08-21 12:54:34 +02:00
Stefano Sabatini
c5d9bd1938
asrc_abuffer: pass non-const string to strtok_r in init()
...
Fix GCC warning:
asrc_abuffer.c: In function ‘init’:
asrc_abuffer.c:258: warning: passing argument 1 of ‘strtok_r’ discards qualifiers from pointer target type
2011-08-21 11:38:30 +02:00
Mina Nagy Zaki
587c8ab912
lavfi: add asrc_abuffer - audio buffer source
...
Originally based on code by Stefano Sabatini and S. N. Hemanth.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
2011-08-21 11:37:57 +02:00
Michael Niedermayer
f138c7f993
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
doc/avconv: replace forgotten av by avconv.
avconv: reset input_ts_offset between files.
doc/avconv: extend -ss documentation.
avconv: call flush_encoders() from transcode() directly.
avconv: fix broken indentation.
avconv: rescue poor abused limit_filesize global.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-20 15:43:56 +02:00
Stefano Sabatini
4b66c8b425
lavdev/lavfi: specify pos in the output packets
2011-08-20 15:00:36 +02:00
Stefano Sabatini
e30a0b1b3b
lavfi: add ashowinfo filter
...
Useful for debugging.
2011-08-20 15:00:23 +02:00
Stefano Sabatini
9d84a17ba5
APIchanges: fix wrong major number for av_fifo_peek2() entry
2011-08-20 14:25:22 +02:00
Stefano Sabatini
7807cbc0c2
APIchanges: fill some lavfi entries with the corresponding git hash
2011-08-20 14:25:15 +02:00
Stefano Sabatini
7fd3e1c766
lavdev/lavfi: initialize variable, fix warning
2011-08-20 14:20:25 +02:00
Stefano Sabatini
9a15146768
ffprobe: use av_get_media_type_string() in media_type_string(), simplify
2011-08-20 14:20:25 +02:00
Stefano Sabatini
69e2c1a95a
lavu: add av_get_media_type_string() convenience function
...
Avoid code duplication.
2011-08-20 14:20:25 +02:00
Reimar Döffinger
31ac0ac29b
Fix parser not to clobber has_b_frames when extradata is set.
...
Due to it in contrast to the decoder not setting up low_delay,
the code in parse_nal_units would always end up setting has_b_frames
to 1 (except when stream is explicitly marked as low delay).
Since the parser itself would create extradata, simply reopening
the parser would cause this.
estimate_timings_from_pts would cause the parser to be reopened
on the same stream.
This fixes trac issue #360 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-08-20 12:29:03 +02:00
Alex Converse
eaf2d37acc
avconv: Separate initialization from the main transcode loop.
2011-08-19 15:41:05 -07:00
Michael Niedermayer
13e9a0fbfb
h264: fixup indention
...
issue spoted in last merge (probably indention fixed there by diego)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-20 00:38:26 +02:00
Anton Khirnov
f5bae2c6ed
doc/avconv: replace forgotten av by avconv.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com >
2011-08-19 15:37:44 -07:00
Anton Khirnov
f60a6b5853
avconv: reset input_ts_offset between files.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com >
2011-08-19 15:37:14 -07:00
Anton Khirnov
cf4976ed7b
doc/avconv: extend -ss documentation.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com >
2011-08-19 15:36:43 -07:00
Anton Khirnov
b62b5cb6fd
avconv: call flush_encoders() from transcode() directly.
...
And remove now pointless parameter.
Signed-off-by: Alex Converse <alex.converse@gmail.com >
2011-08-19 15:36:05 -07:00
Anton Khirnov
c093150849
avconv: fix broken indentation.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com >
2011-08-19 15:35:20 -07:00
Anton Khirnov
f21f294e05
avconv: rescue poor abused limit_filesize global.
...
Keep a per-OutputFile instance of it, thus making -fs work with multiple
output files.
Signed-off-by: Alex Converse <alex.converse@gmail.com >
2011-08-19 15:34:24 -07:00
Carl Eugen Hoyos
7bdc5de33d
Autodetect LOAS in transport streams.
...
Fixes ticket 365.
2011-08-20 00:27:54 +02:00
Carl Eugen Hoyos
47818b2a67
Add LOAS demuxer.
2011-08-20 00:27:38 +02:00
Michael Niedermayer
60b54e4b9f
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avconv: Set error code before before jumping to fail.
h264: fix PCM intra-coded blocks in monochrome case
Conflicts:
libavcodec/h264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-19 23:32:51 +02:00
Alex Converse
e6d2b73784
avconv: Set error code before before jumping to fail.
2011-08-19 11:28:21 -07:00
Jeff Downs
6581e161c5
h264: fix PCM intra-coded blocks in monochrome case
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-08-19 16:02:33 +02:00
Michael Niedermayer
ada49f936e
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
h264: correct implicit weight table computation for long ref pics
h264: correct the check for invalid long term frame index in MMCO decode
Conflicts:
libavcodec/h264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-19 15:07:12 +02:00
Jeff Downs
87cf70eb23
h264: correct implicit weight table computation for long ref pics
...
Correct computation of implicit weight tables when referencing pictures
that are marked for long reference.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-08-19 14:36:52 +02:00
Jeff Downs
29a09eae9a
h264: correct the check for invalid long term frame index in MMCO decode
...
The current check on MMCO parameters prohibits a "max long term frame index
plus 1" of 16 (frame idx of 15) for the "set max long term frame index" MMCO.
Fix this off-by-one error to allow the full range of legal values.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-08-19 14:36:40 +02:00
Michael Niedermayer
ba57ef2972
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avconv: Fix spelling errors.
aac: Only set sample rate and object type from ADTS if output hasn't been configured.
aac: Set SBR and PS to unsignalled during headerless and ADTS initialization.
aac: Only output configure if audio was found.
avconv: save two levels of indentation in flush_encoders()
avconv: factor flushing encoders out of output_packet().
avconv: factor out initializing input streams.
avconv: remove -intra option.
avconv: reset streamid_map between output files.
avconv: make timer_start a local var in transcode().
avconv: cosmetics, move OutputStream.
avconv: remove two unused macros.
Conflicts:
avconv.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-19 00:53:42 +02:00
Sven Hesse
8ea6157d83
xmv: Read the video packet data first, then swap its bytes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-18 23:56:12 +02:00
Sven Hesse
c062aa8deb
xmv: Remove superfluous zeroing of already zero'd data
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-18 23:54:17 +02:00
Sven Hesse
730333efc4
xmv: Add some doxygen comments
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-18 23:54:08 +02:00
Sven Hesse
6fb501245d
xmv: Merge XMVAudioTrack into XMVAudioPacket
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-18 23:53:44 +02:00
Sven Hesse
d50fc62ea2
xmv: Make the various offset variables uint64_t
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-18 23:52:52 +02:00
Michael Niedermayer
909e0fe243
xmv: fix license header to match patch
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-18 23:32:51 +02:00
Carl Eugen Hoyos
fc5299e9b7
Allow setting resolution in DPI for Tiff.
2011-08-18 23:17:51 +02:00
Alex Converse
bb337b4fbc
avconv: Fix spelling errors.
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-08-18 22:29:41 +02:00
Alex Converse
44920d04ba
aac: Only set sample rate and object type from ADTS if output hasn't been configured.
...
Long term it would be nice to support error resilient reconfiguration
but right now setting this every frame does more harm than help.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-08-18 22:29:41 +02:00
Alex Converse
06d37fede4
aac: Set SBR and PS to unsignalled during headerless and ADTS initialization.
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-08-18 22:29:41 +02:00
Alex Converse
d8425ed4af
aac: Only output configure if audio was found.
...
Audio found is not triggered on a CCE because a CCE alone has no output.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-08-18 22:29:41 +02:00
Anton Khirnov
6f1c66d526
avconv: save two levels of indentation in flush_encoders()
...
By replacing
if (foo)
<do stuff>
with
if (!foo)
continue;
<do stuff>
2011-08-18 11:22:12 +02:00
Anton Khirnov
4a4ce2e743
avconv: factor flushing encoders out of output_packet().
2011-08-18 11:22:12 +02:00
Anton Khirnov
630902a1e1
avconv: factor out initializing input streams.
2011-08-18 11:22:12 +02:00
Anton Khirnov
ddf5ef0263
avconv: remove -intra option.
...
It's equivalent to -g 0.
2011-08-18 11:22:05 +02:00
Michael Niedermayer
edae3dbf1d
Merge remote-tracking branch 'qatar/master'
...
* qatar/master: (23 commits)
h264: hide reference frame errors unless requested
swscale: split hScale() function pointer into h[cy]Scale().
Move clipd macros to x86util.asm.
avconv: reindent.
avconv: rescue poor abused start_time global.
avconv: rescue poor abused recording_time global.
avconv: merge two loops in output_packet().
avconv: fix broken indentation.
avconv: get rid of the arbitrary MAX_FILES limit.
avconv: get rid of the output_streams_for_file vs. ost_table schizophrenia
avconv: add a wrapper for output AVFormatContexts and merge output_opts into it
avconv: make itsscale syntax consistent with other options.
avconv: factor out adding input streams.
avconv: Factorize combining auto vsync with format.
avconv: Factorize video resampling.
avconv: Don't unnecessarily convert ipts to a double.
ffmpeg: remove unsed variable nopts
RV3/4 parser: remove unused variable 'off'
add XMV demuxer
rmdec: parse FPS in RealMedia properly
...
Conflicts:
avconv.c
libavformat/version.h
libswscale/swscale.c
tests/ref/fate/lmlm4-demux
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-18 10:56:08 +02:00
Anton Khirnov
e922bbfa76
avconv: reset streamid_map between output files.
2011-08-18 08:49:32 +02:00
Anton Khirnov
c5ad2c2cc6
avconv: make timer_start a local var in transcode().
2011-08-18 08:49:32 +02:00
Anton Khirnov
6494c001be
avconv: cosmetics, move OutputStream.
...
Allows us to get rid of forward InputStream declaration.
2011-08-18 08:49:32 +02:00
Anton Khirnov
e659c51563
avconv: remove two unused macros.
2011-08-18 08:49:32 +02:00
Dustin Brody
b490f0c2bc
h264: hide reference frame errors unless requested
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-08-17 20:56:54 -07:00
Ronald S. Bultje
3f04ab4fcd
swscale: split hScale() function pointer into h[cy]Scale().
...
This allows using more specific implementations for chroma/luma, e.g.
we can make assumptions on filterSize being constant, thus avoiding
that test at runtime.
2011-08-17 20:56:06 -07:00
Ronald S. Bultje
38e06c2969
Move clipd macros to x86util.asm.
...
This allows sharing them between multiple .asm files.
2011-08-17 20:56:06 -07:00
Matthew Einhorn
2f53fce3b1
lavc: fix wrong example code in avcodec_find_best_pix_fmt() docs
...
A pix_fmt_mask is obtained by bitwise or-ing two pixel format bits,
rather than doing a logical or.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
2011-08-18 01:02:34 +02:00
Matthew Einhorn
39f9601c10
lavc: fix avcodec_find_best_pix_fmt() when there's more than 64 pixel formats
...
This fixed the problem where if there's more than 64 pixel formats
defined avcodec_find_best_pix_fmt() returns the wrong pixel format.
Signed-off-by: Matthew Einhorn <moiein2000@gmail.com >
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
2011-08-18 01:02:34 +02:00
Aurelien Jacobs
dc6c36ce46
matroskadec: use correct compression parameters for current track CodecPrivate
2011-08-18 00:21:21 +02:00
Reimar Döffinger
4fe796b32a
msrle: correctly round linesize for < 8 bpp formats.
...
Fixes trac issue #338 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-08-17 22:13:36 +02:00
Anton Khirnov
45f861283e
avconv: reindent.
2011-08-17 20:01:12 +02:00
Anton Khirnov
ea065176b2
avconv: rescue poor abused start_time global.
...
Keep a per-OutputFile instance of it, thus making -ss work with multiple
output files.
2011-08-17 20:00:46 +02:00
Anton Khirnov
ef44a60710
avconv: rescue poor abused recording_time global.
...
Keep a per-OutputFile instance of it, thus making -t work with multiple
output files.
2011-08-17 20:00:06 +02:00
Anton Khirnov
2886aee73f
avconv: merge two loops in output_packet().
2011-08-17 19:58:55 +02:00
Anton Khirnov
f1176d41af
avconv: fix broken indentation.
2011-08-17 19:58:31 +02:00
Anton Khirnov
b0c9e8e024
avconv: get rid of the arbitrary MAX_FILES limit.
2011-08-17 19:58:16 +02:00
Anton Khirnov
4288e0316a
avconv: get rid of the output_streams_for_file vs. ost_table schizophrenia
...
Instead store output streams in the same way as input streams.
2011-08-17 19:57:20 +02:00
Anton Khirnov
af70aa4526
avconv: add a wrapper for output AVFormatContexts and merge output_opts into it
2011-08-17 19:55:55 +02:00
Anton Khirnov
09af7fb309
avconv: make itsscale syntax consistent with other options.
...
Move the stream specifier to the option name.
2011-08-17 19:53:05 +02:00
Anton Khirnov
88867844c6
avconv: factor out adding input streams.
2011-08-17 19:52:28 +02:00
Alex Converse
553735f5a8
avconv: Factorize combining auto vsync with format.
2011-08-17 10:16:52 -07:00
Alex Converse
87ef060c3b
avconv: Factorize video resampling.
2011-08-17 10:16:48 -07:00
Alex Converse
9be3c1245f
avconv: Don't unnecessarily convert ipts to a double.
2011-08-17 10:05:57 -07:00
Diego Biurrun
f056fc2c6c
ffmpeg: remove unsed variable nopts
2011-08-17 15:35:42 +02:00
Kostya Shishkov
91e209d720
RV3/4 parser: remove unused variable 'off'
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-08-17 15:31:40 +02:00
Sven Hesse
c6c6c1aaa6
add XMV demuxer
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-08-17 15:04:37 +02:00
Kostya Shishkov
a43b1e74e2
rmdec: parse FPS in RealMedia properly
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-17 15:00:42 +02:00
Kostya Shishkov
48ce8b8da7
Use parsers for RealVideo 3/4 to determine correct PTS
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-17 15:00:42 +02:00
Kostya Shishkov
7c1f6df4b5
rmdec: correct DTS calculation in RealMedia container.
...
First, container stores only DTS and not PTS as it was believed.
Second, multiple frames in a packet store timestamp instead of position
after the frame length.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-17 15:00:42 +02:00
Kostya Shishkov
331971116d
rv10/20: tell decoder to use edge emulation
...
This removes out-of-edge motion compensation artifacts (easily spotted green
blocks in avplay, gray blocks in transcoding), for example here:
http://samples.libav.org/samples/real/tv_watching_t1.rm
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-08-17 14:53:34 +02:00
Michael Niedermayer
27fbe31c92
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
Revert "avconv: use stream copy by default when possible."
avconv: print stream copy information.
avconv: use stream copy by default when possible.
matroskaenc: vertical alignment.
matroskaenc: implement query_codec()
lavf: add avformat_query_codec().
lavc: add avcodec_get_type() for mapping codec_id -> type.
flvenc: use int64_t to store offsets
avconv: don't segfault on 0 input files.
Do not write ID3v1 tags by default
mpegts: log into an AVFormatContext rather than MpegTSContext.
Conflicts:
doc/APIchanges
libavcodec/version.h
libavformat/avformat.h
libavformat/mp3enc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-17 14:23:20 +02:00
Michael Niedermayer
d071df888d
avconv: Correct Copyright statement.
...
this more than 4000 line file has less than 600 lines that are not in ffmpeg.c
and they are largely cosmetic changes from ffmpeg.c.
Thus the copyright statement from ffmpeg.c should be used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-17 14:13:16 +02:00
Mina Nagy Zaki
3a9e227fb1
lavfi: add aresample filter
...
Based on a patch by Stefano.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
2011-08-17 13:12:40 +02:00
Stefano Sabatini
7c94740b84
ffprobe: in value_string(), do not print trailing space in case of no suffix
2011-08-17 10:29:34 +02:00
Stefano Sabatini
15802e78e7
ffplay: do not erase the content of vfilters
...
This way the content of "vfilters" can be reused.
For example when the frame size changes, the filterchain is
reconfigured reusing again the vfilters value.
2011-08-17 10:29:34 +02:00
Stefano Sabatini
031ba46633
ffplay: increase log level of the message issued when the stream frame size changes
...
Use av_log(AV_LOG_LEVEL...) rather than av_dlog, the log is useful
even for "normal" debugging, and consistent with what is done in
ffmpeg.
Also change the message to achieve better consistency with the
corresponding ffmpeg message.
2011-08-17 10:29:34 +02:00
Stefano Sabatini
c6ef3f4481
ffplay: in input_config_props(), prefer "s" over unnecessary "c" temporary variable
...
Sligthly improve readability, reduce redundancy.
2011-08-17 10:29:34 +02:00
Stefano Sabatini
f8eaa006b6
ffplay: in input_config_props(), honour the SAR specified in the codec context
...
Use the value specified in the codec context for setting the
filterchain sample aspect ratio, when it is not specified in the
stream context.
Consistent with the ffmpeg behavior.
Fix trac issue #398 .
2011-08-17 10:29:34 +02:00
Michael Niedermayer
41bf67d8d4
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
movenc: change AV_LOG_INFO to AV_LOG_WARNING for some warnings
avconv: remove a write-only variable
avconv: remove pointless parameter from new_*_stream().
avconv: cosmetics, move code
avconv: cosmetics -- move copy_chapters().
avconv: cosmetics -- move parse_forced_key_frames().
lavc: add audio flag to the 'b' option, deprecate 'ab'.
avconv: rename sameq to same_quant
doc/avconv: add forgotten end of chapter.
Changelog: document avconv incompatibilities with ffmpeg.
avconv: replace -vcodec/-acodec/-scodec with a better system.
avconv: remove presets.
svq3: propagate codec memory allocation failure in context init
Conflicts:
Changelog
avconv.c
libavcodec/options.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-16 23:47:35 +02:00
Carl Eugen Hoyos
67a8251690
Fix compilation with --disable-avfilter.
2011-08-16 23:31:09 +02:00
Reimar Döffinger
4f00519d95
Fix VC-1 width/height handling.
...
avcodec_set_dimensions should be used for size changes to ensure
compatibility with future changes.
avctx->width/avctx->height may not be set to display-only dimensions.
Even more so since vc1dec.c would later set coded_width/height based
on this.
coded_width/coded_height should be used instead of width/height for
decoder setup.
This fixes playback of e.g. zz-mcr-nsqr.vc1 sample (containing
display width/height settings) in MPlayer and should fix a crash
with MPC: http://forum.doom9.org/showthread.php?t=162221 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-08-16 23:07:25 +02:00
Anton Khirnov
6cd9d0f77d
Revert "avconv: use stream copy by default when possible."
...
This reverts commit 4f4f33844a .
This commit has some ugly corner cases and needs to be discussed
further.
2011-08-16 20:59:14 +02:00
Anton Khirnov
ad42126abc
avconv: print stream copy information.
2011-08-16 20:24:20 +02:00
Anton Khirnov
4f4f33844a
avconv: use stream copy by default when possible.
2011-08-16 20:24:20 +02:00
Anton Khirnov
a3f2f766af
matroskaenc: vertical alignment.
2011-08-16 20:24:20 +02:00
Anton Khirnov
15c14ce6b2
matroskaenc: implement query_codec()
2011-08-16 20:24:20 +02:00
Anton Khirnov
48f9e457ea
lavf: add avformat_query_codec().
...
It allows to check if a given codec can be written into a container.
2011-08-16 20:24:20 +02:00
Anton Khirnov
bca06e77e1
lavc: add avcodec_get_type() for mapping codec_id -> type.
2011-08-16 20:24:20 +02:00
Luca Barbato
7f5bf4fbaf
flvenc: use int64_t to store offsets
...
Metadata currently is written only at the start of the file in normal
cases, when transcoding from a rtmp source metadata could be
written later and the offset recorded can exceed 32bit.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-16 20:24:20 +02:00
Anton Khirnov
5759cce70d
avconv: don't segfault on 0 input files.
2011-08-16 20:24:20 +02:00
Diogo Franco
f1f298cd32
Do not write ID3v1 tags by default
...
ID3v1 are legacy tags with several limitations; furthermore
avconv/ffmpeg writes the tags in UTF-8 which probably has near-0
software support.
Add a -write_id3v1 option to be able to turn it on; disabled by default.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-16 20:24:20 +02:00
Alex Converse
d8b999e2d0
mpegts: log into an AVFormatContext rather than MpegTSContext.
...
MpegTSContext's AVClass member can be NULL.
2011-08-16 11:09:39 -07:00
Stefano Sabatini
86ca51acb0
af_format: prefer strtok_r() over strsep()
...
strsep() is not POSIX compliant, and thus not supported on some platform.
Fix compilation on Solaris.
2011-08-16 17:00:57 +02:00
Stefano Sabatini
a719679561
lavfi: complain and exit for invalid named values in ff_parse_packing_format()
2011-08-16 17:00:49 +02:00
Michael Niedermayer
47219e1c0c
avconv: fix uninitialized variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-16 12:18:37 +02:00
Anton Khirnov
eb97dbb05a
movenc: change AV_LOG_INFO to AV_LOG_WARNING for some warnings
2011-08-16 10:34:17 +02:00
Anton Khirnov
2c81d5f4c5
avconv: remove a write-only variable
2011-08-16 06:24:01 +02:00
Anton Khirnov
40fc281087
avconv: remove pointless parameter from new_*_stream().
...
New streams are always added to the last output file.
2011-08-16 06:23:46 +02:00
Anton Khirnov
169f0647b7
avconv: cosmetics, move code
...
Move find_codec_or_die(), choose_codec(), new_output_stream() and
read_avserver_streams() below transcode() where they belong.
2011-08-16 06:23:27 +02:00
Anton Khirnov
86530f418e
avconv: cosmetics -- move copy_chapters().
...
It's only used in opt_output_file(), so move it right above
opt_output_file().
2011-08-16 06:21:32 +02:00
Anton Khirnov
f233cfed7b
avconv: cosmetics -- move parse_forced_key_frames().
...
parse_forced_key_frames() is only used in new_video_stream(), so move it
right above new_video_stream().
2011-08-16 06:21:25 +02:00
Anton Khirnov
64db1a82d6
lavc: add audio flag to the 'b' option, deprecate 'ab'.
...
Its only reason for its existence was ffmpeg's inability to properly assign
AVOptions to streams. Now this is not a problem anymore, so 'ab' should
go.
2011-08-16 06:20:43 +02:00
Anton Khirnov
f4ad238c6c
avconv: rename sameq to same_quant
...
It's often mistakenly used as 'same quality', emphasize that it's not
true in the manual.
2011-08-16 06:19:08 +02:00
Anton Khirnov
7478ab5a13
doc/avconv: add forgotten end of chapter.
2011-08-16 06:18:59 +02:00
Anton Khirnov
320d769389
Changelog: document avconv incompatibilities with ffmpeg.
2011-08-16 06:18:38 +02:00
Anton Khirnov
92f1940e99
avconv: replace -vcodec/-acodec/-scodec with a better system.
...
The new option doesn't depend on its placement wrt -new* options (which
don't exist anymore) and works in a similar way as per-stream AVOptions.
-[vas]codec remain as aliases to -codec:[vas]
2011-08-16 06:17:02 +02:00
Anton Khirnov
ff884c79ee
avconv: remove presets.
...
Nothing except x264 uses them and native x264 presets should be used
with private options.
2011-08-16 06:10:20 +02:00
Michael Niedermayer
091a24b75f
fate: more cases of avconv that should be conditional
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-16 03:38:00 +02:00
Michael Niedermayer
6322bc0b90
fate: some shells parse $11 as ${1}1
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-16 00:29:09 +02:00
Michael Niedermayer
1a34478b71
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
Fix NASM include directive
dsputil_mmx: Honor HAVE_AMD3DNOW
lavf,lavd: remove all usage of AVFormatParameters from demuxers.
jack: add 'channels' private option.
VC-1: fix reading of custom PAR.
Remove redundant and dubious video codec detection by its extradata
mpeg12: remove repeat-field code disabled since May 2002
patch checklist: suggest fate instead of regression tests
Turn on resampling on sudden size change instead of bailing out during recode.
avtools: reinitialise filter chain when input video stream changes dimensions
Conflicts:
Makefile
avconv.c
doc/developer.texi
ffplay.c
libavcodec/x86/dsputil_mmx.c
libavdevice/libdc1394.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-15 23:35:53 +02:00
Michael Niedermayer
6ae356c9a0
fate: allow specifying the tool to use for fate (avconv / ffmpeg)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-15 23:11:46 +02:00
Michael Niedermayer
d27dc69bc6
configure: fix datadir after avconv merge
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-15 22:36:13 +02:00
Dustin Brody
a3e215cdc9
svq3: propagate codec memory allocation failure in context init
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-15 21:26:34 +02:00
Dave Yeo
cc73511e8e
Fix NASM include directive
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-08-15 11:24:35 -07:00
Alex Converse
48f7163f13
dsputil_mmx: Honor HAVE_AMD3DNOW
2011-08-15 11:20:08 -07:00
Anton Khirnov
c14fe6bc99
lavf,lavd: remove all usage of AVFormatParameters from demuxers.
...
AVFormatParameters are converted into corresponding private options in
av_open_input_file/stream() compat wrappers, so accessing them from
demuxers is redundant.
2011-08-15 19:59:48 +02:00
Anton Khirnov
a7c93dae55
jack: add 'channels' private option.
...
Get rid of AVFormatParameters usage.
2011-08-15 19:56:55 +02:00
Reimar Döffinger
0e86965514
VC-1: fix reading of custom PAR.
...
Custom PAR num/denum are in 1-256 range.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-08-15 16:36:58 +02:00
Kostya Shishkov
e9fb763611
Remove redundant and dubious video codec detection by its extradata
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-08-15 14:03:01 +02:00
Dustin Brody
2bfdb34c8a
mpeg12: remove repeat-field code disabled since May 2002
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-08-15 13:03:20 +02:00
Michael Niedermayer
2dbdb309ac
patch checklist: suggest fate instead of regression tests
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-15 11:53:45 +02:00
Kostya
5c59fa56ed
Turn on resampling on sudden size change instead of bailing out during recode.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-15 11:53:45 +02:00
Kostya
428c59d911
avtools: reinitialise filter chain when input video stream changes dimensions
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-15 11:53:40 +02:00
Michael Niedermayer
95b5b525b1
h264pred_init_arm: compile hotfix
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-15 06:14:40 +02:00
Marton Balint
10b7b4a6a1
ffplay: more precise audio clock based on current time
...
Since SDL has no audio buffer fullness info, one can get a much precise audio
clock based on the last time of the audio callback and the elapsed time since.
To achieve this I introduced the audio_current_pts and audio_current_pts_drift
variables (similar to video_current_pts and video_current_pts_drift) and
calculate them in the end of the audio callback, when VideoState->audio_clock
is already updated. The reference time I use is from the start of the audio
callback, because this way the amount of time used for audio decoding is not
interfereing with calculation.
I also replaced the audio_write_get_buf_size function with a calculated
variable because when the audio frame decoding is in progress audio_buf_size
and audio_buf_index are not stable, so using them from other threads are not a
good idea.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-15 03:49:07 +02:00
Michael Niedermayer
abf6b0d1ea
af_aformat: hotfix compile due to strsep()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-15 03:35:25 +02:00
Michael Niedermayer
ee5234dd67
fate-rsync: switch to our server in preparation of h264 4:2:2 tests
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-15 00:41:23 +02:00
Baptiste Coudurier
1c967827d2
mxf: H.264/MPEG-4 AVC Intra support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-15 00:40:54 +02:00
Baptiste Coudurier
231a6df9ea
h264dec: h264: 4:2:2 intra decoding
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-15 00:39:55 +02:00
Baptiste Coudurier
9a33078b64
dsputil_mmx: fix indention
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-15 00:37:19 +02:00
Baptiste Coudurier
6e7315f4a1
mpegvideo: Fix vshift vs hshift typo
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-15 00:34:41 +02:00
Michael Niedermayer
ecaf514328
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
aacenc: Fix number of coefficients used in a LFE channel.
aacenc: Fix a segfault with grouped psymodel.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-14 19:49:11 +02:00
Michael Niedermayer
d9c9a0c767
sws: remove hScale16NX_c()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-14 19:34:48 +02:00
Michael Niedermayer
66bb5cd592
sws: remove hScale16N() and use ronalds reformated version of it.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-14 19:34:48 +02:00
Michael Niedermayer
3652409f5b
sws: remove unneeded code from last merge
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-14 19:34:48 +02:00
Stefano Sabatini
b854c2a709
vf_unsharp: set default chroma size value to 5x5
...
The previous default value 0x0 was not good, since it is not even
valid.
2011-08-14 16:29:44 +02:00
Stefano Sabatini
63b61d55f9
vf_unsharp: fix out-of-buffer read
...
In apply_unsharp(), when y is >= height, prevent out-of-buffer reading
from src, read from the last buffer line in src2 instead.
The check was implemented in the original unsharp libmpcodecs code and
lost in the port.
This also fixes output discrepancy between the two filters.
2011-08-14 16:28:54 +02:00
Stefano Sabatini
6e89bdfecf
lavfi: remove delogo mp wrapper
...
The delogo filter has been natively integrated into libavfilter,
simplify.
2011-08-14 12:26:44 +02:00
Stefano Sabatini
2701f6cc6a
lavfi: port libmpcodecs delogo filter
...
The ported filter supports named option parsing and more YUV formats.
2011-08-14 12:17:10 +02:00
Mina Nagy Zaki
0a2295815d
lavfi: add aformat filter
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
2011-08-14 10:31:23 +02:00
Mina Nagy Zaki
3f07d40ea2
lavfi: add internal functions for parsing format arguments
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
2011-08-14 10:31:09 +02:00
Nathan Caldwell
24efdea7fd
aacenc: Fix number of coefficients used in a LFE channel.
...
The spec states:
* Only the lowest 12 spectral coefficients of any LFE may be non-zero
We were using the 12 lowest *bands*.
2011-08-13 19:40:33 -07:00
Nathan Caldwell
51a1d4d94a
aacenc: Fix a segfault with grouped psymodel.
...
10l: Forgot about TYPE_LFE being after TYPE_CPE. Which causes a
segfault when encoding 5.1
2011-08-13 19:37:38 -07:00
Stefano Sabatini
3560089e12
vsink_buffer: make the buffer cache all the incoming frames
...
Allow to cache more than one frame (e.g. for filters which return
more than one frame when avfilter_request_frame() is called on them),
and do not discard previously cached frames when a new one is added.
2011-08-14 02:04:19 +02:00
Stefano Sabatini
2e81bb5e92
fifo: return AVERROR(ENOMEM) rather -1 in av_fifo_realloc2()
2011-08-14 01:56:28 +02:00
Stefano Sabatini
f1b29223e6
fifo: apply misc cosmetic fixes
2011-08-14 01:56:28 +02:00
Stefano Sabatini
323b930699
fifo: add av_fifo_peek2(), and deprecate av_fifo_peek()
...
The new function provides a more flexible interface for peeking at a
FIFO buffer data.
2011-08-14 01:56:28 +02:00
Stefano Sabatini
a9d1878abe
lavdev/lavfi: correctly set the inout pad index when linking a filter to the output sink
...
In lavfi_read_header(), use the pad index designated in the inout for
linking an output to a sink, rather than always 0. Fix link creation
for filters with more than one output (e.g. the split filter).
2011-08-14 01:56:28 +02:00
Reimar Döffinger
658a8bb988
VC-1: fix reading of custom PAR.
...
Custom PAR num/denum are coded -1.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-08-14 00:05:36 +02:00
Reimar Döffinger
eb8b325202
Support streaming .au files.
...
FFmpeg writes data_size as AU_UNKNOWN_SIZE, make demuxer not
fail when data_size is set to this value.
Should fix trac issue #394 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-08-14 00:05:36 +02:00
Michael Niedermayer
ca1dfea127
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
swscale: add dithering to yuv2yuvX_altivec_real
rv34: free+allocate buffer instead of reallocating it to preserve alignment
h264: add missing brackets.
swscale: use 15-bit intermediates for 9/10-bit scaling.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-13 22:24:47 +02:00
Clément Bœsch
75af0e6a16
dv: honor timecode in DV muxer.
...
This is based on the original work by Baptiste Coudurier.
2011-08-13 19:13:03 +02:00
Clément Bœsch
b49fe589ea
mxf: honor timecode drop flag in mxf muxer if set.
2011-08-13 19:13:02 +02:00
Clément Bœsch
b33ca05b46
mxf: add cli option in mxfenc to replace GOP timecode parsing.
...
This is based on the original work by Baptiste Coudurier.
2011-08-13 19:13:02 +02:00
Clément Bœsch
4c3c6e60f9
mxf: move framenum to timecode convert to timecode helpers.
...
This is based on the original work by Baptiste Coudurier.
2011-08-13 19:13:02 +02:00
Robert Krüger
b7b72963e0
vf_unsharp: fix copy&paste error in chroma_amount param docs
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
2011-08-13 16:45:13 +02:00
Stefano Sabatini
ccd85b869d
vf_unsharp: vertically align lines, for better readability
2011-08-13 16:45:13 +02:00
Stefano Sabatini
09603dcff8
vf_unsharp: store hsub/vsub in the filter context
...
Also drop obfuscating CHROMA_WIDTH/HEIGHT macros.
2011-08-13 16:45:13 +02:00
Stefano Sabatini
53e8638205
vf_unsharp: adopt a more natural order of params in apply_unsharp()
2011-08-13 16:45:13 +02:00
Stefano Sabatini
540181f8e2
vf_unsharp: rename method "unsharpen" to "apply_unsharp"
...
More consistent with the original libmpcodecs code, and the name
"unsharpen" was confusing.
2011-08-13 16:45:13 +02:00
Michael Niedermayer
f8a1fc2623
ffmpeg: fix null pointer segfault on solaris. (ticket381)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-13 14:27:49 +02:00
Michael Niedermayer
36e0585a00
avconv: remove trailing whitespace
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-13 14:27:49 +02:00
Dominique Leuenberger
0a7164a191
set Release to 0.8.2.git. We are at 0.8.2 and a bit further.
2011-08-13 03:39:58 +02:00
Thierry Foucu
1892052f8d
mov: Set negative Sample_duration in STTS to 1
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-13 03:39:58 +02:00
Michael Niedermayer
8c6b8cb4d1
doc/avconv.texi: fixup a few ff/av references
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-13 03:31:12 +02:00
Michael Niedermayer
0cb233cf46
Merge commit 'b2c087871dafc7d030b2d48457ddff597dfd4925'
...
* commit 'b2c087871dafc7d030b2d48457ddff597dfd4925':
Move x86util.asm from libavcodec/ to libavutil/.
Move x86inc.asm to libavutil/.
APIchanges: note error_recognition in lavf
lavf: add support for error_recognition, use it in avidec, and bump minor API version
avconv: change semantics of -map
avconv: get rid of new* options.
cmdutils: allow precisely specifying a stream for AVOptions.
configure: add missing CFLAGS to fix building on the HURD
libx264: Include hint for possible values for configuring libx264
cmdutils: allow ':'-separated modifiers in option names.
avconv: make -map_metadata work consistently with the other options
avconv: remove deprecated options.
avconv: make -map_chapters accept only the input file index.
Make a copy of ffmpeg under a new name -- avconv.
ffmpeg: add a warning stating that the program is deprecated.
Add weighted motion compensation for RV40 B-frames
RV3/4: calculate B-frame motion weights once per frame
Move RV3/4-specific DSP functions into their own context
mjpeg: propagate decode errors from ff_mjpeg_decode_sos and ff_mjpeg_decode_dqt
h264: notice memory allocation failure
Conflicts:
.gitignore
Makefile
cmdutils.c
configure
doc/ffplay.texi
doc/ffprobe.texi
doc/ffserver.texi
libavcodec/libx264.c
libavformat/avformat.h
libavformat/avidec.c
libavformat/version.h
tests/lavf-regression.sh
tests/lavfi-regression.sh
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-13 02:56:08 +02:00
Michael Niedermayer
931187e117
ac3dec: export center & suroundmix levels
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-13 01:13:41 +02:00
Michael Niedermayer
c4fd1d34ca
av_get_string: search children too.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-13 01:06:16 +02:00
Michael Niedermayer
bf71fb54b5
av_get_number: also search children, this is more sane than not doing so.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-13 01:06:15 +02:00
Michael Niedermayer
7b382ab6b0
opt_find: fix segfault
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-13 01:06:15 +02:00
Luca Barbato
3304a1e69a
swscale: add dithering to yuv2yuvX_altivec_real
...
It just does that part in scalar form, I doubt using a vector store
over 2 array would speed it up particularly.
The function should be written to not use a scratch buffer.
2011-08-13 00:06:04 +02:00
Kostya Shishkov
78622ef362
rv34: free+allocate buffer instead of reallocating it to preserve alignment
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-08-12 13:49:25 -07:00
Ronald S. Bultje
28ca701e0b
h264: add missing brackets.
...
This caused failure of a few fate tests.
2011-08-12 12:32:31 -07:00
Ronald S. Bultje
28c1115a91
swscale: use 15-bit intermediates for 9/10-bit scaling.
2011-08-12 11:54:25 -07:00
Ronald S. Bultje
b2c087871d
Move x86util.asm from libavcodec/ to libavutil/.
...
This allows using it in swscale also.
2011-08-12 11:43:03 -07:00
Ronald S. Bultje
3a39195b1d
Move x86inc.asm to libavutil/.
...
This allows using it in libswscale/ also.
2011-08-12 11:43:02 -07:00
Dustin Brody
e3a70c7c5f
APIchanges: note error_recognition in lavf
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-12 19:12:53 +02:00
Dustin Brody
2f63440c59
lavf: add support for error_recognition, use it in avidec, and bump minor API version
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-12 19:10:22 +02:00
Anton Khirnov
8d2e4a7e68
avconv: change semantics of -map
...
New syntax contains an optional stream type, allowing to refer to n-th
stream of specific type.
Omitting stream number now maps all streams of the given type.
2011-08-12 19:10:22 +02:00
Anton Khirnov
3d4f0dab79
avconv: get rid of new* options.
...
They are confusing, irregular and redundant -- -map already contains all
the information. Stream maps can now be parsed in opt_output_file().
Add a more user-friendly default behavior in case no maps are present.
Breaks -programid for now, but it never worked properly anyway. A better
solution will be written soon.
2011-08-12 19:10:22 +02:00
Anton Khirnov
d4863fc1a8
cmdutils: allow precisely specifying a stream for AVOptions.
2011-08-12 18:35:12 +02:00
Michael Niedermayer
9f4d37f450
ac3enc: drop common fixed/float encoder
...
User applications should by now be able to support float encoders.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-12 17:20:57 +02:00
Pino Toscano
f60d136637
configure: add missing CFLAGS to fix building on the HURD
...
Signed-off-by: Reinhard Tartler <siretart@tauware.de >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-08-12 14:11:21 +02:00
Reinhard Tartler
69c4bee8fa
libx264: Include hint for possible values for configuring libx264
...
The output of the x264 commandline tool contains the most uptodate
description of the possible values for the -preset, -tune and -profile
options.
2011-08-12 14:09:59 +02:00
Anton Khirnov
d70e512250
cmdutils: allow ':'-separated modifiers in option names.
2011-08-12 13:51:30 +02:00
Anton Khirnov
e6e6060c9b
avconv: make -map_metadata work consistently with the other options
...
Before, it took an input and output file index, now it only takes an
input file and applies to the next output file.
Stream/chapter/program specification is now part of the option name and
the delimiter was changed from ',' to ':' to be consistent with the
similar feature for AVOptions.
2011-08-12 13:50:36 +02:00
Anton Khirnov
c9065c2917
avconv: remove deprecated options.
2011-08-12 13:30:38 +02:00
Anton Khirnov
b9aac90bd8
avconv: make -map_chapters accept only the input file index.
...
This is consistent with how all the other options work.
2011-08-12 13:30:07 +02:00
Anton Khirnov
6291d7e416
Make a copy of ffmpeg under a new name -- avconv.
...
It will be further developed with a few incompatible changes.
ffmpeg.c will stay as is for some time, so any scripts using it won't be
broken.
2011-08-12 13:27:30 +02:00
Anton Khirnov
791a86c37a
ffmpeg: add a warning stating that the program is deprecated.
2011-08-12 13:27:20 +02:00
Kostya Shishkov
b86ab38137
Add weighted motion compensation for RV40 B-frames
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-08-11 16:07:58 -07:00
Kostya Shishkov
e5ec68699e
RV3/4: calculate B-frame motion weights once per frame
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-08-11 16:07:23 -07:00
Kostya Shishkov
d241f51e0f
Move RV3/4-specific DSP functions into their own context
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-08-11 16:07:15 -07:00
Dustin Brody
21d7037234
mjpeg: propagate decode errors from ff_mjpeg_decode_sos and ff_mjpeg_decode_dqt
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-08-11 16:02:18 -07:00
Dustin Brody
bac3ab13ea
h264: notice memory allocation failure
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-08-11 15:59:07 -07:00
Michael Niedermayer
d912e449b6
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
ac3enc: add macros for option names to make them more understandable.
ac3enc: fix 'channel_coupling' option to actually allow 'auto'.
cavs: fix some crashes with invalid bitstreams
ac3enc: clip coupling coordinates during calculation
Remove incorrect info in documentation of AVCodecContext.bits_per_raw_sample.
lavc: fix parentheses placement in avcodec_open2().
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-11 20:39:20 +02:00
Michael Niedermayer
961a1a81d8
cavsdec: check run value validity
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-11 20:16:27 +02:00
Justin Ruggles
c766eb1ce1
ac3enc: add macros for option names to make them more understandable.
2011-08-11 11:33:32 -04:00
Justin Ruggles
9542ca9fb7
ac3enc: fix 'channel_coupling' option to actually allow 'auto'.
...
Use 'auto' as the default value.
2011-08-11 11:33:32 -04:00
Stefano Sabatini
4ec8685435
indevs.texi: fix typo (builf -> build)
2011-08-11 17:32:54 +02:00
Stefano Sabatini
214357341a
lavdev: add libavfilter virtual input device
...
This input device is to be considered still experimental, only video
output is supported.
2011-08-11 17:20:17 +02:00
Stefano Sabatini
e72657f83d
lavfi: remove mp test wrapper
...
The source was natively integrated into libavfilter, with the name
mptestsrc.
2011-08-11 16:19:53 +02:00
Stefano Sabatini
1a5e63f924
lavfi: port mp test source
2011-08-11 16:19:48 +02:00
Stefano Sabatini
961e8f31cf
vf_mp: sort listing of vf_info_t symbols
...
This way it's easier for the programmer to look-up for a specific
symbols (e.g. for checking if it's unused).
2011-08-11 16:19:19 +02:00
Stefano Sabatini
fe3cad0e9e
vf_select: reindent after the previous commit
2011-08-11 16:09:20 +02:00
William Yu
30ea0e47b5
vf_select: add NULL-checks in uninit
...
Fix NULL pointer dereference in case of failed initialization.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
2011-08-11 16:09:20 +02:00
Stefano Sabatini
43fab7aafc
vf_select: check for isnan when setting t from pts
2011-08-11 16:09:15 +02:00
William Yu
298fccad21
vf_select: set start_t if undefined
...
Previously start_t was never set.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
2011-08-11 16:08:55 +02:00
Mans Rullgard
4a71da0f3a
cavs: fix some crashes with invalid bitstreams
...
This removes all valgrind-reported invalid writes with one
specific test file.
Fixes http://www.ocert.org/advisories/ocert-2011-002.html
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-08-10 22:35:20 +01:00
Justin Ruggles
069083a419
ac3enc: clip coupling coordinates during calculation
...
This is faster than using the clip_coefficients() function. Also,
clipping the coordinates before determining reuse is better since it
will compare coordinates that are closer to their final encoded values.
2011-08-10 17:09:24 -04:00
Justin Ruggles
d271d5b215
Remove incorrect info in documentation of AVCodecContext.bits_per_raw_sample.
...
bits_per_raw_sample is used in video as well, where sample_fmt is not used.
2011-08-10 15:40:52 -04:00
Clément Bœsch
9acffed9e0
oggenc: add missing initializer braces to shut up gcc warning.
...
This fixes the warning:
libavformat/oggenc.c:75:7: warning: missing braces around initializer [-Wmissing-braces]
2011-08-10 21:03:39 +02:00
Clément Bœsch
df2039f573
avidec: add missing initializer braces to shut up gcc warning.
...
This fixes the warning:
libavformat/avidec.c:81:5: warning: missing braces around initializer [-Wmissing-braces]
2011-08-10 21:02:32 +02:00
Clément Bœsch
afd7e46bd4
alsa: remove too unused variables.
...
This fixes the two following warnings:
libavdevice/alsa-audio-dec.c:62:26: warning: unused variable ‘sw_params’ [-Wunused-variable]
libavdevice/alsa-audio-dec.c:109:15: warning: unused variable ‘st’ [-Wunused-variable]
2011-08-10 20:52:41 +02:00
Reimar Döffinger
0399044805
Always pass a AVFormatContext to av_log.
...
This is consistent, allows custom handlers to print more info
(since they probably know about the AVFormatContext class
but not a demuxer-specific one) and also avoids issues due
to the class pointer being NULL for non-raw mpegts.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2011-08-10 20:39:50 +02:00
Michael Niedermayer
9f06c1c61e
cavsdec: avoid possible crash with crafted input
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-10 17:29:51 +02:00
Baptiste Coudurier
1d36fb13b0
lavc: fix parentheses placement in avcodec_open2().
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-10 16:57:33 +02:00
Michael Niedermayer
a9aa88df1d
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavc: make avcodec_init() static on next bump.
ac3enc: remove unneeded #include
ac3enc: restructure coupling coordinate reuse calculation
ac3enc: allow new coupling coordinates to be sent independently for each channel.
ac3enc: separate exponent bit counting from exponent grouping.
h264: propagate error return values for AV_LOG_ERROR-triggering events
aac: Don't attempt to output configure an invalid channel configuration.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-10 16:29:51 +02:00
Michael Niedermayer
e2cc331124
NoMerge commit '4d58e4cb4ca8e04317fecea432ea3272a445877c'
...
* commit '4d58e4cb4ca8e04317fecea432ea3272a445877c':
Rename ffserver to avserver.
Rename ffprobe to avprobe.
Rename ffplay to avplay.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-10 16:29:20 +02:00
Clément Bœsch
51fb933dd0
timecode: move dropframe code and doxycomment it.
...
This is based on the original work by Baptiste Coudurier.
2011-08-10 16:00:32 +02:00
Clément Bœsch
5231454560
timecode: introduce timecode and honor it in MPEG-1/2.
...
This is based on the original work by Baptiste Coudurier.
2011-08-10 16:00:32 +02:00
Clément Bœsch
78da04384a
options: handle options with the same name in codecs and formats.
...
This will allow the incoming -timecode option to be handled in both
encoders (mpeg12enc in that case) and demuxers (dv, mxf, etc.).
2011-08-10 16:00:32 +02:00
Michael Niedermayer
6481a36010
cavs: fix oCERT #2011-002 FFmpeg/libavcodec insufficient boundary check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-10 13:28:36 +02:00
Anton Khirnov
7221139ba0
lavc: make avcodec_init() static on next bump.
...
It's called from avcodec_register() anyway, so there's no reason for it
to be public.
2011-08-10 12:49:57 +02:00
Justin Ruggles
d1d33e0763
ac3enc: remove unneeded #include
2011-08-09 16:44:34 -04:00
Justin Ruggles
fce33f9ead
ac3enc: restructure coupling coordinate reuse calculation
2011-08-09 16:44:34 -04:00
Justin Ruggles
c3d63262fe
ac3enc: allow new coupling coordinates to be sent independently for each
...
channel.
2011-08-09 16:44:34 -04:00
Justin Ruggles
d55ad59a8a
ac3enc: separate exponent bit counting from exponent grouping.
...
Move bit counting to the bit allocation function. Move exponent grouping to
after bit allocation. This will allow for adjustment of bandwidth parameters
during bit allocation without having to do exponent grouping multiple times.
2011-08-09 16:28:18 -04:00
Michael Niedermayer
0d4ea7b324
lavc: bump minor for Go2Meeting codec ID
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-09 22:11:08 +02:00
Thierry Foucu
63377695a6
AVCodecTag: Add MKTAG for Go2Meeting video codec
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-09 21:53:48 +02:00
Thierry Foucu
2a41701300
AVCodec: Add Go2Meeting codec ID
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-09 21:53:38 +02:00
Marton Balint
c369ddb720
ffplay: pass frame durations clearly to video video_refresh
...
Previously the target clock of the next frame was calculated by using video_clock
which is modified from another thread...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-09 21:53:15 +02:00
Dustin Brody
12fe759423
h264: propagate error return values for AV_LOG_ERROR-triggering events
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-08-09 12:29:13 -07:00
Alex Converse
94d47382e0
aac: Don't attempt to output configure an invalid channel configuration.
2011-08-09 12:16:40 -07:00
Anton Khirnov
4d58e4cb4c
Rename ffserver to avserver.
2011-08-09 19:56:25 +02:00
Anton Khirnov
9e12f0bf5f
Rename ffprobe to avprobe.
2011-08-09 19:56:24 +02:00
Anton Khirnov
266463daff
Rename ffplay to avplay.
2011-08-09 19:56:21 +02:00
Michael Niedermayer
3a1df52e3c
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
Pretty-print RV3/4 decoder source
Saner RV1/2 initialisation and RV2 header parsing.
Conflicts:
libavcodec/rv10.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-09 16:32:39 +02:00
Michael Niedermayer
aae1c247b1
ra288: avoid one multiply
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-09 15:08:20 +02:00
Kostya Shishkov
7351eb1415
Pretty-print RV3/4 decoder source
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-08-09 12:06:38 +02:00
Baptiste Coudurier
d5d74cf530
100l: fix parentheses placement when checking for ret < 0
2011-08-08 23:41:50 -07:00
Kostya Shishkov
9791c02733
Saner RV1/2 initialisation and RV2 header parsing.
...
Old version was based on lots of guesswork which had different hacks based on
32-bit version field instead of splitting it into major/minor/micro version.
RV2 picture header parser also had a few places where it deviated from binary
decoder.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-08-08 17:23:07 -07:00
Carl Eugen Hoyos
f8dc2e51aa
ffmpeg: fix passlogfile regression
2011-08-09 01:11:37 +02:00
Michael Niedermayer
9a5f61ac62
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
libx264: do not set pic quality if no frame is output
libx264: add preset, tune, profile and fastfirstpass private options
Conflicts:
libavcodec/libx264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-09 00:01:48 +02:00
Baptiste Coudurier
5caa2de19e
libx264: do not set pic quality if no frame is output
...
Avoids uninitialized reads.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-08 14:33:09 +02:00
Baptiste Coudurier
07a227b432
libx264: add preset, tune, profile and fastfirstpass private options
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-08-08 14:33:09 +02:00
Stefano Sabatini
640a905ece
lavfi: remove gradfun mp wrapper
...
The gradfun filter was already integrated natively in libavfilter.
Both filters issue the same output, and have a comparable performance.
See thread:
Subject: [FFmpeg-devel] [PATCH] lavfi: remove gradfun mp wrapper
Date: Fri, 5 Aug 2011 00:19:04 +0200
2011-08-07 17:43:02 +02:00
Michael Niedermayer
6c4e9cae52
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavc: fix misspelling in comment
aac: propagate error return values for AV_LOG_ERROR-triggering events
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-07 00:32:19 +02:00
Stefano Sabatini
4646ef87b1
lavfi: fix registration name for the buffersink sink
...
Previously both the buffer and buffersink elements were associated to
the "BUFFER" symbol in allfilters.c, so it was not possible to enable
one without the other.
2011-08-06 13:18:09 +02:00
Stefano Sabatini
3c56a421d8
lavfi: avoid void* arithmetic in defaults.c:set_common_formats()
...
void* pointer arithmetic semantics is undefined, use uint8_t* instead.
Also fix GCC warnings:
defaults.c: In function ‘set_common_formats’:
defaults.c:184: warning: pointer of type ‘void *’ used in arithmetic
defaults.c:189: warning: pointer of type ‘void *’ used in arithmetic
2011-08-06 13:18:09 +02:00
Mina Nagy Zaki
a8dcf5eebb
lavfi: add asink_abuffer - audio buffer sink
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
2011-08-06 13:17:49 +02:00
Mina Nagy Zaki
3e12b5893d
lavfi: fix doxygen doc for config_props() callback
...
Update/extend documentation related to the link fields to set, and fix
a pads->filters braino.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
2011-08-06 12:14:37 +02:00
Mina Nagy Zaki
5f68a91be2
lavfi: remove default config_props() callback and refactor avfilter_config_links()
...
Link properties have to be checked after config_props() is called to
make sure everything is sane, so the default config_props() for output
links was redundant.
Also remove channel_layout check as it is now negotiated.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
2011-08-06 12:13:18 +02:00
Stefano Sabatini
4b7889453e
lavfi: remove avfilter_default_config_input_link() declaration
...
The function is not implemented (and possibly useless).
2011-08-06 12:11:12 +02:00
Dustin Brody
b2700a5c7c
lavc: fix misspelling in comment
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2011-08-05 18:18:38 -07:00
Michael Niedermayer
3e32bf3dbd
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lsws: remove optimization debug logs in sws_init_context()
lsws: use array for storing the supported in/out information
Conflicts:
libswscale/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2011-08-05 21:47:21 +02:00
Dustin Brody
680b1852ab
aac: propagate error return values for AV_LOG_ERROR-triggering events
2011-08-05 12:35:49 -07:00
Stefano Sabatini
6a92551234
lsws: remove optimization debug logs in sws_init_context()
...
The logged information is possibly false, and it tends to be outdated
after each change since the logging code needs to be manually updated.
Simplify and prevent confusing wrong debug messages.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-08-05 00:45:06 +02:00
Stefano Sabatini
347167ecf5
lsws: use array for storing the supported in/out information
...
Also remove the unnecessary isSupportedIn/Out macros.
Make the code more compact/readable, and simplify the access to
lsws-specific pixel format information.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-08-05 00:44:11 +02:00
Mans Rullgard
5bcdc099f3
dnxhddec: cache luma/chroma_weight*qscale tables for last qscale
2011-07-24 22:30:00 +01:00
Mans Rullgard
9dfd89b831
dnxhddec: merge ac_{index,run}_flags
...
These tables contain only a 1-bit flag each. Combining them reduces
the data size and saves some instructions in the block decode loop.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-07-24 22:29:22 +01:00
Mans Rullgard
185a2c08c5
dnxhddec: store 2*level+1 in ac_level tables
...
This is the value actually used by the decoder in speed-critical code.
The encoder uses these tables only in init code.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-07-24 22:28:57 +01:00
Mans Rullgard
b297c881d6
dnxhddec: rearrange decode_dct_block loop
...
This makes decoding a bit faster.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-07-24 22:22:18 +01:00
Mans Rullgard
9d4bbf6d4f
ac3enc: slightly faster quantize_mantissas_blk_ch()
2011-07-06 00:29:59 +01:00
Mans Rullgard
4a28e26ea4
ac3enc: NEON optimised sum_square_butterfly_float
2011-07-06 00:29:59 +01:00
Mans Rullgard
a4928cf380
ac3enc: neon optimised sum_square_butterfly_int32
2011-07-06 00:29:59 +01:00
Mans Rullgard
f507a9fe00
ac3enc: move inner loop of compute_rematrixing_strategy to ac3dsp
2011-07-06 00:29:59 +01:00