]> git.sesse.net Git - ffmpeg/log
ffmpeg
9 years agoMerge commit '88c612e3a4d5b584e2d9f6e2541de78d67bdfb9f'
Michael Niedermayer [Wed, 29 Apr 2015 12:18:30 +0000 (14:18 +0200)]
Merge commit '88c612e3a4d5b584e2d9f6e2541de78d67bdfb9f'

* commit '88c612e3a4d5b584e2d9f6e2541de78d67bdfb9f':
  h264: merge the init and reinit paths in update_thread_context()

Conflicts:
libavcodec/h264_slice.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '8a66fd40260b7aae6226d68c4dbad43b05a8e524'
Michael Niedermayer [Wed, 29 Apr 2015 11:55:25 +0000 (13:55 +0200)]
Merge commit '8a66fd40260b7aae6226d68c4dbad43b05a8e524'

* commit '8a66fd40260b7aae6226d68c4dbad43b05a8e524':
  h264: drop the reinit parameter from init_slice_header()

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'c9ccbc7333eddd025ebbde5cc4f27d68a950c623'
Michael Niedermayer [Wed, 29 Apr 2015 11:48:02 +0000 (13:48 +0200)]
Merge commit 'c9ccbc7333eddd025ebbde5cc4f27d68a950c623'

* commit 'c9ccbc7333eddd025ebbde5cc4f27d68a950c623':
  h264: update the current bit depth/chroma type in init_slice_header()

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '29dcde2b87559b72957454a7e9bcd5227d8057ba'
Michael Niedermayer [Wed, 29 Apr 2015 11:40:59 +0000 (13:40 +0200)]
Merge commit '29dcde2b87559b72957454a7e9bcd5227d8057ba'

* commit '29dcde2b87559b72957454a7e9bcd5227d8057ba':
  h264: copy nal_length_size in update_thread_context

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '440e8dd374b732c48d564d9f1bb0ec3b1b786fb9'
Michael Niedermayer [Wed, 29 Apr 2015 11:33:07 +0000 (13:33 +0200)]
Merge commit '440e8dd374b732c48d564d9f1bb0ec3b1b786fb9'

* commit '440e8dd374b732c48d564d9f1bb0ec3b1b786fb9':
  h264: drop a comment that carries no useful information

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '11f024ef0ab923ed8680fc35a087d576e549c849'
Michael Niedermayer [Wed, 29 Apr 2015 11:24:18 +0000 (13:24 +0200)]
Merge commit '11f024ef0ab923ed8680fc35a087d576e549c849'

* commit '11f024ef0ab923ed8680fc35a087d576e549c849':
  h264: move freeing the escaped RBSP buffer to free_context()

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'ee62b364be0c30cba83b5ff10a3ca8c3e866ade6'
Michael Niedermayer [Wed, 29 Apr 2015 11:01:15 +0000 (13:01 +0200)]
Merge commit 'ee62b364be0c30cba83b5ff10a3ca8c3e866ade6'

* commit 'ee62b364be0c30cba83b5ff10a3ca8c3e866ade6':
  h264: eliminate ff_h264_set_parameter_from_sps()

Conflicts:
libavcodec/h264.c
libavcodec/h264.h
libavcodec/h264_slice.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '54986d6db9116ef9704b1ce8414ffdb7f1ca127f'
Michael Niedermayer [Wed, 29 Apr 2015 10:04:26 +0000 (12:04 +0200)]
Merge commit '54986d6db9116ef9704b1ce8414ffdb7f1ca127f'

* commit '54986d6db9116ef9704b1ce8414ffdb7f1ca127f':
  h264: move context reinit lower down in update_thread_context()

Conflicts:
libavcodec/h264_slice.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'a6cd154463bea7eb56d28192db4c8c6d83f67fd7'
Michael Niedermayer [Wed, 29 Apr 2015 09:48:39 +0000 (11:48 +0200)]
Merge commit 'a6cd154463bea7eb56d28192db4c8c6d83f67fd7'

* commit 'a6cd154463bea7eb56d28192db4c8c6d83f67fd7':
  h264: move the DPB init/uninit to init_context()/free_context()

Conflicts:
libavcodec/h264.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '9d33bab583a82cf12286c65258a29c6888e1ff98'
Michael Niedermayer [Wed, 29 Apr 2015 09:38:42 +0000 (11:38 +0200)]
Merge commit '9d33bab583a82cf12286c65258a29c6888e1ff98'

* commit '9d33bab583a82cf12286c65258a29c6888e1ff98':
  h264: drop H264Context.ouputed_poc

Conflicts:
libavcodec/h264.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '27b0e6ebfd47b0c11156c18b90fa8c571f0f60c3'
Michael Niedermayer [Wed, 29 Apr 2015 09:28:17 +0000 (11:28 +0200)]
Merge commit '27b0e6ebfd47b0c11156c18b90fa8c571f0f60c3'

* commit '27b0e6ebfd47b0c11156c18b90fa8c571f0f60c3':
  h264: drop needs_realloc

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoh264: merge the init and reinit paths in update_thread_context()
Anton Khirnov [Sun, 12 Apr 2015 18:59:52 +0000 (20:59 +0200)]
h264: merge the init and reinit paths in update_thread_context()

There is no real need to handle the init case specially, everything
necessary is initialized in the reinit code as well.

9 years agoh264: drop the reinit parameter from init_slice_header()
Anton Khirnov [Sun, 12 Apr 2015 17:36:49 +0000 (19:36 +0200)]
h264: drop the reinit parameter from init_slice_header()

It is only used to decide whether to call free_tables(), but that
function is safe to call on an uninitialized context as well.

9 years agoh264: update the current bit depth/chroma type in init_slice_header()
Anton Khirnov [Sun, 12 Apr 2015 17:13:56 +0000 (19:13 +0200)]
h264: update the current bit depth/chroma type in init_slice_header()

With frame threading, it is currently only updated in the context where
the change occurs, but not in any other contexts.

9 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.

9 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

9 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.

9 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.

9 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.

9 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
code.

9 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.

9 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.

9 years agoMerge commit '0ac8ff618c5e6d878c547a8877e714ed728950ce'
Michael Niedermayer [Wed, 29 Apr 2015 03:46:20 +0000 (05:46 +0200)]
Merge commit '0ac8ff618c5e6d878c547a8877e714ed728950ce'

* commit '0ac8ff618c5e6d878c547a8877e714ed728950ce':
  avresample: Reallocate the internal buffer to the correct size

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat/mpegts: reset last_version on seeking
Michael Niedermayer [Wed, 29 Apr 2015 03:00:51 +0000 (05:00 +0200)]
avformat/mpegts: reset last_version on seeking

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '82de8d71118f4eafd6a43e9ea9169bd411793798'
Michael Niedermayer [Wed, 29 Apr 2015 02:24:06 +0000 (04:24 +0200)]
Merge commit '82de8d71118f4eafd6a43e9ea9169bd411793798'

* commit '82de8d71118f4eafd6a43e9ea9169bd411793798':
  mpegts: Update the PSI/SI table only if the version change

Conflicts:
libavformat/mpegts.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '0c69164f451cc9ca6ce9d6e7568083e2776bc845'
Michael Niedermayer [Wed, 29 Apr 2015 02:11:21 +0000 (04:11 +0200)]
Merge commit '0c69164f451cc9ca6ce9d6e7568083e2776bc845'

* commit '0c69164f451cc9ca6ce9d6e7568083e2776bc845':
  h263: Convert function to macro

Conflicts:
libavcodec/h263.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '59dfc2b0c89f35c5805abee72c2ae4ee7af8e98d'
Michael Niedermayer [Wed, 29 Apr 2015 02:03:54 +0000 (04:03 +0200)]
Merge commit '59dfc2b0c89f35c5805abee72c2ae4ee7af8e98d'

* commit '59dfc2b0c89f35c5805abee72c2ae4ee7af8e98d':
  h263: Drop commented-out code and a related otherwise unused function

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'c3418201307c6b7a2b3e3be10f33ab4a20a32c3b'
Michael Niedermayer [Wed, 29 Apr 2015 01:55:59 +0000 (03:55 +0200)]
Merge commit 'c3418201307c6b7a2b3e3be10f33ab4a20a32c3b'

* commit 'c3418201307c6b7a2b3e3be10f33ab4a20a32c3b':
  jpeglsenc: Mark codec as init-thread-safe and init-cleanup

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '3919a4572690894d0a7ad4170d699c52b4748194'
Michael Niedermayer [Wed, 29 Apr 2015 01:45:27 +0000 (03:45 +0200)]
Merge commit '3919a4572690894d0a7ad4170d699c52b4748194'

* commit '3919a4572690894d0a7ad4170d699c52b4748194':
  jpeglsenc: Check memory allocations

Conflicts:
libavcodec/jpeglsenc.c

See: 48214956b2f115e9cadfcdf1ff06a2477c87a295
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'f5ba67ee1342b7741200ff637fc3ea3387b68a1b'
Michael Niedermayer [Wed, 29 Apr 2015 01:32:47 +0000 (03:32 +0200)]
Merge commit 'f5ba67ee1342b7741200ff637fc3ea3387b68a1b'

* commit 'f5ba67ee1342b7741200ff637fc3ea3387b68a1b':
  flacenc: Move a scratch buffer to struct used by the function

Conflicts:
libavcodec/flacenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 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>
9 years agonutdec: fix illegal count check in decode_main_header
Andreas Cadhalpun [Tue, 28 Apr 2015 20:37:19 +0000 (22:37 +0200)]
nutdec: fix illegal count check in decode_main_header

The existing check has two problems:
 1) i + count can overflow, so that the check '< 256' returns true.
 2) In the (i == 'N') case occurs a j-- so that the loop runs once more.

This can trigger the assertion 'nut->header_len[0] == 0' or cause
segmentation faults or infinite hangs.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agonutdec: fix memleaks on error in nut_read_header
Andreas Cadhalpun [Tue, 28 Apr 2015 18:58:21 +0000 (20:58 +0200)]
nutdec: fix memleaks on error in nut_read_header

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agonutdec: check chapter creation in decode_info_header
Andreas Cadhalpun [Tue, 28 Apr 2015 18:57:59 +0000 (20:57 +0200)]
nutdec: check chapter creation in decode_info_header

This fixes a segmentation fault when accessing the metadata.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 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
finished.

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
minor.

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years agonutdec: check for negative frame rate in decode_info_header
Andreas Cadhalpun [Tue, 28 Apr 2015 18:31:56 +0000 (20:31 +0200)]
nutdec: check for negative frame rate in decode_info_header

A negative frame rate triggers an av_assert2 in av_rescale_rnd.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/vqavideo: Use ff_tlog() for byte and opcode tracing
Michael Niedermayer [Tue, 28 Apr 2015 17:55:39 +0000 (19:55 +0200)]
avcodec/vqavideo: Use ff_tlog() for byte and opcode tracing

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat/dtsdec: Extend DTS core sync word
foo86 [Tue, 28 Apr 2015 14:47:53 +0000 (17:47 +0300)]
avformat/dtsdec: Extend DTS core sync word

Check extended sync word for 16-bit LE and BE core streams to reduce
probability of alias sync detection. Previously sync word extension was
checked only for 14-bit streams.

This follows up the similar change in avcodec/dca_parser.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoh263: Convert function to macro
Vittorio Giovara [Tue, 28 Apr 2015 09:38:29 +0000 (10:38 +0100)]
h263: Convert function to macro

9 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

9 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.

9 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.

9 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.

9 years agoffmpeg: remove incorrect network deinit
Michael Niedermayer [Thu, 23 Apr 2015 12:29:47 +0000 (14:29 +0200)]
ffmpeg: remove incorrect network deinit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoapedec: prevent out of array writes in decode_array_0000
Andreas Cadhalpun [Tue, 28 Apr 2015 09:13:43 +0000 (11:13 +0200)]
apedec: prevent out of array writes in decode_array_0000

s->decoded_buffer is allocated with a min_size of:
    2 * FFALIGN(blockstodecode, 8) * sizeof(*s->decoded_buffer)

Then it is assigned to s->decoded[0] (and s->decoded_buffer + FFALIGN(blockstodecode, 8)
to s->decoded[1]) and passed as out buffer to decode_array_0000.

In this function 64 elements of the out buffer are written
unconditionally and outside the array if blockstodecode is too small.

This causes memory corruption, leading to segmentation faults or other
crashes.

Thus change decode_array_0000 to write at most blockstodecode elements
of the out buffer.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoOpenCL: Fix ABI incompatibility issues
Maneesh Gupta [Tue, 28 Apr 2015 07:32:38 +0000 (13:02 +0530)]
OpenCL: Fix ABI incompatibility issues

AVOpenCLDeviceNode and AVOpenCLPlatformNode used fixed static buffer for holding the device and platform name.
This patch modifies these structures to use pointers instead. The memory required to hold the names is
now dynamically allocated, the size for which is determined by querying appropriate OpenCL runtime APIs.

Signed-off-by: Maneesh Gupta <maneesh.gupta@amd.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoOpenCL: Avoid potential buffer overflow in cmdutils_opencl.c
Maneesh Gupta [Tue, 28 Apr 2015 07:38:31 +0000 (13:08 +0530)]
OpenCL: Avoid potential buffer overflow in cmdutils_opencl.c

The opt_opencl_bench function copied the device name using strcpy without checking if the source string was larger.
This patch fixes this by replacing the strcpy with av_strlcpy, with the string copy size capped to the destination buffer size.

Signed-off-by: Maneesh Gupta <maneesh.gupta@amd.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agowebmdashenc: Fix UTCTiming Element
Vignesh Venkatasubramanian [Mon, 27 Apr 2015 23:26:34 +0000 (16:26 -0700)]
webmdashenc: Fix UTCTiming Element

Remove the direct profile from UTCTiming element. Per DASH spec,
direct profile value should be the time at which the request was
made to the server and not the time at which the manifest was
written. So ffmpeg cannot write this value. This patch removes
the direct profile and write the UTCTiming element with the http
profile only if a URL is passed as a parameter. Update the fate
test to reflect this change.

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoapedec: set s->samples only when init_frame_decoder succeeded
Andreas Cadhalpun [Mon, 27 Apr 2015 22:30:51 +0000 (00:30 +0200)]
apedec: set s->samples only when init_frame_decoder succeeded

Otherwise range_start_decoding is not necessarily run and thus
ctx->rc.range still 0 in range_dec_normalize leading to an infinite
loop.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolibavformat/webm_chunk: Write first audio packet.
Vignesh Venkatasubramanian [Mon, 27 Apr 2015 21:47:03 +0000 (14:47 -0700)]
libavformat/webm_chunk: Write first audio packet.

Fix a bug where the chunk muxer doesn't write the very first audio
packet (with pts == 0).

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/hevc: Remove current_sps
Michael Niedermayer [Mon, 27 Apr 2015 21:51:09 +0000 (23:51 +0200)]
avcodec/hevc: Remove current_sps

The variable should not be needed anymore

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agotests: make sure subtitles tests are run with a rawdiff
Clément Bœsch [Sun, 26 Apr 2015 17:29:40 +0000 (19:29 +0200)]
tests: make sure subtitles tests are run with a rawdiff

This will test properly CRLF with make fate, make fate-subtitles and any
make fate-sub-* test. Before this commit, the rawdiff was triggered only
by make fate-subtitles.

Also make sure fate-sub-* only match the tests relying on fmtstdout
command, to at least avoid failing on MingW. See
https://ffmpeg.org/pipermail/ffmpeg-devel/2015-April/172395.html

9 years agotests/subtitles: fix microdvd crlf in ref
Clément Bœsch [Sun, 26 Apr 2015 17:30:39 +0000 (19:30 +0200)]
tests/subtitles: fix microdvd crlf in ref

9 years agoAdapt libavcodec/tableprint_vlc.h to the av_dlog -> ff_dlog change.
Alexis Ballier [Mon, 27 Apr 2015 15:33:01 +0000 (17:33 +0200)]
Adapt libavcodec/tableprint_vlc.h to the av_dlog -> ff_dlog change.

This fixes the build with --enable-hardcoded-tables that was broken since [8f7b022c8c2f40bf8ddfd90778a4c91424d3a8e5].

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agomakefile: add Loongson-3 support
ZhouXiaoyong [Mon, 27 Apr 2015 02:40:29 +0000 (10:40 +0800)]
makefile: add Loongson-3 support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/ppc/fdctdsp: POWER LE support in ff_fdct_altivec() delete macros VEC_FMERGEH...
Rong Yan [Mon, 27 Apr 2015 03:29:51 +0000 (03:29 +0000)]
avcodec/ppc/fdctdsp: POWER LE support in ff_fdct_altivec() delete macros VEC_FMERGEH() VEC_FMERGEL(), they where wrong

GCC tool had a bug of PPC intrinsic interpret, which has been fixed in GCC 4.9.1. This bug lead to
errors in two of our previous patches. We found this when we update our GCC tools to 4.9.1 and by
reading the related info on GCC website. We fix our previous error in two separate commits

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoswscale/ppc/swscale_altivec.c: POWER LE support in yuv2planeX_8() delete macro GET_VF...
Rong Yan [Mon, 27 Apr 2015 03:19:45 +0000 (03:19 +0000)]
swscale/ppc/swscale_altivec.c: POWER LE support in yuv2planeX_8() delete macro GET_VF() it was wrong

GCC tool had a bug of PPC intrinsic interpret, which has been fixed in GCC 4.9.1. This bug lead to
errors in two of our previous patches. We found this when we update our GCC tools to 4.9.1 and by
reading the related info on GCC website. We fix our previous error in two separate commits

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat/aviobuf: Do not resize the buffer in ffio_ensure_seekback() if there is...
Michael Niedermayer [Mon, 27 Apr 2015 02:52:01 +0000 (04:52 +0200)]
avformat/aviobuf: Do not resize the buffer in ffio_ensure_seekback() if there is no read function

Without a read function there can never be more data read than the buffer could
hold

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec: optimize mathops for Loongson-3 v1
ZhouXiaoyong [Thu, 16 Apr 2015 06:42:44 +0000 (14:42 +0800)]
avcodec: optimize mathops for Loongson-3 v1

HAVE_LOONGSON is replaced by HAVE_LOONGSON3. Even Loongson-2E and 2F support
Loongson SIMD instructs but have low performance for decoding. We plan to focus
on optimizing Loongson-3A1000, 3B1500 and 3A1500, and modify the configure file
to support Loongson-2 series later by adding HAVE_LOONGSON2.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/ffv1enc: set bits_per_raw_sample for 8bit based formats
Michael Niedermayer [Sun, 26 Apr 2015 19:18:42 +0000 (21:18 +0200)]
avcodec/ffv1enc: set bits_per_raw_sample for 8bit based formats

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/ffv1enc: Ensure that bits per raw sample is valid
Michael Niedermayer [Sun, 26 Apr 2015 19:09:17 +0000 (21:09 +0200)]
avcodec/ffv1enc: Ensure that bits per raw sample is valid

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavutil/log: more complete description of av_log function
Matteo Nastasi (mop) [Thu, 23 Apr 2015 12:27:37 +0000 (14:27 +0200)]
avutil/log: more complete description of av_log function

9 years agoavcodec/rv10: Use ff_tlog() for block level tracing
Michael Niedermayer [Sun, 26 Apr 2015 14:29:23 +0000 (16:29 +0200)]
avcodec/rv10: Use ff_tlog() for block level tracing

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/dvbsubdec: Do not return a value from a function returning void
Michael Niedermayer [Sun, 26 Apr 2015 11:47:12 +0000 (13:47 +0200)]
avcodec/dvbsubdec: Do not return a value from a function returning void

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/interplayvideo: Use ff_tlog() for block level decode tracing
Michael Niedermayer [Sun, 26 Apr 2015 10:31:56 +0000 (12:31 +0200)]
avcodec/interplayvideo: Use ff_tlog() for block level decode tracing

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/h264_slice: Change a few asserts to av_assert*
Michael Niedermayer [Sun, 26 Apr 2015 10:28:36 +0000 (12:28 +0200)]
avcodec/h264_slice: Change a few asserts to av_assert*

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '5aed1d4240d411533c102eec6944aa925b7f4964'
Michael Niedermayer [Sat, 25 Apr 2015 23:20:08 +0000 (01:20 +0200)]
Merge commit '5aed1d4240d411533c102eec6944aa925b7f4964'

* commit '5aed1d4240d411533c102eec6944aa925b7f4964':
  vaapi: Fix -Wimplicit-function-declaration for ff_dlog() usage

See: 8f7b022c8c2f40bf8ddfd90778a4c91424d3a8e5
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/ituh263dec: Use ff_tlog() for block level information
Michael Niedermayer [Sat, 25 Apr 2015 23:00:05 +0000 (01:00 +0200)]
avcodec/ituh263dec: Use ff_tlog() for block level information

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/h264_cabac: Use ff_tlog() for block level information
Michael Niedermayer [Sat, 25 Apr 2015 22:58:51 +0000 (00:58 +0200)]
avcodec/h264_cabac: Use ff_tlog() for block level information

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 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>
9 years agoavcodec/mpeg12dec: Make ff_dlog() messages more clear
Michael Niedermayer [Sat, 25 Apr 2015 18:23:28 +0000 (20:23 +0200)]
avcodec/mpeg12dec: Make ff_dlog() messages more clear

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/mpeg12dec: Change mb decode tracing stuff to use ff_tlog()
Michael Niedermayer [Sat, 25 Apr 2015 17:42:49 +0000 (19:42 +0200)]
avcodec/mpeg12dec: Change mb decode tracing stuff to use ff_tlog()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavutil/softfloat: document av_int2sf()
Michael Niedermayer [Sat, 25 Apr 2015 12:51:02 +0000 (14:51 +0200)]
avutil/softfloat: document av_int2sf()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoconfigure: add Loongson-3 support
ZhouXiaoyong [Wed, 15 Apr 2015 11:50:01 +0000 (19:50 +0800)]
configure: add Loongson-3 support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/mips: disable assembly not supported for Loongson-3
ZhouXiaoyong [Wed, 15 Apr 2015 12:18:15 +0000 (20:18 +0800)]
avcodec/mips: disable assembly not supported for Loongson-3

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/snowenc: Mark as FF_CODEC_CAP_INIT_THREADSAFE and FF_CODEC_CAP_INIT_CLEANUP
Michael Niedermayer [Sat, 25 Apr 2015 10:44:04 +0000 (12:44 +0200)]
avcodec/snowenc: Mark as FF_CODEC_CAP_INIT_THREADSAFE and FF_CODEC_CAP_INIT_CLEANUP

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolibavcodec/snowdec: Mark as FF_CODEC_CAP_INIT_THREADSAFE and FF_CODEC_CAP_INIT_CLEANUP
Michael Niedermayer [Sat, 25 Apr 2015 02:50:47 +0000 (04:50 +0200)]
libavcodec/snowdec: Mark as FF_CODEC_CAP_INIT_THREADSAFE and FF_CODEC_CAP_INIT_CLEANUP

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat/format: Add generic trace av_log in av_probe_input_format3()
Michael Niedermayer [Mon, 20 Apr 2015 15:38:56 +0000 (17:38 +0200)]
avformat/format: Add generic trace av_log in av_probe_input_format3()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/movtextdec: Decoding of Bold-Italic_Underlined styles for 3gpp timed text...
Niklesh [Fri, 24 Apr 2015 21:23:26 +0000 (02:53 +0530)]
avcodec/movtextdec: Decoding of Bold-Italic_Underlined styles for 3gpp timed text subtitles

Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in>
Previous version reviewed-by: Philip Langdale <philipl@overt.org>
Previous version reviewed-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'cfdaa4de6c496b0b761c763cd18067cb1af268a7'
Michael Niedermayer [Fri, 24 Apr 2015 21:22:57 +0000 (23:22 +0200)]
Merge commit 'cfdaa4de6c496b0b761c763cd18067cb1af268a7'

* commit 'cfdaa4de6c496b0b761c763cd18067cb1af268a7':
  dss_sp: use lowercase codec name without whitespace

See: 35e855d5b6950887320040da723cf5d5085263a7
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/libxvid: remove now redundant init cleanup code
Michael Niedermayer [Fri, 24 Apr 2015 20:50:40 +0000 (22:50 +0200)]
avcodec/libxvid: remove now redundant init cleanup code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '18db1286b04557aa2d2df7efbcb65ae825d5a469'
Michael Niedermayer [Fri, 24 Apr 2015 20:48:29 +0000 (22:48 +0200)]
Merge commit '18db1286b04557aa2d2df7efbcb65ae825d5a469'

* commit '18db1286b04557aa2d2df7efbcb65ae825d5a469':
  libxvid: Make codec use the init-cleanup flag and mark it as init-thread-safe

Conflicts:
libavcodec/libxvid.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'eae7338e1592f4a398b7c3cb9d1ac854b7a44ff8'
Michael Niedermayer [Fri, 24 Apr 2015 20:21:12 +0000 (22:21 +0200)]
Merge commit 'eae7338e1592f4a398b7c3cb9d1ac854b7a44ff8'

* commit 'eae7338e1592f4a398b7c3cb9d1ac854b7a44ff8':
  libx264: Make codec use the init-cleanup flag and mark it as init-thread-safe

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '74a1cad7e3ba79e5b1e5b2e2bcf6179520442679'
Michael Niedermayer [Fri, 24 Apr 2015 20:20:41 +0000 (22:20 +0200)]
Merge commit '74a1cad7e3ba79e5b1e5b2e2bcf6179520442679'

* commit '74a1cad7e3ba79e5b1e5b2e2bcf6179520442679':
  lclenc: Mark codec as init-thread-safe and init-cleanup

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'bb428e00ac158244d6691bf135be404e85b66a8b'
Michael Niedermayer [Fri, 24 Apr 2015 20:00:28 +0000 (22:00 +0200)]
Merge commit 'bb428e00ac158244d6691bf135be404e85b66a8b'

* commit 'bb428e00ac158244d6691bf135be404e85b66a8b':
  hqx: Mark codec as init-thread-safe and init-cleanup

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '43171886e08b6a2f20a1e2f3ecc95a7984b591cd'
Michael Niedermayer [Fri, 24 Apr 2015 19:48:19 +0000 (21:48 +0200)]
Merge commit '43171886e08b6a2f20a1e2f3ecc95a7984b591cd'

* commit '43171886e08b6a2f20a1e2f3ecc95a7984b591cd':
  huffyuvenc: Mark codec as init-thread-safe and init-cleanup

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'd90133b77bf69667d10e54de9aae7da223c6876a'
Michael Niedermayer [Fri, 24 Apr 2015 19:34:28 +0000 (21:34 +0200)]
Merge commit 'd90133b77bf69667d10e54de9aae7da223c6876a'

* commit 'd90133b77bf69667d10e54de9aae7da223c6876a':
  asvenc: Mark codec as init-thread-safe and init-cleanup

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'a4edaeb50fc7510f28a5d79349a7926a182c9930'
Michael Niedermayer [Fri, 24 Apr 2015 19:26:54 +0000 (21:26 +0200)]
Merge commit 'a4edaeb50fc7510f28a5d79349a7926a182c9930'

* commit 'a4edaeb50fc7510f28a5d79349a7926a182c9930':
  hq_hqa: Fix table data for profile 17

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'b17cbb0b1c4fdf8324eff24d40a02201bfaebfd3'
Michael Niedermayer [Fri, 24 Apr 2015 19:16:08 +0000 (21:16 +0200)]
Merge commit 'b17cbb0b1c4fdf8324eff24d40a02201bfaebfd3'

* commit 'b17cbb0b1c4fdf8324eff24d40a02201bfaebfd3':
  riff: Add GMP4 fourcc for mpeg4

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '3c04ec04df8cba12f3a7408709ff5c1fddfe8d82'
Michael Niedermayer [Fri, 24 Apr 2015 18:56:41 +0000 (20:56 +0200)]
Merge commit '3c04ec04df8cba12f3a7408709ff5c1fddfe8d82'

* commit '3c04ec04df8cba12f3a7408709ff5c1fddfe8d82':
  riff: Add GLV4 fourcc for mpeg4

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '5bba3ab0cf7a0238ee1ea31ca2da08ce860fd8f9'
Michael Niedermayer [Fri, 24 Apr 2015 18:49:20 +0000 (20:49 +0200)]
Merge commit '5bba3ab0cf7a0238ee1ea31ca2da08ce860fd8f9'

* commit '5bba3ab0cf7a0238ee1ea31ca2da08ce860fd8f9':
  internal: Make dlog/tlog a no-op when disabled

Conflicts:
libavcodec/internal.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'b90adb0aba073f9c1b4abca852119947393ced4c'
Michael Niedermayer [Fri, 24 Apr 2015 18:37:47 +0000 (20:37 +0200)]
Merge commit 'b90adb0aba073f9c1b4abca852119947393ced4c'

* commit 'b90adb0aba073f9c1b4abca852119947393ced4c':
  rtsp: Make sure we don't write too many transport entries into a fixed-size array

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC copy and hv mc functions
Shivraj Patil [Wed, 22 Apr 2015 09:04:44 +0000 (14:34 +0530)]
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC copy and hv mc functions

Incorporated review comment.
Removed "__" from volatile.

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Reviewed-by: Nedeljko Babic <Nedeljko.Babic@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agovp9: add fate test for intraonly frames.
Ronald S. Bultje [Thu, 23 Apr 2015 00:59:27 +0000 (20:59 -0400)]
vp9: add fate test for intraonly frames.

Sample available at:
http://downloads.webmproject.org/test_data/libvpx/vp90-2-16-intra-only.webm

9 years agovp9: fix intraonly frame decoding.
Ronald S. Bultje [Thu, 23 Apr 2015 00:57:15 +0000 (20:57 -0400)]
vp9: fix intraonly frame decoding.

9 years agovp9: add fate test for segmentation image-edge issue.
Ronald S. Bultje [Thu, 23 Apr 2015 00:18:52 +0000 (20:18 -0400)]
vp9: add fate test for segmentation image-edge issue.

Sample available at:
http://downloads.webmproject.org/test_data/libvpx/vp90-2-15-segkey_adpq.webm

9 years agovp9: use aligned size to write segmentation map into cache.
Ronald S. Bultje [Thu, 23 Apr 2015 00:14:19 +0000 (20:14 -0400)]
vp9: use aligned size to write segmentation map into cache.

The unaligned size is not handled in setctx_2d(), causing edges of images
to have improper segmentation prediction, which causes visual artifacts
at image edges a few frames later.

9 years agovp9: remove another optimization branch in iadst16 which causes overflows.
Ronald S. Bultje [Wed, 22 Apr 2015 19:48:37 +0000 (15:48 -0400)]
vp9: remove another optimization branch in iadst16 which causes overflows.

See sample vp90-2-14-resize-fp-tiles-16-8.webm from the vp9 test vector
set to reproduce the issue.

9 years agovp9: add fate tests for show-existing-frame feature.
Ronald S. Bultje [Wed, 22 Apr 2015 16:24:41 +0000 (12:24 -0400)]
vp9: add fate tests for show-existing-frame feature.

Samples available at:
http://downloads.webmproject.org/test_data/libvpx/vp90-2-10-show-existing-frame.webm
http://downloads.webmproject.org/test_data/libvpx/vp90-2-10-show-existing-frame2.webm

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agovp9: add lf_deltas fate test.
Ronald S. Bultje [Wed, 22 Apr 2015 15:51:03 +0000 (11:51 -0400)]
vp9: add lf_deltas fate test.

Sample available at:
http://downloads.webmproject.org/test_data/libvpx/vp90-2-09-lf_deltas.webm

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>