ffmpeg.git
8 years agomathops: change "g" constraint to "rm" in x86-32 version of MUL64().
Justin Ruggles [Tue, 15 Mar 2011 17:35:05 +0000 (13:35 -0400)]
mathops: change "g" constraint to "rm" in x86-32 version of MUL64().

The 1-arg imul instruction cannot take an immediate argument, only a register
or memory argument.

8 years agomathops: convert MULL/MULH/MUL64 to inline functions rather than macros.
Justin Ruggles [Tue, 15 Mar 2011 17:30:24 +0000 (13:30 -0400)]
mathops: convert MULL/MULH/MUL64 to inline functions rather than macros.

This fixes unexpected name collisions that were occurring with variables
declared within the macros.
It also fixes the fate-acodec-ac3_fixed regression test on x86-32.

8 years agoUse AVERROR_EXIT with url_interrupt_cb.
Nicolas George [Sat, 12 Mar 2011 23:42:27 +0000 (00:42 +0100)]
Use AVERROR_EXIT with url_interrupt_cb.

Functions interrupted by url_interrupt_cb should not be restarted.
Therefore using AVERROR(EINTR) was wrong, as it did not allow to distinguish
when the underlying system call was interrupted and actually needed to be
restarted.

This fixes roundup issues 2657 and 2659 (ffplay not exiting for streamed
content).

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoAdd AVERROR_EXIT.
Nicolas George [Sat, 12 Mar 2011 23:42:26 +0000 (00:42 +0100)]
Add AVERROR_EXIT.

This is different from AVERROR(EINTR) because calls that fail with EINTR
should usually be restarted.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoavio: deprecate url_ferror
Anton Khirnov [Mon, 14 Mar 2011 19:38:55 +0000 (20:38 +0100)]
avio: deprecate url_ferror

AVIOContext.error should be used directly instead.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agolavf/utils: dont't explicitly check AVIOContext.error
Anton Khirnov [Mon, 14 Mar 2011 19:38:54 +0000 (20:38 +0100)]
lavf/utils: dont't explicitly check AVIOContext.error

The error should be caught in write_packet()/write_trailer()

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoh264_mp4toannexb_bsf: Fix spurious warning when stream has SPS and PPS units.
Philip Langdale [Tue, 15 Mar 2011 05:14:22 +0000 (22:14 -0700)]
h264_mp4toannexb_bsf: Fix spurious warning when stream has SPS and PPS units.

Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoDelete MAINTAINERS file
Mans Rullgard [Mon, 14 Mar 2011 17:15:34 +0000 (17:15 +0000)]
Delete MAINTAINERS file

This file is a bad idea and also badly outdated.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoac3enc: add SIMD-optimized shifting functions for use with the fixed-point AC3 encoder.
Justin Ruggles [Fri, 11 Mar 2011 21:45:01 +0000 (16:45 -0500)]
ac3enc: add SIMD-optimized shifting functions for use with the fixed-point AC3 encoder.

8 years agoac3enc: do not right-shift fixed-point coefficients in the final MDCT stage.
Justin [Fri, 11 Mar 2011 18:03:26 +0000 (13:03 -0500)]
ac3enc: do not right-shift fixed-point coefficients in the final MDCT stage.

This increases the accuracy of coefficients, leading to improved quality.
Rescaling of the coefficients to full 25-bit accuracy is done rather than
offsetting the exponent values. This requires coefficient scaling to be done
before determining the rematrixing strategy. Also, the rematrixing strategy
calculation must use 64-bit math to prevent overflow due to the higher
precision coefficients.

8 years agomm decoder: move buffer allocation from decode_init() to decode_frame()
Peter Ross [Sun, 13 Mar 2011 05:27:05 +0000 (16:27 +1100)]
mm decoder: move buffer allocation from decode_init() to decode_frame()

This permits playback in ffplay when libavfilter is enabled.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agojv demuxer: prevent video packet size overflow
Peter Ross [Sun, 13 Mar 2011 05:15:38 +0000 (16:15 +1100)]
jv demuxer: prevent video packet size overflow

In the event of overflow, the JV_PADDING state will avio_skip over
any overflow bytes (using JVFrame.total_size).

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agojv demuxer: define JV_PREAMBLE_SIZE instead of hard coding the number
Peter Ross [Sat, 12 Mar 2011 02:31:40 +0000 (13:31 +1100)]
jv demuxer: define JV_PREAMBLE_SIZE instead of hard coding the number

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agojv demuxer: calculate palette_size for each frame in read_header
Peter Ross [Sat, 12 Mar 2011 02:31:26 +0000 (13:31 +1100)]
jv demuxer: calculate palette_size for each frame in read_header

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoBitmap Brothers JV errata
Peter Ross [Tue, 8 Mar 2011 15:11:10 +0000 (02:11 +1100)]
Bitmap Brothers JV errata

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoBitmap Brothers JV demuxer
Peter Ross [Thu, 10 Mar 2011 12:29:22 +0000 (23:29 +1100)]
Bitmap Brothers JV demuxer

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoBitmap Brothers JV video decoder
Peter Ross [Thu, 10 Mar 2011 12:23:25 +0000 (23:23 +1100)]
Bitmap Brothers JV video decoder

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoUpdate the url to the site website and change ffmpeg-devel to libav-devel
Johan Andersson [Sun, 13 Mar 2011 22:29:19 +0000 (23:29 +0100)]
Update the url to the site website and change ffmpeg-devel to libav-devel

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agodoc: document applehttp protocol
Luca Barbato [Wed, 9 Mar 2011 09:11:53 +0000 (10:11 +0100)]
doc: document applehttp protocol

The documentation might be extended once/if a live/store override option
will have to be provided for non-compliant segmenter.

8 years agoVP8: fix other function declaration
Jason Garrett-Glaser [Sat, 12 Mar 2011 23:30:18 +0000 (15:30 -0800)]
VP8: fix other function declaration

Was missed in 3efbe137.

8 years agoVC1: Export profile/level
Hendrik Leppkes [Fri, 11 Mar 2011 22:12:04 +0000 (23:12 +0100)]
VC1: Export profile/level

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoffmpeg: remove unused variable in ffmpeg_exit()
Stefano Sabatini [Sat, 12 Mar 2011 11:17:52 +0000 (11:17 +0000)]
ffmpeg: remove unused variable in ffmpeg_exit()

Fix the warning:
ffmpeg.c: In function ‘ffmpeg_exit’:
ffmpeg.c:509: warning: unused variable ‘j’

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoVP8: optimize VP8Context struct ordering
Jason Garrett-Glaser [Fri, 11 Mar 2011 21:43:10 +0000 (13:43 -0800)]
VP8: optimize VP8Context struct ordering

Shaves at least 3KB off code size on x86, should improve cache utilization.
This would probably be useful to do for other decoders/encoders as well.

8 years agoVP8: fix function declaration
Jason Garrett-Glaser [Thu, 10 Mar 2011 03:53:52 +0000 (19:53 -0800)]
VP8: fix function declaration

8 years agoVP8: token probs doesn't need padding
Jason Garrett-Glaser [Thu, 10 Mar 2011 03:54:05 +0000 (19:54 -0800)]
VP8: token probs doesn't need padding

prob[0] is the only prob array ever accessed, so prob[1] can serve as padding
for prob[0].

8 years agoVP8: use a goto to break out of two loops
Jason Garrett-Glaser [Wed, 9 Mar 2011 21:46:23 +0000 (13:46 -0800)]
VP8: use a goto to break out of two loops

A break statement was supposed to break out of two loops, but only broke out of one.
Didn't affect output, just could have been marginally slower.

8 years agoAdd CONFIG_AC3DSP symbol to simplify makefiles
Mans Rullgard [Fri, 11 Mar 2011 23:37:00 +0000 (23:37 +0000)]
Add CONFIG_AC3DSP symbol to simplify makefiles

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoconfigure: use pkg-config helpers
Mans Rullgard [Sun, 6 Mar 2011 13:50:21 +0000 (13:50 +0000)]
configure: use pkg-config helpers

This makes existing pkg-config uses as well as the libsdl checks
use the new pkg-config helper functions, which should be more
robust against broken systems.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoconfigure: improve pkg-config support
Mans Rullgard [Sun, 6 Mar 2011 13:48:30 +0000 (13:48 +0000)]
configure: improve pkg-config support

This adds helper functions for checking packages with pkg-config
and managing the associated flags.

Note that pkg-config use is still discouraged due to widespread
poor practices resulting in broken flags in many situations.  A
few badly designed packages require flags only obtainable using
pkg-config, and these functions are intended for those cases.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoconfigure: allow checking multiple functions in check_func_headers()
Mans Rullgard [Mon, 7 Mar 2011 02:49:55 +0000 (02:49 +0000)]
configure: allow checking multiple functions in check_func_headers()

This makes it possible to pass a space-separated list of functions
to check_func_headers and check_lib2.  If any function is missing,
none are enabled as available, so this should only be used for
all-or-nothing sets, i.e. groups in which none will be used if any
one is missing.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoAdd one more avc intra fourcc and extend the description
Benjamin Larsson [Wed, 9 Mar 2011 09:55:20 +0000 (10:55 +0100)]
Add one more avc intra fourcc and extend the description

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoExport profiles from the mpeg2 video decoder
Benjamin Larsson [Thu, 10 Mar 2011 10:29:56 +0000 (11:29 +0100)]
Export profiles from the mpeg2 video decoder

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoid3v2: fix typo in error message
Anton Khirnov [Mon, 7 Mar 2011 22:32:05 +0000 (22:32 +0000)]
id3v2: fix typo in error message

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoaacenc: Fix a segfault in search_for_quantizers
Nathan Caldwell [Tue, 8 Mar 2011 08:22:14 +0000 (01:22 -0700)]
aacenc: Fix a segfault in search_for_quantizers

This reverts the removal of scoefs from AACEncContext.
It resulted in scoefs being a NULL pointer when
search_for_quantizers() is called.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoavio: deprecate url_feof
Anton Khirnov [Mon, 7 Mar 2011 20:50:25 +0000 (21:50 +0100)]
avio: deprecate url_feof

AVIOContext.eof_reached should be used directly instead.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agompegts: add all stream languages into metadata
Anssi Hannula [Thu, 17 Feb 2011 15:26:34 +0000 (17:26 +0200)]
mpegts: add all stream languages into metadata

This is used at least on some older DVB broadcasts for dual-mono audio
tracks.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoIn retry_transfer_wrapper, do not check url_interrupt_cb, causes problems
Baptiste Coudurier [Fri, 4 Mar 2011 22:43:02 +0000 (23:43 +0100)]
In retry_transfer_wrapper, do not check url_interrupt_cb, causes problems
when writing and pressing q during encoding. Instead, check url_interrupt_cb
at the end.

Note that when a protocol is interrupted by url_interrupt_cb, some data may
be silently discarded: the protocol context is not suitable for anything
anymore.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoFlag DVB subtitles for the hard hearing appropriately using their component_type id.
Hendrik Leppkes [Sun, 20 Feb 2011 01:38:23 +0000 (02:38 +0100)]
Flag DVB subtitles for the hard hearing appropriately using their component_type id.

This is based on the component_type definition in the DVB SI spec [1].

[1]: http://www.dvb.org/technology/standards/a038_DVB-SI_dEN300468v1.12.1.pdf

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agompegtsenc: handle multiple language tags per stream
Anssi Hannula [Thu, 17 Feb 2011 15:26:35 +0000 (17:26 +0200)]
mpegtsenc: handle multiple language tags per stream

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agolavf: update documentation of AVOutputFormat.flags
Anssi Hannula [Mon, 14 Feb 2011 17:14:53 +0000 (19:14 +0200)]
lavf: update documentation of AVOutputFormat.flags

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoreindent.
Ronald S. Bultje [Mon, 7 Mar 2011 18:18:57 +0000 (13:18 -0500)]
reindent.

8 years agoavio: move ff_rewind_with_probe_data from avio.h to avio_internal.h
Anton Khirnov [Sun, 6 Mar 2011 19:08:30 +0000 (20:08 +0100)]
avio: move ff_rewind_with_probe_data from avio.h to avio_internal.h

also change its prefix to ffio

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoavio: deprecate url_fget_max_packet_size
Anton Khirnov [Sun, 6 Mar 2011 17:04:49 +0000 (18:04 +0100)]
avio: deprecate url_fget_max_packet_size

AVIOContext.max_packet_size should be used directly instead.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoaacenc: remove the data arrays
Young Han Lee [Fri, 18 Feb 2011 00:33:11 +0000 (09:33 +0900)]
aacenc: remove the data arrays

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agolavf: document the use of multiple entries in language metadata tag
Anssi Hannula [Mon, 28 Feb 2011 18:30:03 +0000 (20:30 +0200)]
lavf: document the use of multiple entries in language metadata tag

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoaac_latm_dec: use aac context and aac m4ac
Thadeu Lima de Souza Cascardo [Tue, 1 Mar 2011 12:46:12 +0000 (09:46 -0300)]
aac_latm_dec: use aac context and aac m4ac

When decoding latm config, use the corresponding aac context and its
m4ac instead of using NULL and a local variable. This fixes decoding of
audio in MPEG TS from SBTVD (the Brazillian Digital TV Sytem), when
there is no extradata. This is the case when using the decoder with
gst-ffmpeg and a GStreamer mpegts demuxer.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoac3enc: add some assertions
Justin Ruggles [Fri, 4 Mar 2011 17:12:01 +0000 (12:12 -0500)]
ac3enc: add some assertions

8 years agoac3enc: use av_assert2() instead of assert() to make debugging easier.
Justin Ruggles [Fri, 4 Mar 2011 17:11:03 +0000 (12:11 -0500)]
ac3enc: use av_assert2() instead of assert() to make debugging easier.

8 years agocosmetics: rename ff_fmt_convert_init_ppc() to ff_fmt_convert_init_altivec().
Justin Ruggles [Sat, 5 Mar 2011 03:51:51 +0000 (22:51 -0500)]
cosmetics: rename ff_fmt_convert_init_ppc() to ff_fmt_convert_init_altivec().

It only has Altivec functions and is not compiled if Altivec is disabled.

8 years agoFix compilation on powerpc with --disable-altivec.
Carl Eugen Hoyos [Sat, 5 Mar 2011 03:05:16 +0000 (22:05 -0500)]
Fix compilation on powerpc with --disable-altivec.

8 years agoAdd audio codec 0x1600 (ADTS AAC)
Peter Ross [Sun, 6 Mar 2011 11:05:04 +0000 (22:05 +1100)]
Add audio codec 0x1600 (ADTS AAC)

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoavio: avio_ prefix for url_fsize
Anton Khirnov [Fri, 4 Mar 2011 18:57:36 +0000 (19:57 +0100)]
avio: avio_ prefix for url_fsize

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoavio: deprecate url_fgetc and remove all it uses
Anton Khirnov [Sun, 6 Mar 2011 18:59:29 +0000 (19:59 +0100)]
avio: deprecate url_fgetc and remove all it uses

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoavio: deprecate url_fgets
Anton Khirnov [Sun, 6 Mar 2011 17:04:46 +0000 (18:04 +0100)]
avio: deprecate url_fgets

It's not used anywhere and doesn't look ver useful to be public.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoavio: add avio_skip macro
Peter Ross [Thu, 3 Mar 2011 11:37:05 +0000 (22:37 +1100)]
avio: add avio_skip macro

This is a substitute for the url_fskip function that was deprecated by
commit 0300db8ad778a194b4a8ec98f6da3de5b41c46ee. avio_fskip is provided to
improve demuxer code readability. It distinguishes the act of skipping over
unknown or irrelevant bytes from the standard avio_seek operation.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoh264_mp3toannexb_bsg: don't crash, but warn, if PPS/SPS not found.
Sean McGovern [Fri, 4 Mar 2011 03:22:43 +0000 (22:22 -0500)]
h264_mp3toannexb_bsg: don't crash, but warn, if PPS/SPS not found.

Should an AVC-1 in MP4 stream not contain SPS or PPS NAL units,
this BSF is then unable to allocate an output buffer for the
modified stream. Warn that the resulting stream may be unplayable.

Fix roundup issue #2386.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoAdd Apple HTTP Live Streaming protocol handler
Martin Storsjö [Thu, 22 Jul 2010 07:30:15 +0000 (10:30 +0300)]
Add Apple HTTP Live Streaming protocol handler

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoURLProtocol: Add URL_PROTOCOL_FLAG_NESTED_SCHEME
Martin Storsjö [Mon, 28 Feb 2011 13:39:36 +0000 (15:39 +0200)]
URLProtocol: Add URL_PROTOCOL_FLAG_NESTED_SCHEME

If this flag is set, the protocol can handle URLs where the
scheme is a nested scheme such as applehttp+file: - the protocol
can handle any URL where the first segment of the nested scheme
belongs to this protocol.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoURLProtocol: Add a flags field
Martin Storsjö [Mon, 28 Feb 2011 13:39:17 +0000 (15:39 +0200)]
URLProtocol: Add a flags field

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoyadif: add parens around macro parameters
Mans Rullgard [Thu, 24 Feb 2011 21:25:53 +0000 (21:25 +0000)]
yadif: add parens around macro parameters

This fixes compilation with preprocessors which do not add whitespace
around replaced tokens, resulting in invalid expressions like 1--1.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoac3enc: add num_rematrixing_bands to AC3EncodeContext and use it instead of the hardc...
Justin Ruggles [Fri, 4 Mar 2011 21:41:49 +0000 (16:41 -0500)]
ac3enc: add num_rematrixing_bands to AC3EncodeContext and use it instead of the hardcoded value.

Currently it is always 4, but this change will allow it to be adjusted when
bandwidth-related features are added such as channel coupling, enhanced
channel coupling, and spectral extension.

8 years agoac3: define AC3_MAX_CPL_BANDS and use it in ac3dec.h
Justin Ruggles [Fri, 4 Mar 2011 21:25:17 +0000 (16:25 -0500)]
ac3: define AC3_MAX_CPL_BANDS and use it in ac3dec.h

8 years agoavio: add avio_tell macro as a replacement for url_ftell
Anton Khirnov [Thu, 3 Mar 2011 19:11:45 +0000 (20:11 +0100)]
avio: add avio_tell macro as a replacement for url_ftell

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agolavf: deprecate get_strz() in favor of avio_get_str
Anton Khirnov [Wed, 2 Mar 2011 16:48:45 +0000 (17:48 +0100)]
lavf: deprecate get_strz() in favor of avio_get_str

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoavio: add avio_get_str()
Reimar Döffinger [Thu, 3 Mar 2011 12:51:55 +0000 (13:51 +0100)]
avio: add avio_get_str()

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoavio: fix fourcc if any character is >=0x80.
Ronald S. Bultje [Fri, 4 Mar 2011 13:33:49 +0000 (08:33 -0500)]
avio: fix fourcc if any character is >=0x80.

Fixes issue 2638.

8 years agovp3-mt: fix deadlock when first frame is not a keyframe.
Ronald S. Bultje [Wed, 2 Mar 2011 17:15:07 +0000 (12:15 -0500)]
vp3-mt: fix deadlock when first frame is not a keyframe.

8 years agothreads: allow thread count of zero
Mans Rullgard [Wed, 2 Mar 2011 13:08:15 +0000 (13:08 +0000)]
threads: allow thread count of zero

This moves setting the thread count to a minimum of 1 to
frame_thread_init(), allowing a value of zero to propagate
through to the codec if frame threading is not used.  This
makes auto-threads work in libx264.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agovc1: fix decoding when end sequence is present
Baptiste Coudurier [Wed, 2 Mar 2011 11:17:33 +0000 (11:17 +0000)]
vc1: fix decoding when end sequence is present

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoffmpeg: Use av_pkt_dump_log2
Martin Storsjö [Thu, 24 Feb 2011 08:08:07 +0000 (10:08 +0200)]
ffmpeg: Use av_pkt_dump_log2

This makes dumped packet timestamps proper for streams with
timebases other than AV_TIME_BASE.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agolibavformat: Add av_pkt_dump{, _log}2, taking an AVStream parameter
Martin Storsjö [Thu, 24 Feb 2011 08:08:06 +0000 (10:08 +0200)]
libavformat: Add av_pkt_dump{, _log}2, taking an AVStream parameter

This removes a fixme issue, by allowing the av_pkt_dump functions
to use the correct time base.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoaviobuf: Write new data at s->buf_end in fill_buffer
Martin Storsjö [Sat, 26 Feb 2011 23:02:32 +0000 (01:02 +0200)]
aviobuf: Write new data at s->buf_end in fill_buffer

In most cases, s->buf_ptr will be equal to s->buf_end when
fill_buffer is called, but this may not always be the case, if
we're seeking forward by reading (permitted by the short seek
threshold).

If fill_buffer is writing to s->buf_ptr instead of s->buf_end (when
they aren't equal and s->buf_ptr is ahead of s->buffer), the data
between s->buf_ptr and s->buf_end is overwritten, leading to
inconsistent buffer content. This could return incorrect data if
later seeking back into the area before the current s->buf_ptr.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agomovenc: use correct tag for dvcpro hd
Baptiste Coudurier [Tue, 1 Mar 2011 23:54:29 +0000 (23:54 +0000)]
movenc: use correct tag for dvcpro hd

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agodnxhd: allow encoding with Avid Nitris compatibility.
Baptiste Coudurier [Tue, 1 Mar 2011 23:50:25 +0000 (23:50 +0000)]
dnxhd: allow encoding with Avid Nitris compatibility.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agomovenc: fix tkhd height for imx
Baptiste Coudurier [Tue, 1 Mar 2011 23:36:48 +0000 (23:36 +0000)]
movenc: fix tkhd height for imx

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoavio: deprecate url_fskip
Anton Khirnov [Mon, 28 Feb 2011 13:57:56 +0000 (14:57 +0100)]
avio: deprecate url_fskip

avio_seek should be used instead

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agolavf: replace all uses of url_fskip with avio_seek
Anton Khirnov [Mon, 28 Feb 2011 13:57:55 +0000 (14:57 +0100)]
lavf: replace all uses of url_fskip with avio_seek

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoavio: avio_ prefix for url_fseek
Anton Khirnov [Mon, 28 Feb 2011 13:57:54 +0000 (14:57 +0100)]
avio: avio_ prefix for url_fseek

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agohuffyuv: Add multithreading support
Alexander Strange [Thu, 17 Feb 2011 08:44:25 +0000 (03:44 -0500)]
huffyuv: Add multithreading support

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agopthreads: Fix bug introduced with thread_safe_callbacks
Alexander Strange [Thu, 17 Feb 2011 08:25:00 +0000 (03:25 -0500)]
pthreads: Fix bug introduced with thread_safe_callbacks

For intra codecs, ff_thread_finish_setup() is called before decoding starts
automatically. However, get_buffer can only be used before it's called, so
adding this requirement broke frame threading for them. Fixed by moving the
call until after get_buffer is finished.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoUse --sysroot flag for clang
Mans Rullgard [Sun, 27 Feb 2011 23:34:38 +0000 (23:34 +0000)]
Use --sysroot flag for clang

Although not documented, clang does support the --sysroot flag, and it
does the right thing.  Use this flag intead of -isysroot which only
applies to header file searches, not the linker.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoARM: VP8: fix build on systems with global symbol prefix
Mans Rullgard [Sat, 26 Feb 2011 18:05:53 +0000 (18:05 +0000)]
ARM: VP8: fix build on systems with global symbol prefix

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoARM: fix vp8 neon with pic enabled
Mans Rullgard [Sat, 26 Feb 2011 18:04:53 +0000 (18:04 +0000)]
ARM: fix vp8 neon with pic enabled

The assembler emits literal pools too far from the load instructions,
so we must do it explicitly at a suitable location.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoconfigure: document FATE_SAMPLES env var in --help text
Reimar Döffinger [Sat, 26 Feb 2011 11:50:35 +0000 (11:50 +0000)]
configure: document FATE_SAMPLES env var in --help text

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agofate: get samples location from env var if not explicitly set
Mans Rullgard [Sat, 26 Feb 2011 11:51:18 +0000 (11:51 +0000)]
fate: get samples location from env var if not explicitly set

Use the FATE_SAMPLES environment variable if samples location
is not set with the --samples configure option or on the make
command line.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agomovenc: remove uses of deprecated API.
Ronald S. Bultje [Fri, 25 Feb 2011 22:41:00 +0000 (17:41 -0500)]
movenc: remove uses of deprecated API.

Replace put_tag() with ffio_wfourcc() and ByteIOContext with AVIOContext.

8 years agostore pasp atom for all types of quicktime movie
Maksym Veremeyenko [Tue, 15 Feb 2011 10:44:08 +0000 (12:44 +0200)]
store pasp atom for all types of quicktime movie

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoreindent after tapt patch
Maksym Veremeyenko [Fri, 25 Feb 2011 15:42:56 +0000 (17:42 +0200)]
reindent after tapt patch

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agouse tapt atom for sample aspect ratio
Maksym Veremeyenko [Fri, 25 Feb 2011 15:41:55 +0000 (17:41 +0200)]
use tapt atom for sample aspect ratio

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agobink: prevent overflows within binkidct by using int-sized intermediate array
Peter Ross [Sun, 13 Feb 2011 03:37:20 +0000 (14:37 +1100)]
bink: prevent overflows within binkidct by using int-sized intermediate array

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agobink: decode audio track identifiers into AVStream.id
Peter Ross [Sun, 20 Feb 2011 02:15:38 +0000 (13:15 +1100)]
bink: decode audio track identifiers into AVStream.id

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoBink version 'b' audio decoder
Peter Ross [Sun, 20 Feb 2011 01:25:05 +0000 (12:25 +1100)]
Bink version 'b' audio decoder

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agobinkaudio: simplify frame_len_bits and frame_len calculation
Peter Ross [Sun, 20 Feb 2011 01:24:48 +0000 (12:24 +1100)]
binkaudio: simplify frame_len_bits and frame_len calculation

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agobinkaudio: remove unnecessary loop
Peter Ross [Sun, 20 Feb 2011 01:24:38 +0000 (12:24 +1100)]
binkaudio: remove unnecessary loop

decode_init sets bands[0] == 2, so this loop always sets the band table
index (k) to zero.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agobinkaudio: perform band table scaling in decode_init
Peter Ross [Sun, 20 Feb 2011 01:24:25 +0000 (12:24 +1100)]
binkaudio: perform band table scaling in decode_init

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agobink: set audio stream codec_tag such that binkaudio decoder can identify bitstream...
Peter Ross [Sun, 20 Feb 2011 01:24:09 +0000 (12:24 +1100)]
bink: set audio stream codec_tag such that binkaudio decoder can identify bitstream version

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agobink: use LOCAL_ALIGNED for aligned stack data
Mans Rullgard [Fri, 25 Feb 2011 14:52:23 +0000 (14:52 +0000)]
bink: use LOCAL_ALIGNED for aligned stack data

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agodxva2: define required feature selection macros
Kyle [Sat, 19 Feb 2011 00:42:11 +0000 (00:42 +0000)]
dxva2: define required feature selection macros

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoOS/2: lxlite should use stdout
Dave Yeo [Fri, 25 Feb 2011 04:19:32 +0000 (04:19 +0000)]
OS/2: lxlite should use stdout

This causes lxlite to use stdout instead of vioXXX
functions. This improves fate and build logs readability.
Affects OS/2 only.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoavio: deprecate put_tag
Anton Khirnov [Thu, 24 Feb 2011 06:36:05 +0000 (07:36 +0100)]
avio: deprecate put_tag

it's not used internally anymore and shouldn't be public.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>