ffmpeg.git
21 months agolavc: VAAPI H.265 encoder
Mark Thompson [Wed, 23 Mar 2016 23:50:04 +0000 (23:50 +0000)]
lavc: VAAPI H.265 encoder

Signed-off-by: Anton Khirnov <anton@khirnov.net>
21 months agolavc: VAAPI H.264 encoder
Mark Thompson [Wed, 23 Mar 2016 23:49:35 +0000 (23:49 +0000)]
lavc: VAAPI H.264 encoder

Signed-off-by: Anton Khirnov <anton@khirnov.net>
21 months agolavc: VAAPI encode common infrastructure
Mark Thompson [Wed, 23 Mar 2016 23:49:02 +0000 (23:49 +0000)]
lavc: VAAPI encode common infrastructure

Signed-off-by: Anton Khirnov <anton@khirnov.net>
21 months agoavconv: VAAPI hwcontext initialisation and hwaccel helper
Mark Thompson [Wed, 23 Mar 2016 23:48:13 +0000 (23:48 +0000)]
avconv: VAAPI hwcontext initialisation and hwaccel helper

Signed-off-by: Anton Khirnov <anton@khirnov.net>
21 months agointrax8: Remove mpegvideo dependency
Vittorio Giovara [Sat, 20 Feb 2016 07:29:43 +0000 (02:29 -0500)]
intrax8: Remove mpegvideo dependency

21 months agointrax8: Drop lots of pointless parentheses
Diego Biurrun [Thu, 24 Mar 2016 18:14:21 +0000 (19:14 +0100)]
intrax8: Drop lots of pointless parentheses

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
21 months agointrax8: Drop MB emulation code
Vittorio Giovara [Sat, 20 Feb 2016 07:28:03 +0000 (02:28 -0500)]
intrax8: Drop MB emulation code

This is already performed in init_context_frame().

21 months agointrax8: Keep a reference to the decoder blocks
Vittorio Giovara [Sat, 20 Feb 2016 06:57:47 +0000 (01:57 -0500)]
intrax8: Keep a reference to the decoder blocks

21 months agointrax8: Use the generic horizband function
Vittorio Giovara [Sat, 20 Feb 2016 06:25:03 +0000 (01:25 -0500)]
intrax8: Use the generic horizband function

This is assuming that intrax8 has no support for interlacing
Carry over lowdelay value in ff_intrax8_decode_picture.

21 months agointrax8: Pass macroblock coordinates to ff_intrax8_decode_picture
Vittorio Giovara [Fri, 26 Feb 2016 05:04:36 +0000 (00:04 -0500)]
intrax8: Pass macroblock coordinates to ff_intrax8_decode_picture

These values need to be updated with the last macroblock position,
so keep them as pointers.

21 months agointrax8: Pass macroblock size to ff_intrax8_common_init
Vittorio Giovara [Sat, 20 Feb 2016 06:09:40 +0000 (01:09 -0500)]
intrax8: Pass macroblock size to ff_intrax8_common_init

Helps in decoupling this code from mpegvideo.

21 months agofate: Add test for WMV2 with jframes
Vittorio Giovara [Sat, 20 Feb 2016 21:44:35 +0000 (16:44 -0500)]
fate: Add test for WMV2 with jframes

21 months agoh264: switch to h2645_parse for NAL parsing
Anton Khirnov [Mon, 21 Mar 2016 13:35:48 +0000 (14:35 +0100)]
h264: switch to h2645_parse for NAL parsing

21 months agoh264: reimplement 3aa661ec5 in a more explicit way
Anton Khirnov [Mon, 21 Mar 2016 13:23:19 +0000 (14:23 +0100)]
h264: reimplement 3aa661ec5 in a more explicit way

Instead of handling the problem inside NAL decoding code, add a higher
level wrapper function. This should be more robust against future
changes (and easier to read).

21 months agosvq3: drop the build dependency on the h264 decoder
Anton Khirnov [Wed, 23 Mar 2016 12:34:23 +0000 (13:34 +0100)]
svq3: drop the build dependency on the h264 decoder

21 months agosvq3: eliminate remaining H264Context usage.
Anton Khirnov [Wed, 23 Mar 2016 12:23:55 +0000 (13:23 +0100)]
svq3: eliminate remaining H264Context usage.

21 months agosvq3: move block_offset to SVQ3Context
Anton Khirnov [Wed, 23 Mar 2016 12:17:44 +0000 (13:17 +0100)]
svq3: move block_offset to SVQ3Context

21 months agosvq3: stop using H264Context.gb
Anton Khirnov [Wed, 23 Mar 2016 12:16:32 +0000 (13:16 +0100)]
svq3: stop using H264Context.gb

21 months agosvq3: move the frame num variables to the SVQ3Context
Anton Khirnov [Wed, 23 Mar 2016 10:04:59 +0000 (11:04 +0100)]
svq3: move the frame num variables to the SVQ3Context

21 months agosvq3: eliminate H264Context.cur_pic usage
Anton Khirnov [Wed, 23 Mar 2016 10:02:19 +0000 (11:02 +0100)]
svq3: eliminate H264Context.cur_pic usage

Use the SVQ3Context variable instead

21 months agosvq3: eliminate remaining H264SliceContext usage
Anton Khirnov [Wed, 23 Mar 2016 09:43:41 +0000 (10:43 +0100)]
svq3: eliminate remaining H264SliceContext usage

21 months agosvq3: move pict_type to the SVQ3Context
Anton Khirnov [Wed, 23 Mar 2016 09:33:48 +0000 (10:33 +0100)]
svq3: move pict_type to the SVQ3Context

21 months agosvq3: move mb strides/sizes to the SVQ3Context
Anton Khirnov [Wed, 23 Mar 2016 09:33:48 +0000 (10:33 +0100)]
svq3: move mb strides/sizes to the SVQ3Context

21 months agosvq3: move the dequant buffer to SVQ3Context
Anton Khirnov [Wed, 23 Mar 2016 09:26:54 +0000 (10:26 +0100)]
svq3: move the dequant buffer to SVQ3Context

Remove now unnecesary call to ff_h264_alloc_tables()

21 months agosvq3: move mb2br_xy to the SVQ3Context
Anton Khirnov [Wed, 23 Mar 2016 09:03:50 +0000 (10:03 +0100)]
svq3: move mb2br_xy to the SVQ3Context

21 months agosvq3: move {ref,mv}_cache to the SVQ3Context
Anton Khirnov [Wed, 23 Mar 2016 09:03:50 +0000 (10:03 +0100)]
svq3: move {ref,mv}_cache to the SVQ3Context

21 months agosvq3: rip out the svq3-relevant parts of pred_motion() out of h264
Anton Khirnov [Wed, 23 Mar 2016 08:59:57 +0000 (09:59 +0100)]
svq3: rip out the svq3-relevant parts of pred_motion() out of h264

21 months agosvq3: move edge_emu_buffer to the SVQ3Context
Anton Khirnov [Wed, 23 Mar 2016 08:54:43 +0000 (09:54 +0100)]
svq3: move edge_emu_buffer to the SVQ3Context

21 months agosvq3: move the pred mode variables to SVQ3Context
Anton Khirnov [Wed, 23 Mar 2016 08:49:20 +0000 (09:49 +0100)]
svq3: move the pred mode variables to SVQ3Context

This will allow removing the H264Context dependency in the future.

21 months agoh264: move ff_h264_check_intra[4x4]_pred_mode() to h264_parse
Anton Khirnov [Wed, 23 Mar 2016 08:41:05 +0000 (09:41 +0100)]
h264: move ff_h264_check_intra[4x4]_pred_mode() to h264_parse

It is shared with svq3.

21 months agosvq3: move mb_{x,y,xy} to SVQ3Context
Anton Khirnov [Tue, 22 Mar 2016 14:54:20 +0000 (15:54 +0100)]
svq3: move mb_{x,y,xy} to SVQ3Context

This will allow removing the H264Context dependency in the future.

21 months agosvq3: eliminate write_back_intra_pred_mode() usage
Anton Khirnov [Tue, 22 Mar 2016 14:52:45 +0000 (15:52 +0100)]
svq3: eliminate write_back_intra_pred_mode() usage

This function depends on the h264 internals and is so tiny that just
copying the code out is the simplest replacement.

21 months agosvq3: add all the required dsp contexts into SVQ3Context
Anton Khirnov [Tue, 22 Mar 2016 14:32:57 +0000 (15:32 +0100)]
svq3: add all the required dsp contexts into SVQ3Context

Stop using the H264Context ones, to allow removing the H264Context
dependency.

21 months agosvq3: make the dsp functions static
Anton Khirnov [Tue, 22 Mar 2016 14:26:39 +0000 (15:26 +0100)]
svq3: make the dsp functions static

There is no need for them to be extern anymore.

21 months agoh264: remove the svq3-specific code
Anton Khirnov [Tue, 22 Mar 2016 14:22:43 +0000 (15:22 +0100)]
h264: remove the svq3-specific code

21 months agosvq3: rip out the mb decoding code shared with h264
Anton Khirnov [Tue, 22 Mar 2016 13:56:59 +0000 (14:56 +0100)]
svq3: rip out the mb decoding code shared with h264

The ~100 lines of shared code is not worth the pain of svq3 messing with
h264 internals.

21 months agoh264: factor out pred weight table parsing into a separate file
Anton Khirnov [Mon, 21 Mar 2016 15:14:31 +0000 (16:14 +0100)]
h264: factor out pred weight table parsing into a separate file

This will allow decoupling the parser from the decoder.

21 months agoh2645_parse: compute the actual data length, without trailing paddding
Anton Khirnov [Mon, 21 Mar 2016 11:42:12 +0000 (12:42 +0100)]
h2645_parse: compute the actual data length, without trailing paddding

This is required by h264.

21 months agoh2645_parse: add support for parsing h264
Anton Khirnov [Mon, 21 Mar 2016 08:00:40 +0000 (09:00 +0100)]
h2645_parse: add support for parsing h264

21 months agoh2645_parse: change the AVCodecContext* parameter to void*
Anton Khirnov [Mon, 21 Mar 2016 07:36:51 +0000 (08:36 +0100)]
h2645_parse: change the AVCodecContext* parameter to void*

This should make it more clear that it is not supposed to be used for
anything except logging.

21 months agoh2645_parse: add a function for uninitializing the packet
Anton Khirnov [Mon, 21 Mar 2016 06:33:25 +0000 (07:33 +0100)]
h2645_parse: add a function for uninitializing the packet

21 months agohevc_parse: rename into h2645_parse
Anton Khirnov [Mon, 21 Mar 2016 06:26:42 +0000 (07:26 +0100)]
hevc_parse: rename into h2645_parse

This code will be shared with h264.

21 months agoaarch64: Make transpose_4x4H do a regular transpose
Martin Storsjö [Fri, 25 Mar 2016 21:44:10 +0000 (23:44 +0200)]
aarch64: Make transpose_4x4H do a regular transpose

Previously, ff_h264_idct_add_neon (originally in the arm version) used
a non-regular transpose in order to be able to use more instructions
that deal with registers as 128 bit register pairs. The aarch64
translation doesn't do it to the same extent, but brought along the
same structure since it was a straight translation.

This reshuffles ff_h264_idct_add_neon, bringing it closer to
the C implementation, making the transpose_4x4H macro do a regular
transpose, usable for other algorithms as well.

Previously, the third and fourth output from transpose_4x4H were
swapped, and prior to cc29d96d5a, the same inputs as well. In
addition to just swapping the outputs, also renumber the intermediate
registers for better readability (making the register order match
transpose_4x8B).

This runs with the same number of cycles as before.

Signed-off-by: Martin Storsjö <martin@martin.st>
21 months agortpdec_jpeg: fix low contrast image on low quality setting
Ico Doornekamp [Thu, 24 Mar 2016 13:31:38 +0000 (14:31 +0100)]
rtpdec_jpeg: fix low contrast image on low quality setting

The problem is that the argument 'q' is of the type uint8_t.
According to the JPEG standard, if 1 <= q <= 50, the scale factor
'S' should be 5000 / Q. Because the create_default_qtables() reuses
the variable 'q' to store the result of this calculation, for small
values of q < 19, q wil subsequently overflow and give wrong results
in the calculated quantization tables.

Instead, use a new variable 'S' (same name as in RFC2435) with the
proper range to store the result of the division.

Signed-off-by: Martin Storsjö <martin@martin.st>
21 months agointrax8: Add a local BlockDSPContext and initialize it
Vittorio Giovara [Sat, 20 Feb 2016 05:46:49 +0000 (00:46 -0500)]
intrax8: Add a local BlockDSPContext and initialize it

Helps in decoupling this code from mpegvideo.

21 months agointrax8: Reference the current AVCodecContext
Vittorio Giovara [Sat, 20 Feb 2016 05:43:22 +0000 (00:43 -0500)]
intrax8: Reference the current AVCodecContext

It will be needed to initialize BlockDSP in the next commit.

21 months agointrax8: Keep a reference to the GetBitContext reader
Vittorio Giovara [Sat, 20 Feb 2016 05:23:48 +0000 (00:23 -0500)]
intrax8: Keep a reference to the GetBitContext reader

Helps in decoupling this code from mpegvideo.

21 months agointrax8: Use a constant buffer instead of a ScratchpadContext
Vittorio Giovara [Sat, 20 Feb 2016 01:50:00 +0000 (20:50 -0500)]
intrax8: Use a constant buffer instead of a ScratchpadContext

The size of the block is fixed (8x8 plus padding).

21 months agointrax8: Pass the output frame to the decoding function
Vittorio Giovara [Sat, 20 Feb 2016 01:33:12 +0000 (20:33 -0500)]
intrax8: Pass the output frame to the decoding function

Helps in decoupling this code from mpegvideo.

21 months agointrax8: Carry over the loopfilter value in ff_intrax8_decode_picture
Vittorio Giovara [Sat, 20 Feb 2016 00:59:51 +0000 (19:59 -0500)]
intrax8: Carry over the loopfilter value in ff_intrax8_decode_picture

Helps in decoupling this code from mpegvideo.

21 months agointrax8: Keep a reference to the context idctdsp
Vittorio Giovara [Fri, 19 Feb 2016 23:12:06 +0000 (18:12 -0500)]
intrax8: Keep a reference to the context idctdsp

Use it instead of the embedded mpegvideo one. Update init function
signature to load it directly from the callers.

21 months agointrax8: Make x8_init_block_index not use mpegvideo fields
Vittorio Giovara [Fri, 19 Feb 2016 22:57:09 +0000 (17:57 -0500)]
intrax8: Make x8_init_block_index not use mpegvideo fields

21 months agointrax8: Use local destination buffers
Vittorio Giovara [Sat, 20 Feb 2016 01:18:49 +0000 (20:18 -0500)]
intrax8: Use local destination buffers

These buffers are just a way to store frame pointers and be able to
modify them without touching the original ones.

The two dependent decoders (WMV2 and VC1) do not need special care for
these fields: the former does not seem to use the dest buffers, while
the latter reinits them every time to the current frame data buffers.

So only keep a local copy rather than the one from mpegvideo.

21 months agoh264data: Move all data tables from a header to a .c file
Diego Biurrun [Mon, 19 Aug 2013 12:24:45 +0000 (14:24 +0200)]
h264data: Move all data tables from a header to a .c file

21 months agolavc: Deduplicate zigzag_scan table
Diego Biurrun [Thu, 24 Mar 2016 10:16:53 +0000 (11:16 +0100)]
lavc: Deduplicate zigzag_scan table

21 months agoh264: Clean up #includes
Diego Biurrun [Wed, 23 Mar 2016 17:33:42 +0000 (18:33 +0100)]
h264: Clean up #includes

21 months agortmpdh: add an stdio.h include
Anton Khirnov [Fri, 25 Mar 2016 12:36:28 +0000 (13:36 +0100)]
rtmpdh: add an stdio.h include

The test uses printf.

21 months agoqsvdec_h2645: switch to the new BSF API
Anton Khirnov [Sun, 20 Mar 2016 07:53:10 +0000 (08:53 +0100)]
qsvdec_h2645: switch to the new BSF API

21 months agovf_fade: make sure the slice end is always in the frame
Anton Khirnov [Thu, 24 Mar 2016 20:38:54 +0000 (21:38 +0100)]
vf_fade: make sure the slice end is always in the frame

CC: libav-stable@libav.org
21 months agotestprogs: K&R formatting cosmetics
Diego Biurrun [Mon, 21 Mar 2016 14:19:30 +0000 (15:19 +0100)]
testprogs: K&R formatting cosmetics

21 months agotestprogs: Clean up #includes
Diego Biurrun [Mon, 21 Mar 2016 19:06:18 +0000 (20:06 +0100)]
testprogs: Clean up #includes

21 months agobuild: Drop redundant removal of compiled object files
Diego Biurrun [Fri, 18 Mar 2016 14:23:24 +0000 (15:23 +0100)]
build: Drop redundant removal of compiled object files

This is already taken care of by CLEANSUFFIXES.

21 months agofate: Only run SRTP test if SRTP code is enabled
Diego Biurrun [Wed, 23 Mar 2016 21:02:46 +0000 (22:02 +0100)]
fate: Only run SRTP test if SRTP code is enabled

21 months agounix: Use rw_timeout for setting the connect timeout
Martin Storsjö [Fri, 27 Feb 2015 23:47:20 +0000 (01:47 +0200)]
unix: Use rw_timeout for setting the connect timeout

Signed-off-by: Martin Storsjö <martin@martin.st>
21 months agotcp: Use rw_timeout for setting the connect/listen timeouts
Martin Storsjö [Fri, 27 Feb 2015 23:43:39 +0000 (01:43 +0200)]
tcp: Use rw_timeout for setting the connect/listen timeouts

Apply the default value for timeout in code instead of via the
avoption, to allow distinguishing the default value from the user
not setting anything at all.

Signed-off-by: Martin Storsjö <martin@martin.st>
21 months agoavio: Copy URLContext generic options into child URLContexts
Martin Storsjö [Sat, 28 Feb 2015 00:00:50 +0000 (02:00 +0200)]
avio: Copy URLContext generic options into child URLContexts

Since all URLContexts have the same AVOptions, such AVOptions
will be applied on the outermost context only and removed from the
dict, while they probably make sense on all contexts.

This makes sure that rw_timeout gets propagated to the innermost
URLContext (to make sure it gets passed to the tcp protocol, when
opening a http connection for instance).

Alternatively, such matching options would be kept in the dict
and only removed after the ffurl_connect call.

Signed-off-by: Martin Storsjö <martin@martin.st>
21 months agoopt: Add av_opt_copy()
Michael Niedermayer [Fri, 30 May 2014 19:04:14 +0000 (21:04 +0200)]
opt: Add av_opt_copy()

This includes documentation and other modifications by
Lukasz Marek and Martin Storsjö.

Signed-off-by: Martin Storsjö <martin@martin.st>
21 months agoopt: Add const to av_opt_next
Lukasz Marek [Wed, 26 Nov 2014 23:11:01 +0000 (00:11 +0100)]
opt: Add const to av_opt_next

Also add const to pointers in static functions within opt.c where
possible/necessary.

Signed-off-by: Martin Storsjö <martin@martin.st>
21 months agofile: Add an option for following a file that is being written
Martin Storsjö [Thu, 5 Feb 2015 13:06:42 +0000 (15:06 +0200)]
file: Add an option for following a file that is being written

Using this requires setting the rw_timeout option to make it
terminate, alternatively using the interrupt callback (if used via
the API).

Signed-off-by: Martin Storsjö <martin@martin.st>
21 months agoavio: Add an option 'rw_timeout'
Andrey Utkin [Mon, 27 Aug 2012 13:31:08 +0000 (16:31 +0300)]
avio: Add an option 'rw_timeout'

If set non-zero, this limits duration of the retry_transfer_wrapper()
loop, thus affecting ffurl_read*(), ffurl_write(). As soon as
one single byte is successfully received/transmitted, the timer
restarts.

This has further changes by Michael Niedermayer and Martin Storsjö.

Signed-off-by: Martin Storsjö <martin@martin.st>
21 months agoavio: Apply avoptions on the URLContext itself as well
Martin Storsjö [Fri, 27 Feb 2015 23:17:09 +0000 (01:17 +0200)]
avio: Apply avoptions on the URLContext itself as well

Currently the list of avoptions for URLContext is empty though,
but such options will be added.

Signed-off-by: Martin Storsjö <martin@martin.st>
21 months agolavfi: add an NVIDIA NPP-based scaling filter
Anton Khirnov [Sun, 17 Jan 2016 14:02:17 +0000 (15:02 +0100)]
lavfi: add an NVIDIA NPP-based scaling filter

21 months agolavf: VAAPI scale filter
Mark Thompson [Mon, 21 Mar 2016 00:03:16 +0000 (00:03 +0000)]
lavf: VAAPI scale filter

Signed-off-by: Anton Khirnov <anton@khirnov.net>
21 months agolavf: use new decode API
wm4 [Tue, 22 Mar 2016 18:09:57 +0000 (19:09 +0100)]
lavf: use new decode API

Signed-off-by: Anton Khirnov <anton@khirnov.net>
21 months agoavconv: use new encode API
wm4 [Tue, 22 Mar 2016 18:09:55 +0000 (19:09 +0100)]
avconv: use new encode API

The flushing case is a bit strange; not simplifying it so the change is
less noisy.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
21 months agoavconv: use new decode API
wm4 [Tue, 22 Mar 2016 18:09:54 +0000 (19:09 +0100)]
avconv: use new decode API

Signed-off-by: Anton Khirnov <anton@khirnov.net>
21 months agolavc: introduce a new decoding/encoding API with decoupled input/output
wm4 [Tue, 22 Mar 2016 18:09:53 +0000 (19:09 +0100)]
lavc: introduce a new decoding/encoding API with decoupled input/output

Until now, the decoding API was restricted to outputting 0 or 1 frames
per input packet. It also enforces a somewhat rigid dataflow in general.

This new API seeks to relax these restrictions by decoupling input and
output. Instead of doing a single call on each decode step, which may
consume the packet and may produce output, the new API requires the user
to send input first, and then ask for output.

For now, there are no codecs supporting this API. The API can work with
codecs using the old API, and most code added here is to make them
interoperate. The reverse is not possible, although for audio it might.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
21 months agoopt-test: Merge struct declaration and initialization
Diego Biurrun [Mon, 21 Mar 2016 18:27:49 +0000 (19:27 +0100)]
opt-test: Merge struct declaration and initialization

21 months agoopt-test: Move some variable declarations to avoid block braces
Diego Biurrun [Mon, 21 Mar 2016 18:26:29 +0000 (19:26 +0100)]
opt-test: Move some variable declarations to avoid block braces

21 months agoparseutils-test: Move some variable declarations to avoid block braces
Diego Biurrun [Mon, 21 Mar 2016 15:55:42 +0000 (16:55 +0100)]
parseutils-test: Move some variable declarations to avoid block braces

21 months agodes-test: Move a variable declaration to avoid an ifdef
Diego Biurrun [Mon, 21 Mar 2016 18:22:26 +0000 (19:22 +0100)]
des-test: Move a variable declaration to avoid an ifdef

21 months agobuild: Add component for the SRTP common code
Diego Biurrun [Fri, 18 Mar 2016 14:52:30 +0000 (15:52 +0100)]
build: Add component for the SRTP common code

This allows expressing the SRTP test code dependencies more clearly.

21 months agotimefilter-test: Only compile timefilter-test if JACK is enabled
Diego Biurrun [Fri, 18 Mar 2016 11:07:19 +0000 (12:07 +0100)]
timefilter-test: Only compile timefilter-test if JACK is enabled

21 months agodoc: Update paths to match new examples location
Diego Biurrun [Fri, 18 Mar 2016 11:41:47 +0000 (12:41 +0100)]
doc: Update paths to match new examples location

21 months agoMove const qualifier before type name
Diego Biurrun [Tue, 22 Mar 2016 14:33:28 +0000 (15:33 +0100)]
Move const qualifier before type name

21 months agovc1dec: wmv2dec: Validate ff_intrax8_common_init return value
Vittorio Giovara [Fri, 19 Feb 2016 22:43:24 +0000 (17:43 -0500)]
vc1dec: wmv2dec: Validate ff_intrax8_common_init return value

21 months agointrax8: Check and propagate errors from ff_intrax8_common_init
Vittorio Giovara [Fri, 19 Feb 2016 22:37:11 +0000 (17:37 -0500)]
intrax8: Check and propagate errors from ff_intrax8_common_init

This allows dropping an afterwards redundant assert.

21 months agointrax8: Move documentation from implementation to header file
Vittorio Giovara [Sat, 20 Feb 2016 06:34:18 +0000 (01:34 -0500)]
intrax8: Move documentation from implementation to header file

21 months agointrax8: K&R formatting cosmetics
Vittorio Giovara [Wed, 24 Feb 2016 22:45:11 +0000 (17:45 -0500)]
intrax8: K&R formatting cosmetics

21 months agointrax8: Adjust printf conversion specifier for sizeof expression
Diego Biurrun [Tue, 22 Mar 2016 20:51:47 +0000 (21:51 +0100)]
intrax8: Adjust printf conversion specifier for sizeof expression

21 months agointrax8: Move a comment to the place it corresponds
Vittorio Giovara [Tue, 23 Feb 2016 16:29:38 +0000 (11:29 -0500)]
intrax8: Move a comment to the place it corresponds

21 months agointrax8: Wrap multiline macros in do{}while(0) clauses
Vittorio Giovara [Fri, 19 Feb 2016 23:26:24 +0000 (18:26 -0500)]
intrax8: Wrap multiline macros in do{}while(0) clauses

These macros are treated like functions, the wrapping simplifies error
checking and avoids deeply nested ifs in the following commit.

21 months agointrax8: Move error resilience out of intrax8
Vittorio Giovara [Sat, 20 Feb 2016 01:51:44 +0000 (20:51 -0500)]
intrax8: Move error resilience out of intrax8

The intrax8 decoding process does not imply any kind of error
resilience, and the only call present is more related to how mpegvideo
works rather than anything else.

Therefore have the parent decoders carry out er when actually needed.

21 months agonuv: Use the correct context for av_image_check_size
Vittorio Giovara [Sun, 20 Mar 2016 01:38:27 +0000 (21:38 -0400)]
nuv: Use the correct context for av_image_check_size

21 months agoindeo4: Consistently initialize variables
Vittorio Giovara [Sat, 19 Mar 2016 22:07:21 +0000 (18:07 -0400)]
indeo4: Consistently initialize variables

Avoid using multiple variables for the same purpose.

21 months agoindeo4: Rework stream analysis report
Vittorio Giovara [Sat, 19 Mar 2016 21:07:37 +0000 (17:07 -0400)]
indeo4: Rework stream analysis report

* Change log level from error to debug
* Print report after the first decoded frame, not at the end of decoding
* Drop macro guard and use a context variable instead

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
21 months agoavconv: switch to the new BSF API
Anton Khirnov [Thu, 25 Feb 2016 14:41:45 +0000 (15:41 +0100)]
avconv: switch to the new BSF API

21 months agolavc: add a new bitstream filtering API
Anton Khirnov [Sat, 23 Nov 2013 10:43:13 +0000 (11:43 +0100)]
lavc: add a new bitstream filtering API

Deprecate the current bitstream filtering API.

21 months agotakdec: ensure chan2 is a valid channel index
Andreas Cadhalpun [Tue, 9 Jun 2015 22:12:38 +0000 (00:12 +0200)]
takdec: ensure chan2 is a valid channel index

If chan2 is not smaller than the number of channels, it can cause
segmentation faults due to dereferencing a NULL pointer.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
21 months agompegts: Forward the errors on mpeg4 objects parsing
Luca Barbato [Wed, 17 Feb 2016 01:23:02 +0000 (02:23 +0100)]
mpegts: Forward the errors on mpeg4 objects parsing

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