Reimar Döffinger [Mon, 24 Jan 2011 18:35:20 +0000 (19:35 +0100)]
Use av_fast_malloc instead of av_realloc.
This should be faster, is less code and fixes issue 2524
(allocation error would lead to crash).
(cherry picked from commit e7b95918fca1c3d057d35f77ba58ee2d00d03151)
Martin Storsjö [Sun, 23 Jan 2011 21:39:02 +0000 (23:39 +0200)]
applehttp: Fix the key check in handle_variant_args
The key string is supposed to contain the equals character,
too. Since the checked string was wrong, and the return value
check was wrong too, it incorrectly seemed to work right before.
Stefano Sabatini [Sun, 23 Jan 2011 01:06:59 +0000 (02:06 +0100)]
Do not set audio_resample to 0 if audio_sync_method is > 1.
If audio_sync_method is >1 the resampler is used for audio drift
compensation, and do_audio_out() was causing an assert failure because
audio_resample was not set.
Fix issue 2516, which was introduced by SVN r25939.
Mans Rullgard [Sun, 23 Jan 2011 01:24:46 +0000 (01:24 +0000)]
Sanitise get_bits macros, part 1
Some of the macros in get_bits.h include a final semicolon,
some do not. This removes these or adds do {} while(0) around
the macros as appropriate and adds semicolons where needed in
calling code.
Mans Rullgard [Sun, 23 Jan 2011 01:18:13 +0000 (01:18 +0000)]
Remove "libmpeg2" bitstream reader
Using the libmpeg2 reader causes errors in a multitude of places,
including MPEG and H264 codecs. As the advantage of this reader
is questionable, removing it seems the sensible course of action,
especially considering the simplifications this allows elsewhere
with the bit cache size increasing from 17 to 25 bits as minimum.
Ronald S. Bultje [Sat, 22 Jan 2011 14:42:56 +0000 (14:42 +0000)]
Fix crash on resolution change (issue 2393).
Don't free RBSP tables (containing decoded NAL units) on resolution
change, because we actually need this data to decode the frame after
reiniting (with new resolution). Fixed issue 2393.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
Mans Rullgard [Thu, 20 Jan 2011 02:04:54 +0000 (02:04 +0000)]
Make LOCAL_ALIGNED macro fully C99 compatible
C99 variadic macros require more arguments than there are named
parameters in the definition. This means we must use an extra
indirection to avoid having two different macros for arrays with
one resp more than one dimension.
Mike Scheutzow [Sat, 15 Jan 2011 16:11:55 +0000 (16:11 +0000)]
streamid does not work with newaudio, newvideo, newsubtitle
fixes issue2465.
The problem is that the ffmpeg (the app) -streamid option did not work
with -newaudio/-newvideo/-newsubtitle.
The cause was a conflict between the feature where streamid values were
reset to default for each output filename, and the implementation of
-new*, which requires that the -new* option be specified after the
target filename.
My patch changes the ffmpeg behavior so that user-specified streamid
values apply to all the following output files on the command line
(rather than just the next output filename.)
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
Anton Khirnov [Sat, 22 Jan 2011 01:00:13 +0000 (02:00 +0100)]
mp3enc: handle errors in id3v2_put_ttag
make the initialization of put clearer
this are the differences between
[FFmpeg-devel] [PATCH 1/3] mp3enc: add support for writing UTF-16 tags
and the already applied 187e23478bc5c066ff8eef562925471ac179644e
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
Mans Rullgard [Fri, 21 Jan 2011 21:31:21 +0000 (21:31 +0000)]
fate: make lavfi tests output only md5
Instead of saving huge raw files, use the md5: output pseudo-protocol
to calculate the checksum of the file directly. This is especially
useful when testing on remote targets as it avoids transferring 3.6GB
over the network.
Anssi Hannula [Fri, 21 Jan 2011 20:00:40 +0000 (20:00 +0000)]
dca: consider a stream with XXCh/X96 in ExSS as DTS-HD HRA
DTS-HD HRA streams do not always have an XBR extension in the extension
substream. Instead they can have only XXCh and X96 extensions in
there and still be considered DTS-HD HRA.
This is also confirmed with Onkyo TX-SR607 receiver which recognizes
such a stream as HiRes Audio.
Mans Rullgard [Fri, 21 Jan 2011 19:58:23 +0000 (19:58 +0000)]
configure: better test for mktemp
Some variants of mktemp require a template, so provide one when
checking for the command. We already supply a template in the
subsequent uses of mktemp.
Set service_provider and service_name in mpegts demuxer
Set service_provider and service_name in mpegts demuxer, previously
name and provider_name were set but since the muxer uses service_provider
and service_name use them.
Anton Khirnov [Thu, 20 Jan 2011 08:06:58 +0000 (09:06 +0100)]
id3v2: don't overwrite existing tags
Apparently some broken taggers prepend a new ID3v2 tag leaving the
existing one intact. Our parser currently reads all tags and overwrites
existing values with supposedly outdated ones.
This patch adds support in mpegts muxer for using service_provider and
service_name metadata to set service_provider_name and service_name
fields in SDT.
Ronald S. Bultje [Thu, 20 Jan 2011 01:30:18 +0000 (20:30 -0500)]
Fix horizontal/horizontal_up 8x8l intra prediction x86/simd functions.
The original functions did not work correctly for edge pixels, e.g.
when CODEC_FLAG_EMU_EDGE is set, leading to corrupt output in e.g. VLC.
Based on a patch by Daniel Kang <daniel d kang gmail com>.
Signed-off-by: Ronald S. Bultje <rsbultje gmail com>
Mans Rullgard [Sun, 16 Jan 2011 18:42:36 +0000 (18:42 +0000)]
ARM: improve VFP ABI check
Recent gcc versions define __ARM_PCS or __ARM_PCS_VFP to indicate the
VFP ABI in use, and ARM RVCT defines __SOFTFP__ when using this ABI.
If none of these are defined, check $cross_prefix and $cc for the
substring "hardfloat", and finally fall back to a linker test. This
gives the correct result in most configurations.
Mans Rullgard [Fri, 15 Oct 2010 10:31:58 +0000 (11:31 +0100)]
Use -Bsymbolic for shared libs only, not executables
Some linkers fail if this flag is used when creating an executable file.
Since the flag is meaningful only for shared libraries, dropping it from
the main link flags is correct.