]> git.sesse.net Git - ffmpeg/log
ffmpeg
8 years agolavu: Drop the {minus,plus}1 suffix from AVComponentDescriptor fields
Vittorio Giovara [Thu, 3 Sep 2015 11:44:14 +0000 (13:44 +0200)]
lavu: Drop the {minus,plus}1 suffix from AVComponentDescriptor fields

The new fields can be accessed directly and are more intelligible.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years agolavu: Remove bit packing from AVComponentDescriptor
Vittorio Giovara [Wed, 2 Sep 2015 16:59:38 +0000 (18:59 +0200)]
lavu: Remove bit packing from AVComponentDescriptor

There is no practical benefit in having this structure elements
bit packed given the size of the structure and its usage.
Change types from uint16_t (packed) to plain int in order to simplify
modifying the structure and accessing its fields.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years agolavu: extend size of the AVPixFmtDescriptor.flags field
wm4 [Wed, 2 Sep 2015 16:59:37 +0000 (18:59 +0200)]
lavu: extend size of the AVPixFmtDescriptor.flags field

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years agoasfdec: alloc enough space for storing name in asf_read_metadata_obj
Alexandra Hájková [Wed, 2 Sep 2015 12:27:42 +0000 (14:27 +0200)]
asfdec: alloc enough space for storing name in asf_read_metadata_obj

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agomov: Allow more than one keyframe per trun
Martin Storsjö [Wed, 2 Sep 2015 10:05:45 +0000 (13:05 +0300)]
mov: Allow more than one keyframe per trun

The previous restriction was partially designed to fix certain
(broken) samples from bug 215. There should be no restriction on the
number of keyframes per fragment or trun.

The spec suggests that all frames lacking MOV_FRAG_SAMPLE_FLAG_IS_NON_SYNC
are key frames, but we require the flag MOV_FRAG_SAMPLE_FLAG_DEPENDS_YES
to be unset as well. This works for (possibly broken) media that never
sets the NON_SYNC flag and should also be correct for any spec-compliant
file.

For files that never set either of the flags, all samples are marked
as keyframes.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agodxtory: Unify and rework the decoding routines
Luca Barbato [Thu, 3 Sep 2015 14:44:27 +0000 (16:44 +0200)]
dxtory: Unify and rework the decoding routines

Do not make many assumption on the dimension of the slices and just
try to decode additional lines if there is enough data left.

Decodes all the samples kindly provided by ultramage.

8 years agocheckasm: add unit tests for v210enc
Henrik Gramner [Sat, 5 Sep 2015 23:06:12 +0000 (01:06 +0200)]
checkasm: add unit tests for v210enc

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoriff: Add AVj2 fourcc for Avid jpeg2000
Vittorio Giovara [Fri, 4 Sep 2015 12:31:04 +0000 (14:31 +0200)]
riff: Add AVj2 fourcc for Avid jpeg2000

8 years agodxtory: Factorize the buffer loading
Luca Barbato [Thu, 3 Sep 2015 14:13:04 +0000 (16:13 +0200)]
dxtory: Factorize the buffer loading

And the checks nearby it.

8 years agodxtory: Factorize slice size checks
Luca Barbato [Thu, 3 Sep 2015 14:13:04 +0000 (16:13 +0200)]
dxtory: Factorize slice size checks

They are always the same.

8 years agofraps: increase vlc nb_bits
Michael Niedermayer [Wed, 2 Sep 2015 12:22:18 +0000 (14:22 +0200)]
fraps: increase vlc nb_bits

Sample-Id: fraps_bug_huff.avi
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years agohuffman: allow specifying nb_bits to ff_huff_build_tree()
Michael Niedermayer [Wed, 2 Sep 2015 12:22:17 +0000 (14:22 +0200)]
huffman: allow specifying nb_bits to ff_huff_build_tree()

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agohuffman: increase bits constant
Michael Niedermayer [Wed, 2 Sep 2015 12:22:16 +0000 (14:22 +0200)]
huffman: increase bits constant

Bug-ID: ffmpeg ticket 2593

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agohuffman: use a named identifer for the bits constant
Michael Niedermayer [Wed, 2 Sep 2015 12:22:15 +0000 (14:22 +0200)]
huffman: use a named identifer for the bits constant

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agomux: Make sure that the data is actually written
Sean McGovern [Thu, 27 Aug 2015 04:04:16 +0000 (00:04 -0400)]
mux: Make sure that the data is actually written

And forward the error if it is not.

Bug-Id: 881

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agofile: properly forward errors from file_read() and file_write()
Sean McGovern [Thu, 27 Aug 2015 04:04:15 +0000 (00:04 -0400)]
file: properly forward errors from file_read() and file_write()

Bug-Id: 881

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agompegvideo: Drop a stray error message
Luca Barbato [Wed, 2 Sep 2015 11:55:47 +0000 (13:55 +0200)]
mpegvideo: Drop a stray error message

The condition is not a failure.

8 years agoDXV decoder
Vittorio Giovara [Wed, 26 Aug 2015 09:31:41 +0000 (11:31 +0200)]
DXV decoder

Support all DXDI and DXD3 normal quality videos.

8 years agolavc: Add a lzf decompressor
Luca Barbato [Wed, 26 Aug 2015 09:31:40 +0000 (11:31 +0200)]
lavc: Add a lzf decompressor

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years agobuild: Skip libvpx.h if libvpx is not enabled
Luca Barbato [Mon, 31 Aug 2015 02:00:05 +0000 (04:00 +0200)]
build: Skip libvpx.h if libvpx is not enabled

8 years agotools: Drop a stale header
Luca Barbato [Mon, 31 Aug 2015 00:47:10 +0000 (02:47 +0200)]
tools: Drop a stale header

8 years agodnxhddata: Double frame_size for cid 1260
Michael Niedermayer [Sun, 30 Aug 2015 14:46:16 +0000 (16:46 +0200)]
dnxhddata: Double frame_size for cid 1260

Despite '417792' being reported in the binary decoder, the buffer at
encoding time needs to be bigger to avoid running out of space due to
interlace handling.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years agodes: Add missing include
Vittorio Giovara [Sat, 29 Aug 2015 19:15:19 +0000 (21:15 +0200)]
des: Add missing include

8 years agoismindex: Use the correct abs() version
Vittorio Giovara [Sat, 29 Aug 2015 19:17:16 +0000 (21:17 +0200)]
ismindex: Use the correct abs() version

8 years agolavr: Remove unused label
Vittorio Giovara [Sat, 29 Aug 2015 19:20:47 +0000 (21:20 +0200)]
lavr: Remove unused label

8 years agolibfdk-aacdec: Remove unused variable
Vittorio Giovara [Sat, 29 Aug 2015 19:21:49 +0000 (21:21 +0200)]
libfdk-aacdec: Remove unused variable

8 years agobuild: Add support for travis CI
Federico Tomassetti [Thu, 13 Aug 2015 18:13:48 +0000 (20:13 +0200)]
build: Add support for travis CI

It is useful to support a future staging branch and to have an
automated consistency check on github pull requests.

8 years agoBump major versions of all libraries
Vittorio Giovara [Tue, 28 Jul 2015 13:30:36 +0000 (14:30 +0100)]
Bump major versions of all libraries

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years agoPostpone API-incompatible changes until the next bump
Vittorio Giovara [Tue, 28 Jul 2015 13:30:35 +0000 (14:30 +0100)]
Postpone API-incompatible changes until the next bump

8 years agolavu: Drop deprecated private lls functions
Vittorio Giovara [Tue, 28 Jul 2015 13:30:34 +0000 (14:30 +0100)]
lavu: Drop deprecated private lls functions

Deprecated in 02/2013.

8 years agolavu: Drop deprecated context size variables
Vittorio Giovara [Tue, 28 Jul 2015 13:30:33 +0000 (14:30 +0100)]
lavu: Drop deprecated context size variables

Deprecated in 10/2012.

8 years agolavu: Drop deprecated duplicated AVFrame/AVCodecContext parameters
Vittorio Giovara [Tue, 28 Jul 2015 13:30:32 +0000 (14:30 +0100)]
lavu: Drop deprecated duplicated AVFrame/AVCodecContext parameters

Deprecated in 10/2012.

8 years agolavu: Drop deprecated AV_CPU_FLAG_MMX2 symbol
Vittorio Giovara [Tue, 28 Jul 2015 13:30:31 +0000 (14:30 +0100)]
lavu: Drop deprecated AV_CPU_FLAG_MMX2 symbol

Deprecated in 11/2012.

8 years agolavu: Drop deprecated audioconvert.h header
Vittorio Giovara [Tue, 28 Jul 2015 13:30:30 +0000 (14:30 +0100)]
lavu: Drop deprecated audioconvert.h header

Deprecated in 11/2012.

8 years agolavu: Drop deprecated av_reverse function
Vittorio Giovara [Tue, 28 Jul 2015 13:30:29 +0000 (14:30 +0100)]
lavu: Drop deprecated av_reverse function

Deprecated in 10/2012.

8 years agolavu: Drop deprecated external access to AVPixFmtDescriptor table
Vittorio Giovara [Tue, 28 Jul 2015 13:30:28 +0000 (14:30 +0100)]
lavu: Drop deprecated external access to AVPixFmtDescriptor table

Deprecated in 10/2012.

8 years agolavu: Drop deprecated old_pix_fmt.h and related code
Vittorio Giovara [Tue, 28 Jul 2015 13:30:27 +0000 (14:30 +0100)]
lavu: Drop deprecated old_pix_fmt.h and related code

Deprecated in 10/2012.

8 years agolavc: Drop deprecated deinterlace module
Vittorio Giovara [Tue, 28 Jul 2015 13:30:26 +0000 (14:30 +0100)]
lavc: Drop deprecated deinterlace module

Deprecated in 03/2013.

8 years agolavc: Drop deprecated thread opaque and codec pkt
Vittorio Giovara [Tue, 28 Jul 2015 13:30:25 +0000 (14:30 +0100)]
lavc: Drop deprecated thread opaque and codec pkt

These fields were never part of the public API.

8 years agolavc: Drop deprecated get_buffer related functions
Vittorio Giovara [Tue, 28 Jul 2015 13:30:24 +0000 (14:30 +0100)]
lavc: Drop deprecated get_buffer related functions

Deprecated in 11/2012.

8 years agolavc: Drop deprecated destruct_packet related functions
Vittorio Giovara [Tue, 28 Jul 2015 13:30:23 +0000 (14:30 +0100)]
lavc: Drop deprecated destruct_packet related functions

Deprecated in 10/2012.

8 years agolavc: Drop deprecated request_channels related functions
Vittorio Giovara [Tue, 28 Jul 2015 13:30:22 +0000 (14:30 +0100)]
lavc: Drop deprecated request_channels related functions

Deprecated in 04/2011.

8 years agolavfi: Drop deprecated AVFilterBuffer* code
Vittorio Giovara [Tue, 28 Jul 2015 13:30:21 +0000 (14:30 +0100)]
lavfi: Drop deprecated AVFilterBuffer* code

Deprecated in 11/2012.

8 years agolavfi: Drop deprecated *_count suffixed variables
Vittorio Giovara [Tue, 28 Jul 2015 13:30:20 +0000 (14:30 +0100)]
lavfi: Drop deprecated *_count suffixed variables

Deprecated in 06/2012.

8 years agolavfi: Drop deprecated public AVFilterPad struct
Vittorio Giovara [Tue, 28 Jul 2015 13:30:19 +0000 (14:30 +0100)]
lavfi: Drop deprecated public AVFilterPad struct

Deprecated in 06/2012.

8 years agolavr: Drop deprecated context reinitialization if resampling was not enabled
Vittorio Giovara [Tue, 28 Jul 2015 13:30:18 +0000 (14:30 +0100)]
lavr: Drop deprecated context reinitialization if resampling was not enabled

Deprecated in 11/2012.

8 years agosws: Drop deprecated SWS_CPU_CAPS defines
Vittorio Giovara [Tue, 28 Jul 2015 13:30:17 +0000 (14:30 +0100)]
sws: Drop deprecated SWS_CPU_CAPS defines

Deprecated in 07/2012.

8 years agocheckasm: Fix floating point arguments on 64-bit Windows
Henrik Gramner [Mon, 24 Aug 2015 20:53:56 +0000 (22:53 +0200)]
checkasm: Fix floating point arguments on 64-bit Windows

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agovf_scale: Add an option to pass the scaler params
Luca Barbato [Tue, 25 Aug 2015 21:04:12 +0000 (23:04 +0200)]
vf_scale: Add an option to pass the scaler params

Reported-By: zehan@magicpony.technology
8 years agoavconv_opt: Add an option that lists all supported hwaccels
Timothy Gu [Tue, 25 Aug 2015 23:45:21 +0000 (16:45 -0700)]
avconv_opt: Add an option that lists all supported hwaccels

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoavconv_opt: Add missing comma
Timothy Gu [Tue, 25 Aug 2015 23:49:07 +0000 (16:49 -0700)]
avconv_opt: Add missing comma

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agowebm: Explicitly select libvpx, libopus and libvorbis encoders
Luca Barbato [Sun, 9 Aug 2015 08:59:33 +0000 (10:59 +0200)]
webm: Explicitly select libvpx, libopus and libvorbis encoders

And update the preference for the newer codecs now that the libraries
seem stable and widespread enough.

Bug-Id: 695
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agonvenc: Properly free the fifos
Luca Barbato [Sun, 23 Aug 2015 23:29:59 +0000 (01:29 +0200)]
nvenc: Properly free the fifos

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agohlsenc: Support outputting specific versions
Luca Barbato [Sun, 16 Aug 2015 19:21:50 +0000 (21:21 +0200)]
hlsenc: Support outputting specific versions

Right now only version 2 and version 3 are supported.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agodnxhddata: Add tables for missing DNx100 profiles
Vittorio Giovara [Thu, 30 Jul 2015 14:55:39 +0000 (15:55 +0100)]
dnxhddata: Add tables for missing DNx100 profiles

1440x1080@8 progressive (1259) and interlaced (1260).

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years agodnxhddata: Merge a few duplicated RUN tables
Vittorio Giovara [Thu, 30 Jul 2015 14:55:38 +0000 (15:55 +0100)]
dnxhddata: Merge a few duplicated RUN tables

8 years agodnxhddata: Group together RUN-related tables
Vittorio Giovara [Thu, 30 Jul 2015 14:55:37 +0000 (15:55 +0100)]
dnxhddata: Group together RUN-related tables

This helps in finding duplicates.

8 years agodnxhddata: Merge a few duplicated DC tables
Vittorio Giovara [Thu, 30 Jul 2015 14:55:36 +0000 (15:55 +0100)]
dnxhddata: Merge a few duplicated DC tables

8 years agodnxhddata: Group together DC-related tables
Vittorio Giovara [Thu, 30 Jul 2015 14:55:35 +0000 (15:55 +0100)]
dnxhddata: Group together DC-related tables

This helps in finding duplicates.

8 years agodnxhddata: List the reused tables in a comment
Vittorio Giovara [Thu, 30 Jul 2015 14:55:34 +0000 (15:55 +0100)]
dnxhddata: List the reused tables in a comment

8 years agodnxhddata: Keep a single CID in the table names
Vittorio Giovara [Thu, 30 Jul 2015 14:55:33 +0000 (15:55 +0100)]
dnxhddata: Keep a single CID in the table names

Use a comment to list the reused tables, since it's more flexible than a
table name to keep information like this. The list will expand in later
commits.

8 years agochannel_layout: Add a 16channel default layout
Luca Barbato [Fri, 21 Aug 2015 07:02:04 +0000 (09:02 +0200)]
channel_layout: Add a 16channel default layout

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoaac: Make sure to set err on the failure path
Luca Barbato [Sun, 23 Aug 2015 09:58:47 +0000 (11:58 +0200)]
aac: Make sure to set err on the failure path

Bug-Id: CID 1308153

8 years agoxavs: Do not try to set the bitrate tolerance without a bitrate
Luca Barbato [Sun, 23 Aug 2015 15:57:21 +0000 (17:57 +0200)]
xavs: Do not try to set the bitrate tolerance without a bitrate

Avoid a division by zero.

Bug-Id: CID 1257655

8 years agoh264: Fix faulty call to avpriv_request_sample
Luca Barbato [Fri, 21 Aug 2015 23:42:19 +0000 (01:42 +0200)]
h264: Fix faulty call to avpriv_request_sample

Broken in f9ab4fe1f7c1e9d410ca5ee2c9ff8d2892aad068

8 years agoh264: Discard currently unsupported registered sei
John Högberg [Fri, 7 Aug 2015 19:30:38 +0000 (19:30 +0000)]
h264: Discard currently unsupported registered sei

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoimgutils: Fix a typo in avcodec_get_pix_fmt_loss
Luca Barbato [Tue, 18 Aug 2015 14:18:30 +0000 (16:18 +0200)]
imgutils: Fix a typo in avcodec_get_pix_fmt_loss

If the candidate does not have alpha and the source does have alpha
report the loss of alpha.

CC: libav-stable@libav.org
8 years agohevcdsp: fix a function name
Anton Khirnov [Sun, 12 Jul 2015 05:50:28 +0000 (07:50 +0200)]
hevcdsp: fix a function name

put_weighted_pred_avg should be put_unweighted_pred_avg, there is no
weighting there.

8 years agohevc: avoid invalid shifts of negative values
Anton Khirnov [Sat, 11 Jul 2015 18:19:51 +0000 (20:19 +0200)]
hevc: avoid invalid shifts of negative values

8 years agocheckasm: Explicitly declare function prototypes
Henrik Gramner [Thu, 20 Aug 2015 15:06:21 +0000 (17:06 +0200)]
checkasm: Explicitly declare function prototypes

Now we no longer have to rely on function pointers intentionally
declared without specified argument types.

This makes it easier to support functions with floating point parameters
or return values as well as functions returning 64-bit values on 32-bit
architectures. It also avoids having to explicitly cast strides to
ptrdiff_t for example.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agocheckasm: x86: properly save rdx/edx in checked_call()
Henrik Gramner [Sun, 16 Aug 2015 15:58:02 +0000 (17:58 +0200)]
checkasm: x86: properly save rdx/edx in checked_call()

If the return value doesn't fit in a single register rdx/edx can in some
cases be used in addition to rax/eax.

Doesn't affect any of the existing checkasm tests but might be useful later.

Also comment the relevant code a bit better.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agofate: test only demuxing in asf-repldata
Janne Grunau [Thu, 20 Aug 2015 12:46:42 +0000 (14:46 +0200)]
fate: test only demuxing in asf-repldata

8 years agoasfdec: prevent the memory leak in the asf_read_metada_obj
Alexandra Hájková [Thu, 13 Aug 2015 08:16:20 +0000 (10:16 +0200)]
asfdec: prevent the memory leak in the asf_read_metada_obj

also do not return the error code but just break reading
metadata object in the case of the aspect ratio reading failure

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agofate: Make sure a corner-case for ASF is covered
Alexandra Hájková [Fri, 14 Aug 2015 09:42:26 +0000 (11:42 +0200)]
fate: Make sure a corner-case for ASF is covered

Test the demuxer for the case when the replicated data length in
a sample is 0.

Sample-ID: https://samples.libav.org/mplayer-bugs/bug821/bug821-2.asf

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agohlsenc: Use AV_TIME_BASE units for all the computations
Luca Barbato [Fri, 14 Aug 2015 20:01:45 +0000 (22:01 +0200)]
hlsenc: Use AV_TIME_BASE units for all the computations

Do not risk mixing different timebases.

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agovp7: bound checking in vp7_decode_frame_header
Federico Tomassetti [Thu, 13 Aug 2015 13:35:53 +0000 (15:35 +0200)]
vp7: bound checking in vp7_decode_frame_header

CC: libav-stable@libav.org
8 years agolibfdk-aacdec: Clean up properly if the init fails
Martin Storsjö [Fri, 14 Aug 2015 08:33:03 +0000 (11:33 +0300)]
libfdk-aacdec: Clean up properly if the init fails

Previously most of the error paths leaked.

Also add FF_CODEC_CAP_INIT_THREADSAFE while adding caps_internal;
this decoder wrapper doesn't have any static data that is initialized.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agolibfdk-aacdec: Always decode into an intermediate buffer
Martin Storsjö [Fri, 14 Aug 2015 08:05:30 +0000 (11:05 +0300)]
libfdk-aacdec: Always decode into an intermediate buffer

For ADTS streams, the output format (number of channels, frame size)
can change at any point (with the latest version of fdk-aac, the decoder
seems to change format after a handful of frames, not outputting the
right format immediately, for cases that worked fine with the earlier
version of the lib).

Previously, the decoder decoded straight into the output frame once the
number of channels and frame size was known. This obviously does not
work if the number of channels or frame size changes.

The alternative would be to allocate the AVFrame with the maximum number
of channels and frame size, and change them afterward decoding into it,
but that may cause confusion to users e.g. of the get_buffer callback.
This solution should be more robust.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agolibfdk-aacdec: Bump the max number of channels to 8
Martin Storsjö [Fri, 14 Aug 2015 07:55:54 +0000 (10:55 +0300)]
libfdk-aacdec: Bump the max number of channels to 8

In the latest version of fdk-aac, the decoder can output up to 8
channels; take this into account when preallocating buffers that
need to fit the output from any packet.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoconfigure: arm: Assume softfp ABI on darwin
Martin Storsjö [Fri, 14 Aug 2015 06:47:21 +0000 (09:47 +0300)]
configure: arm: Assume softfp ABI on darwin

Don't try to detect the float ABI by checking at the toolchain
name or by trying to assemble and link files with eabi_attributes.

This fixes the float ABI detection when building using clang
with -fembed-bitcode, where the current eabi_attributes check
accidentally passes.

This issue was pointed out by James Howe <james.howe@hp.com>.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agox86inc: Various minor backports from x264
Henrik Gramner [Tue, 11 Aug 2015 18:56:24 +0000 (20:56 +0200)]
x86inc: Various minor backports from x264

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agomovenc: Add a new flag for writing global sidx indexes for dash
Martin Storsjö [Sun, 9 Aug 2015 20:11:55 +0000 (23:11 +0300)]
movenc: Add a new flag for writing global sidx indexes for dash

The double meaning of the faststart flag (moving a moov atom
to the start of files, making them streamable, for non-fragmented
files, vs inserting a global sidx index at the start of files
for fragmented files) is confusing - see 40ed1cbf1 for
explanation of its origins.

Since the second meaning of the flag hasn't been part of any
libav release yet, just rename it to get rid of the confusion
without any extra deprecation (which wouldn't get rid of the
potential confusion, of users adding -movflags faststart
even for fragmented files, where it isn't needed for making
them "streamable").

This gets back the old behaviour, where -movflags faststart
doesn't have any effect for fragmented files.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agox86inc: Drop SECTION_TEXT macro
Henrik Gramner [Sat, 1 Aug 2015 15:27:36 +0000 (17:27 +0200)]
x86inc: Drop SECTION_TEXT macro

The .text section is already 16-byte aligned by default on all supported
platforms so `SECTION_TEXT` isn't any different from `SECTION .text`.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agox86inc: Disable vpbroadcastq workaround in newer yasm versions
Henrik Gramner [Sat, 1 Aug 2015 15:27:35 +0000 (17:27 +0200)]
x86inc: Disable vpbroadcastq workaround in newer yasm versions

The bug was fixed in 1.3.0, so only perform the workaround in earlier versions.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agox86inc: Fix instantiation of YMM registers
Christophe Gisquet [Sat, 1 Aug 2015 15:27:34 +0000 (17:27 +0200)]
x86inc: Fix instantiation of YMM registers

Signed-off-by: Henrik Gramner <henrik@gramner.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agox86inc: warn when instructions incompatible with current cpuflags are used
Anton Mitrofanov [Sat, 1 Aug 2015 15:27:33 +0000 (17:27 +0200)]
x86inc: warn when instructions incompatible with current cpuflags are used

Signed-off-by: Henrik Gramner <henrik@gramner.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agox86inc: Support arbitrary stack alignments
Henrik Gramner [Sat, 1 Aug 2015 15:27:32 +0000 (17:27 +0200)]
x86inc: Support arbitrary stack alignments

Change ALLOC_STACK to always align the stack before allocating stack space for
consistency. Previously alignment would occur either before or after allocating
stack space depending on whether manual alignment was required or not.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agox86inc: warn if XOP integer FMA instruction emulation is impossible
Anton Mitrofanov [Sat, 1 Aug 2015 15:27:31 +0000 (17:27 +0200)]
x86inc: warn if XOP integer FMA instruction emulation is impossible

Emulation requires a temporary register if arguments 1 and 4 are the same; this
doesn't obey the semantics of the original instruction, so we can't emulate
that in x86inc.

Also add pmacsdql emulation.

Signed-off-by: Henrik Gramner <henrik@gramner.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agocheckasm: Remove unnecessary include
Henrik Gramner [Wed, 5 Aug 2015 21:27:41 +0000 (23:27 +0200)]
checkasm: Remove unnecessary include

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agox86: dcadsp: Avoid SSE2 instructions in SSE functions
Henrik Gramner [Sat, 1 Aug 2015 15:10:22 +0000 (17:10 +0200)]
x86: dcadsp: Avoid SSE2 instructions in SSE functions

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agomovenc: Place the sidx index after the initial moov/mdat pair
Martin Storsjö [Sun, 9 Aug 2015 19:40:39 +0000 (22:40 +0300)]
movenc: Place the sidx index after the initial moov/mdat pair

For fragmented files with non-empty moov, with a fragment index
(sidx), place the index after the initial moov/mdat pair.

Previously, for this pathological case, the index was written
at the start of the file.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agomovenc: Rename reserved_moov_pos to reserved_header_pos
Martin Storsjö [Sun, 9 Aug 2015 19:39:28 +0000 (22:39 +0300)]
movenc: Rename reserved_moov_pos to reserved_header_pos

The same field is also used for writing the sidx index header,
for fragmented files, when the faststart flag is used.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agomovenc: Check that frag_info entries exist in mov_write_sidx_tag
Martin Storsjö [Sun, 9 Aug 2015 19:36:25 +0000 (22:36 +0300)]
movenc: Check that frag_info entries exist in mov_write_sidx_tag

This fixes crashes with pathological cases when trying to write
a sidx index (via the -movflags faststart option, in combination
with fragmenting options), when no fragments actually have been
written. (This is possible if the empty_moov flag isn't used,
so that all actual packet data is written in the moov/mdat pair,
and no moof/mdat pairs have been written.)

In these pathological cases, no sidx should be written at all.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agocosmetics: Drop spurious spaces from if clauses
Paolo Bizzarri [Fri, 7 Aug 2015 19:55:28 +0000 (21:55 +0200)]
cosmetics: Drop spurious spaces from if clauses

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoh264: Do not print an error when the buffer has to be refilled
Luca Barbato [Thu, 6 Aug 2015 09:55:48 +0000 (11:55 +0200)]
h264: Do not print an error when the buffer has to be refilled

Partially amends 9469370fb32679352e66826daf77bdd2e6f067b5

8 years agoh264: Use AVERROR return codes instead of -1
Jake Sebastian-Jones [Wed, 5 Aug 2015 06:15:39 +0000 (16:15 +1000)]
h264: Use AVERROR return codes instead of -1

And report why it fails.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoasf: Use time_t where needed
Luca Barbato [Tue, 4 Aug 2015 19:40:04 +0000 (21:40 +0200)]
asf: Use time_t where needed

gmtime takes a time_t not an uint64_t.

8 years agoasfdec: read values properly
Alexandra Hájková [Tue, 4 Aug 2015 10:46:27 +0000 (12:46 +0200)]
asfdec: read values properly

The length of BOOL values is 16 bits in the Metadata Object but
32 bits in the Extended Content Description Object.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoconfigure: Silence error messages when probing compiler
Shiz [Mon, 3 Aug 2015 10:44:44 +0000 (12:44 +0200)]
configure: Silence error messages when probing compiler

On Xcode's clang on OS X, $cc --version will output a 'Configured with:'
line to stderr, which clobbers the configure script output. As this line
serves no further purpose, it should be silenced.

The same applies to apple-gcc 4.2.1, which complains that it can not
understand the kernel version it is running on.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agodrawtext: Move the strftime expansion in a separate function
Luca Barbato [Sat, 1 Aug 2015 09:22:11 +0000 (11:22 +0200)]
drawtext: Move the strftime expansion in a separate function

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>