6 years agoh264: copy nal_length_size in update_thread_context
Anton Khirnov [Sun, 12 Apr 2015 17:08:23 +0000 (19:08 +0200)]
h264: copy nal_length_size in update_thread_context

It does not make sense to copy is_avc without copying this as well. This
patch should not change anything for now, but will have an effect in
later commits.

6 years agoh264: drop a comment that carries no useful information
Anton Khirnov [Mon, 6 Apr 2015 19:02:17 +0000 (21:02 +0200)]
h264: drop a comment that carries no useful information

6 years agoh264: move freeing the escaped RBSP buffer to free_context()
Anton Khirnov [Mon, 6 Apr 2015 19:00:42 +0000 (21:00 +0200)]
h264: move freeing the escaped RBSP buffer to free_context()

It does not logically belong in free_tables(), since it's not allocated
in alloc_tables() and its size has nothing to do with the frame size.

6 years agoh264: eliminate ff_h264_set_parameter_from_sps()
Anton Khirnov [Mon, 6 Apr 2015 18:33:58 +0000 (20:33 +0200)]
h264: eliminate ff_h264_set_parameter_from_sps()

That function currently does two things -- reinitializing the DSP
contexts and setting low_delay based on the SPS values.

The former more appropriately belongs in h264_slice_header_init(), while
the latter only really makes sense in decode_slice_header().

The third call to ff_h264_set_parameter_from_sps(), done immediately
after parsing a new SPS, appears to serve no useful purpose, so it is
just dropped.

Also, drop now unneeded H264Context.cur_chroma_format_idc.

6 years agoh264: move context reinit lower down in update_thread_context()
Anton Khirnov [Mon, 6 Apr 2015 18:05:37 +0000 (20:05 +0200)]
h264: move context reinit lower down in update_thread_context()

It uses some fields from the SPS, which is not yet set where the reinit
is called currently.

6 years agoh264: move the DPB init/uninit to init_context()/free_context()
Anton Khirnov [Sun, 5 Apr 2015 18:51:00 +0000 (20:51 +0200)]
h264: move the DPB init/uninit to init_context()/free_context()

Currently, the DPB is initialized in alloc_tables() and uninitialized in
free_tables(), but those functions manage frame size-dependent
variables, so DPB management does not logically belong in there.

Since we want the init/uninit to happen exactly once per the context
lifetime, init_context()/free_context() are the proper place for this

6 years agoh264: drop H264Context.ouputed_poc
Anton Khirnov [Sun, 5 Apr 2015 06:49:47 +0000 (08:49 +0200)]
h264: drop H264Context.ouputed_poc

It is only set, but never used for anything.

6 years agoh264: drop needs_realloc
Anton Khirnov [Tue, 31 Mar 2015 08:10:42 +0000 (10:10 +0200)]
h264: drop needs_realloc

It is not needed anymore since switching to refcounted frames.

6 years agoavresample: Reallocate the internal buffer to the correct size
Luca Barbato [Mon, 27 Apr 2015 23:55:10 +0000 (01:55 +0200)]
avresample: Reallocate the internal buffer to the correct size

Fixes the corner case in which the internal buffer size
is larger than input buffer provided and resizing it
before moving the left over samples would make it write
to now unallocated memory.

Bug-Id: 825
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agompegts: Update the PSI/SI table only if the version change
John Högberg [Tue, 28 Apr 2015 08:20:33 +0000 (10:20 +0200)]
mpegts: Update the PSI/SI table only if the version change

If a PAT is finished while a PMT section filter is opened but
not yet finished, the PMT section filter is closed and all
the received data is discarded.

This is usually not an issue but some multiplexers (With very
quick PAT/PMT repetition settings) consistently emit a PMT
section start, then a PAT, and then the rest of the PMT,
causing the aforementioned behavior to result in no PMT being

In the most pathologic situation the stream information are lost
and the probe fallback miscategorizes subtitles as mp3 audio.

Avoid the issue through eliminating redundant PSI/SI table
updates by checking their version field, which is required by
the standard to be incremented on every change no matter how

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agoh263: Convert function to macro
Vittorio Giovara [Tue, 28 Apr 2015 09:38:29 +0000 (10:38 +0100)]
h263: Convert function to macro

6 years agoh263: Drop commented-out code and a related otherwise unused function
Vittorio Giovara [Tue, 28 Apr 2015 09:38:28 +0000 (10:38 +0100)]
h263: Drop commented-out code and a related otherwise unused function

6 years agojpeglsenc: Mark codec as init-thread-safe and init-cleanup
Vittorio Giovara [Fri, 24 Apr 2015 15:59:33 +0000 (16:59 +0100)]
jpeglsenc: Mark codec as init-thread-safe and init-cleanup

Fixes a memory leak on init failure.

6 years agojpeglsenc: Check memory allocations
Vittorio Giovara [Fri, 24 Apr 2015 15:59:32 +0000 (16:59 +0100)]
jpeglsenc: Check memory allocations

Convert exisiting free functions to av_freep() to avoid accidental
double frees, and always intialize all buffers to NULL.

6 years agoflacenc: Move a scratch buffer to struct used by the function
Vittorio Giovara [Tue, 28 Apr 2015 14:50:39 +0000 (15:50 +0100)]
flacenc: Move a scratch buffer to struct used by the function

This avoids allocating/freeing memory at every function call,
checking its return value, and carrying the error around.

6 years agovaapi: Fix -Wimplicit-function-declaration for ff_dlog() usage
Rico Tzschichholz [Thu, 23 Apr 2015 13:30:01 +0000 (14:30 +0100)]
vaapi: Fix -Wimplicit-function-declaration for ff_dlog() usage

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agodss_sp: use lowercase codec name without whitespace
Andreas Cadhalpun [Wed, 22 Apr 2015 12:42:08 +0000 (14:42 +0200)]
dss_sp: use lowercase codec name without whitespace

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
6 years agolibxvid: Make codec use the init-cleanup flag and mark it as init-thread-safe
Vittorio Giovara [Mon, 6 Apr 2015 23:47:18 +0000 (01:47 +0200)]
libxvid: Make codec use the init-cleanup flag and mark it as init-thread-safe

This takes care of memory leaks on init error.

6 years agolibx264: Make codec use the init-cleanup flag and mark it as init-thread-safe
Vittorio Giovara [Mon, 6 Apr 2015 23:47:18 +0000 (01:47 +0200)]
libx264: Make codec use the init-cleanup flag and mark it as init-thread-safe

This takes care of memory leaks on init error.

6 years agolclenc: Mark codec as init-thread-safe and init-cleanup
Vittorio Giovara [Mon, 6 Apr 2015 23:47:18 +0000 (01:47 +0200)]
lclenc: Mark codec as init-thread-safe and init-cleanup

6 years agohqx: Mark codec as init-thread-safe and init-cleanup
Vittorio Giovara [Mon, 6 Apr 2015 22:40:37 +0000 (00:40 +0200)]
hqx: Mark codec as init-thread-safe and init-cleanup

6 years agohuffyuvenc: Mark codec as init-thread-safe and init-cleanup
Vittorio Giovara [Mon, 6 Apr 2015 23:47:18 +0000 (01:47 +0200)]
huffyuvenc: Mark codec as init-thread-safe and init-cleanup

6 years agoasvenc: Mark codec as init-thread-safe and init-cleanup
Vittorio Giovara [Mon, 6 Apr 2015 23:48:12 +0000 (01:48 +0200)]
asvenc: Mark codec as init-thread-safe and init-cleanup

6 years agohq_hqa: Fix table data for profile 17
Vittorio Giovara [Thu, 23 Apr 2015 10:29:53 +0000 (11:29 +0100)]
hq_hqa: Fix table data for profile 17

The table had a wrong table height and was missing the first line of bytes.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
6 years agoriff: Add GMP4 fourcc for mpeg4
Vittorio Giovara [Thu, 23 Apr 2015 12:25:20 +0000 (13:25 +0100)]
riff: Add GMP4 fourcc for mpeg4

6 years agoriff: Add GLV4 fourcc for mpeg4
Vittorio Giovara [Tue, 21 Apr 2015 12:10:00 +0000 (13:10 +0100)]
riff: Add GLV4 fourcc for mpeg4

6 years agointernal: Make dlog/tlog a no-op when disabled
Vittorio Giovara [Tue, 21 Apr 2015 12:24:18 +0000 (13:24 +0100)]
internal: Make dlog/tlog a no-op when disabled

Improves Coverity analysis, avoiding "double semicolon" CIDs.

6 years agortsp: Make sure we don't write too many transport entries into a fixed-size array
Martin Storsjö [Fri, 24 Apr 2015 09:38:09 +0000 (12:38 +0300)]
rtsp: Make sure we don't write too many transport entries into a fixed-size array

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpenc_jpeg: Handle case of picture dimensions not dividing by 8
Andrey Utkin [Fri, 10 Apr 2015 21:54:10 +0000 (00:54 +0300)]
rtpenc_jpeg: Handle case of picture dimensions not dividing by 8

This fixes the calculation of the number of needed blocks to make
sure that ALL pixels are represented by the result.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortsp: Don't warn about unparsed time ranges
Martin Storsjö [Wed, 22 Apr 2015 20:15:58 +0000 (23:15 +0300)]
rtsp: Don't warn about unparsed time ranges

This removes the error logging added in 4e54432164.

This avoids warnings about "Invalid interval start specification 'now'"
for live rtsp streams.

We only try to parse some of the many valid values for time ranges
in RTSP - the other ones are fully valid but not interesting for the
use case in rtsp.c, so we shouldn't warn about them.

(Parsing the time ranges is needed to allow seeking, but e.g. setting
the current realtime clock for the start time doesn't make sense.
av_parse_time has got a different mode for parsing absolute times
as well, which can handle the special case "now", but that doesn't
make much sense for this particular use in rtsp.c.)

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agofate: Fix test name for pixfmts tests
Timothy Gu [Mon, 20 Apr 2015 03:37:43 +0000 (20:37 -0700)]
fate: Fix test name for pixfmts tests

The last pixel format gets leaked as `$test` further down the pipeline.

See for example https://fate.libav.org/x86_32-netbsd-clang-no-inline-asm/20150420020104
Note the odd test names like “yuvj444p.”

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agoprores: Set the bits_per_coded_sample for alpha pix_fmt
Luca Barbato [Wed, 22 Apr 2015 18:50:10 +0000 (20:50 +0200)]
prores: Set the bits_per_coded_sample for alpha pix_fmt

Improve the compatibility with other software.

6 years agohq_hqa: Validate get_vlc2 return value
Luca Barbato [Tue, 21 Apr 2015 12:42:21 +0000 (14:42 +0200)]
hq_hqa: Validate get_vlc2 return value

The `hq_ac_vlc.table` is incomplete, so unaccounted symbol return -1
as value.

6 years agoavcodec: Free the default avoptions on init failure
Luca Barbato [Tue, 21 Apr 2015 16:17:38 +0000 (18:17 +0200)]
avcodec: Free the default avoptions on init failure

6 years agoavcodec: Unref the dummy buffer on the fail path
Luca Barbato [Tue, 21 Apr 2015 12:26:36 +0000 (14:26 +0200)]
avcodec: Unref the dummy buffer on the fail path

6 years agobuffersrc: Use the correct deallocation function
Federico Tomassetti [Mon, 20 Apr 2015 19:12:05 +0000 (20:12 +0100)]
buffersrc: Use the correct deallocation function

This correction was suggested to me by Michael Niedermayer

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agodrawtext: Add an alpha option
Luca Barbato [Sat, 11 Apr 2015 17:04:25 +0000 (19:04 +0200)]
drawtext: Add an alpha option

And document both `draw` and `alpha`.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agolog: Print a full backtrace along with error messages under Valgrind
Vittorio Giovara [Mon, 20 Apr 2015 13:44:32 +0000 (14:44 +0100)]
log: Print a full backtrace along with error messages under Valgrind

Useful to understand where and in what execution state a certain message
is generated. It is enabled only when optimizations are disabled, since
function names are not printed otherwise.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
6 years agohq_hqa: Fix reading hqa quantization matrix index
Vittorio Giovara [Mon, 20 Apr 2015 11:06:01 +0000 (12:06 +0100)]
hq_hqa: Fix reading hqa quantization matrix index

Value is stored as a byte.

6 years agohqxdsp.h: #include "stddef.h"
Vittorio Giovara [Mon, 20 Apr 2015 18:11:49 +0000 (19:11 +0100)]
hqxdsp.h: #include "stddef.h"

It is required by ptrdiff_t, fixes make checkheaders.

6 years agolavf: Fix variables constness in ff_iso8601_to_unix_time()
Vittorio Giovara [Mon, 20 Apr 2015 11:18:38 +0000 (12:18 +0100)]
lavf: Fix variables constness in ff_iso8601_to_unix_time()

warning: assigning to
      'char *' from 'const char *' discards qualifiers

6 years agoh264_ps: Return meaningful error codes and address a memory leak
Vittorio Giovara [Mon, 20 Apr 2015 12:01:59 +0000 (13:01 +0100)]
h264_ps: Return meaningful error codes and address a memory leak

Bug-Id: CID 1026763

6 years agoffv1: Pass correct pointers to av_free()
Diego Biurrun [Mon, 20 Apr 2015 11:58:45 +0000 (13:58 +0200)]
ffv1: Pass correct pointers to av_free()

Bug-Id: CID 1295124

6 years agofate: Omit the results if the test passed
Timothy Gu [Fri, 10 Apr 2015 17:36:03 +0000 (10:36 -0700)]
fate: Omit the results if the test passed

The FATE server does not report this information anyway and omitting
it makes the successful run send much less data.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agormenc: Drop the temporary buffer for ac3 byteswap
Luca Barbato [Sat, 21 Mar 2015 14:38:37 +0000 (15:38 +0100)]
rmenc: Drop the temporary buffer for ac3 byteswap

Use direcly avio_w8().

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agoogg: Forward errors further
Luca Barbato [Sat, 21 Mar 2015 15:34:39 +0000 (16:34 +0100)]
ogg: Forward errors further

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agoflac: fix realloc loop with invalid flac files
Thomas Guillem [Thu, 16 Apr 2015 16:33:31 +0000 (18:33 +0200)]
flac: fix realloc loop with invalid flac files

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agodashenc: Add a publishTime field in dynamic manifests
Martin Storsjö [Fri, 17 Apr 2015 21:01:02 +0000 (00:01 +0300)]
dashenc: Add a publishTime field in dynamic manifests

This field is mandatory in dynamic manifests.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agojack: Check memory allocation
Federico Tomassetti [Sun, 19 Apr 2015 11:28:58 +0000 (12:28 +0100)]
jack: Check memory allocation

Bug-Id: CID 1265785
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
6 years agobuffersrc: Fix resource leak on error
Federico Tomassetti [Mon, 23 Feb 2015 17:55:53 +0000 (17:55 +0000)]
buffersrc: Fix resource leak on error

Bug-Id: CID 1267902
CC: libav-stable@libav.org
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
6 years agoavplay: Free frame and graph when memory allocation fails
Federico Tomassetti [Sun, 19 Apr 2015 10:43:14 +0000 (11:43 +0100)]
avplay: Free frame and graph when memory allocation fails

Bug-Id: CID 1291564
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
6 years agog2meet: Support G2M5 codec variant
Eric Zimmerman [Fri, 17 Apr 2015 12:39:01 +0000 (13:39 +0100)]
g2meet: Support G2M5 codec variant

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
6 years agofiltfmts: Avoid null pointer dereference
Himangi Saraogi [Fri, 3 Apr 2015 14:12:11 +0000 (19:42 +0530)]
filtfmts: Avoid null pointer dereference

6 years agoavutil: remove pointless bmi1 define
James Almer [Sat, 18 Apr 2015 23:12:54 +0000 (20:12 -0300)]
avutil: remove pointless bmi1 define

Signed-off-by: James Almer <jamrial@gmail.com>
6 years agoaacdec: consistently use avctx for logging in decode_eld_specific_config
Andreas Cadhalpun [Thu, 16 Apr 2015 14:58:32 +0000 (16:58 +0200)]
aacdec: consistently use avctx for logging in decode_eld_specific_config

ac may be NULL and then accessing ac->avctx results in a segmentation fault.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
6 years agompegvideo_enc: Simplify picture allocation
Vittorio Giovara [Wed, 15 Apr 2015 14:16:13 +0000 (15:16 +0100)]
mpegvideo_enc: Simplify picture allocation

6 years agomotion_est: Fix warning from zero_cmp() assignment
Vittorio Giovara [Tue, 14 Apr 2015 11:32:06 +0000 (13:32 +0200)]
motion_est: Fix warning from zero_cmp() assignment

warning: incompatible
      pointer types assigning to 'me_cmp_func' (aka 'int (*)(struct
      MpegEncContext *, uint8_t *, uint8_t *, ptrdiff_t, int)') from 'int
      (MpegEncContext *, uint8_t *, uint8_t *, int, int)'

6 years agovc1_pred: Always initialize px and py in ff_vc1_pred_mv_intfr()
Vittorio Giovara [Sun, 19 Apr 2015 22:10:07 +0000 (23:10 +0100)]
vc1_pred: Always initialize px and py in ff_vc1_pred_mv_intfr()

Fix a rather lengthy initialization warning from clang.

6 years agomov: Double-check that alias path is not an absolute path
Vittorio Giovara [Tue, 7 Apr 2015 13:06:05 +0000 (15:06 +0200)]
mov: Double-check that alias path is not an absolute path

nlvl_to and nlvl_from can be set to 1 if both alias and target files
are in the same directory, so actually check the first character of the
string. We can do this because MacOS filepaths (alis type 2) are always
converted to UNIX filepaths (alis type 18).

6 years agomov: Read alternate absolute path in dref alis
Vittorio Giovara [Tue, 7 Apr 2015 13:06:04 +0000 (15:06 +0200)]
mov: Read alternate absolute path in dref alis

Absolute paths can be stored in alis type 2 and 18 according to my research:
the first is the canonical MacOS filepath, with path level separated by
colons, and the volume name within the filepath, while the second should be the
absolute filesystem path from the mount point.

6 years agoCanopus HQ/HQA decoder
Vittorio Giovara [Thu, 9 Apr 2015 16:12:30 +0000 (18:12 +0200)]
Canopus HQ/HQA decoder

Based on work by Kostya Shishkov <kostya.shishkov@gmail.com>.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
6 years agoImplement shared parsing of INFO tag in Canopus family
Vittorio Giovara [Thu, 9 Apr 2015 16:11:10 +0000 (18:11 +0200)]
Implement shared parsing of INFO tag in Canopus family

Add some bounds checking to CLLC; reduce HQX variable scoping,
add an error message.

6 years agofate: Prefix cllc tests with canopus
Vittorio Giovara [Thu, 9 Apr 2015 16:09:01 +0000 (18:09 +0200)]
fate: Prefix cllc tests with canopus

They belong to the same family of codecs.

6 years agohqx: Implement slice-threaded decoding
Vittorio Giovara [Thu, 9 Apr 2015 17:10:45 +0000 (19:10 +0200)]
hqx: Implement slice-threaded decoding

Inspired by a patch from Ferdinand Oeinck <ferdo@demon.nl>.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
6 years agohqx: Store shareable data in main decoder context
Vittorio Giovara [Thu, 9 Apr 2015 17:06:33 +0000 (19:06 +0200)]
hqx: Store shareable data in main decoder context

In preparation for multithreaded decoding.

6 years agohqx: Move DSP related code to a separate file
Vittorio Giovara [Thu, 9 Apr 2015 16:09:32 +0000 (18:09 +0200)]
hqx: Move DSP related code to a separate file

6 years agohqx: Merge invalid format check within switch block
Vittorio Giovara [Thu, 9 Apr 2015 16:09:31 +0000 (18:09 +0200)]
hqx: Merge invalid format check within switch block

6 years agolavc: Replace av_dlog and tprintf with internal macros
Vittorio Giovara [Mon, 16 Mar 2015 08:57:36 +0000 (08:57 +0000)]
lavc: Replace av_dlog and tprintf with internal macros

6 years agoReplace av_dlog with normal av_log at trace level
Vittorio Giovara [Mon, 16 Mar 2015 08:57:35 +0000 (08:57 +0000)]
Replace av_dlog with normal av_log at trace level

This applies to every library where performance is not critical.

6 years agolog: Introduce a more verbose debug level
Vittorio Giovara [Mon, 16 Mar 2015 08:57:34 +0000 (08:57 +0000)]
log: Introduce a more verbose debug level

And deprecate av_dlog macro.

6 years agomatroskadec: fix crash when parsing invalid mkv
Thomas Guillem [Fri, 10 Apr 2015 17:04:51 +0000 (19:04 +0200)]
matroskadec: fix crash when parsing invalid mkv

CC: libav-stable@libav.org
Signed-off-by: Anton Khirnov <anton@khirnov.net>
6 years agoconfigure: Simplify avisynth check
Diego Biurrun [Tue, 17 Mar 2015 12:31:41 +0000 (13:31 +0100)]
configure: Simplify avisynth check

6 years agoavisynth: Simplify shared library name construction
Diego Biurrun [Tue, 17 Mar 2015 12:32:06 +0000 (13:32 +0100)]
avisynth: Simplify shared library name construction

6 years agox265: Map color parameters
Luca Barbato [Mon, 13 Apr 2015 08:45:51 +0000 (10:45 +0200)]
x265: Map color parameters

6 years agox264: Map color parameters
Luca Barbato [Mon, 13 Apr 2015 08:45:51 +0000 (10:45 +0200)]
x264: Map color parameters

6 years agoavisynth: Bump minimum required version to interface version 6
Stephen Hutchinson [Thu, 2 Apr 2015 19:39:26 +0000 (15:39 -0400)]
avisynth: Bump minimum required version to interface version 6

The AVSC_API changes in the new headers mean that the 2.6 alphas
are just as incompatible as 2.5 is.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
6 years agoavisynth: Fix detection of AviSynth 2.5
Stephen Hutchinson [Thu, 2 Apr 2015 19:39:25 +0000 (15:39 -0400)]
avisynth: Fix detection of AviSynth 2.5

In order to safely exit when the user tries to use AviSynth 2.5, the
continue_on_fail value for 2.6's functions need to be set to 1.
Otherwise, the library loader fails before the 'upgrade to 2.6'
log message appears.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
6 years agompeg4videodec: Remove useless messages
wm4 [Mon, 13 Apr 2015 17:35:54 +0000 (19:35 +0200)]
mpeg4videodec: Remove useless messages

They seem to sometimes trigger with old AVI files. They are just
confusing, do not help anyone, and use sloppy language.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
6 years agommal: Reference MMAL VC lib explicitly
wm4 [Mon, 13 Apr 2015 17:18:00 +0000 (19:18 +0200)]
mmal: Reference MMAL VC lib explicitly

This is optional, but ensures that linking with -Wl,--as-needed does not
drop the library containing the MMAL VC driver. The driver normally
"registers" itself in the library constructor, but since no symbols are
explicitly referenced, the linker could remove it with --as-needed

Signed-off-by: Diego Biurrun <diego@biurrun.de>
6 years agommal: Move system headers before local headers
wm4 [Mon, 13 Apr 2015 17:17:59 +0000 (19:17 +0200)]
mmal: Move system headers before local headers

Signed-off-by: Diego Biurrun <diego@biurrun.de>
6 years agoffv1: Check memory allocations
Vittorio Giovara [Thu, 9 Apr 2015 21:37:59 +0000 (23:37 +0200)]
ffv1: Check memory allocations

Signed-off-by: Diego Biurrun <diego@biurrun.de>
6 years agortsp: Fix unchecked return value
Himangi Saraogi [Thu, 9 Apr 2015 18:34:01 +0000 (00:04 +0530)]
rtsp: Fix unchecked return value

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortsp: Check a malloc return value
Himangi Saraogi [Sat, 4 Apr 2015 10:51:40 +0000 (16:21 +0530)]
rtsp: Check a malloc return value

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agolibx265: print supported presets and tunes on error
James Almer [Fri, 10 Apr 2015 19:47:03 +0000 (16:47 -0300)]
libx265: print supported presets and tunes on error

Based on code from libavcodec/libx264.c

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agolibdc1394: Unbreak build after c201069fa
Michael Kostylev [Sat, 11 Apr 2015 08:37:49 +0000 (10:37 +0200)]
libdc1394: Unbreak build after c201069fa

6 years agovfwcap: Unbreak building after c201069fa
Martin Storsjö [Fri, 10 Apr 2015 09:22:33 +0000 (12:22 +0300)]
vfwcap: Unbreak building after c201069fa

These headers can't be included in any arbitrary order.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoavdevice: Apply a more consistent file naming scheme
Diego Biurrun [Fri, 27 Mar 2015 11:40:23 +0000 (12:40 +0100)]
avdevice: Apply a more consistent file naming scheme

6 years agoavdevice: Add missing header for NULL_IF_CONFIG_SMALL
Diego Biurrun [Wed, 8 Apr 2015 15:27:42 +0000 (17:27 +0200)]
avdevice: Add missing header for NULL_IF_CONFIG_SMALL

Also reshuffle headers into canonical order where appropriate.

6 years agolibavformat: Handle error return from ff_listen_bind
Anders Nystrom [Thu, 9 Apr 2015 00:38:41 +0000 (02:38 +0200)]
libavformat: Handle error return from ff_listen_bind

Handle error return from ff_listen_bind without leaking file descriptors.

Signed-off-by: Anders Nystrom <anders.nystrom@southpole.se>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agohqx: Fix clipping error in idct put function
Ferdinand Oeinck [Tue, 7 Apr 2015 10:42:17 +0000 (12:42 +0200)]
hqx: Fix clipping error in idct put function

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
6 years agoriff: Add 'M705' FourCC for mpeg2video
Vittorio Giovara [Tue, 7 Apr 2015 10:30:16 +0000 (12:30 +0200)]
riff: Add 'M705' FourCC for mpeg2video

6 years agodnxhd: Log the selected profile id
Vittorio Giovara [Thu, 2 Apr 2015 20:56:39 +0000 (22:56 +0200)]
dnxhd: Log the selected profile id

6 years agomov: Rely on box type rather than file type for colr atom
Vittorio Giovara [Mon, 23 Mar 2015 19:43:27 +0000 (19:43 +0000)]
mov: Rely on box type rather than file type for colr atom

Although it's not allowed to use only allows 'nclc' in ISOM files, there
are samples that do not always respect this rule. This change prevents
atom overread and a spurious color range initialization.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
6 years agov210: Fix typo in header guards
Vittorio Giovara [Mon, 23 Mar 2015 20:13:43 +0000 (20:13 +0000)]
v210: Fix typo in header guards

6 years agog2meet: K&R formatting cosmetics
Diego Biurrun [Fri, 10 Oct 2014 08:52:03 +0000 (10:52 +0200)]
g2meet: K&R formatting cosmetics

6 years agomatroskadec: export cover art correctly
wm4 [Fri, 3 Apr 2015 14:11:53 +0000 (16:11 +0200)]
matroskadec: export cover art correctly

Generally, libavformat exports cover art pictures as video streams with
1 packet and AV_DISPOSITION_ATTACHED_PIC set. Only matroskadec exported
it as attachment with codec_id set to AV_CODEC_ID_MJPEG.

Obviously, this should be consistent, so change the Matroska demuxer to
export a AV_DISPOSITION_ATTACHED_PIC pseudo video stream.

Matroska muxing is probably incorrect too. I know that it can create
broken files with an audio track and just 1 video frame when e.g.
remuxing mp3 with APIC to mkv. But for now this commit does not change
anything about muxing, and also continues to write attachments with
AV_CODEC_ID_MJPEG should the muxer application have special knowledge
that the Matroska is broken in this way.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
6 years agoparseutils: Make av_small_strptime public
Luca Barbato [Sun, 5 Apr 2015 23:45:37 +0000 (01:45 +0200)]
parseutils: Make av_small_strptime public

And use it in libavformat.

Based on a similar patch by Stefano Sabatini <stefasab@gmail.com>.

6 years agoparseutils: Extend small_strptime to be used in avformat
Luca Barbato [Sun, 5 Apr 2015 23:25:52 +0000 (01:25 +0200)]
parseutils: Extend small_strptime to be used in avformat

The strptime implementation is supposed to support whitespace and %T.

6 years agosvq3: initialize some required H264Context fields.
Anton Khirnov [Sun, 5 Apr 2015 19:02:56 +0000 (21:02 +0200)]
svq3: initialize some required H264Context fields.

They are no longer initialized in ff_h264_decode_init() since 43fd3dd,
so svq3 needs to initialize the manually.

Fixes svq3 decoding, broken since 43fd3dd.

6 years agolibavcodec: Clarify the documentation of the internal codec capability flags
Martin Storsjö [Thu, 2 Apr 2015 12:17:01 +0000 (15:17 +0300)]
libavcodec: Clarify the documentation of the internal codec capability flags

The previous documentation was very vague and almost misleading.

Signed-off-by: Martin Storsjö <martin@martin.st>