ffmpeg.git
5 years agoavcodec/utils: add error message for the recode_subtitle() without iconv case
Michael Niedermayer [Wed, 21 May 2014 15:33:58 +0000 (17:33 +0200)]
avcodec/utils: add error message for the recode_subtitle() without iconv case

Based on the assert command which was removed in ef0c466a0fef4657d3f46cc9adea97e76a8e4faa

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoReplace assert with AVERROR when recode_subtitle called w/o ICONV.
Dale Curtis [Tue, 20 May 2014 19:03:57 +0000 (12:03 -0700)]
Replace assert with AVERROR when recode_subtitle called w/o ICONV.

recode_subtitle() is called implicitly by avformat_find_stream_info().
As such, clients which disable ICONV always crash if a file contains
subtitles; even if they don't care about them.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/atrac3plusdec: Use av_mallocz_array()
Michael Niedermayer [Wed, 21 May 2014 14:00:14 +0000 (16:00 +0200)]
avcodec/atrac3plusdec: Use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/atrac3: Use av_mallocz_array()
Michael Niedermayer [Wed, 21 May 2014 13:59:56 +0000 (15:59 +0200)]
avcodec/atrac3: Use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoffprobe: Use av_malloc_array()
Michael Niedermayer [Wed, 21 May 2014 13:59:22 +0000 (15:59 +0200)]
ffprobe: Use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/x86/hpeldsp_init: remove redundant if()
Michael Niedermayer [Wed, 21 May 2014 11:38:27 +0000 (13:38 +0200)]
avcodec/x86/hpeldsp_init: remove redundant if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agohpeldsp: fix build without inline asm
Hendrik Leppkes [Wed, 21 May 2014 09:19:29 +0000 (11:19 +0200)]
hpeldsp: fix build without inline asm

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agox86: kill fpel_mmx.c
Christophe Gisquet [Mon, 19 May 2014 08:02:19 +0000 (10:02 +0200)]
x86: kill fpel_mmx.c

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/libvorbisenc: dont add the duration to AV_NOPTS_VALUE
Michael Niedermayer [Wed, 21 May 2014 01:02:06 +0000 (03:02 +0200)]
avcodec/libvorbisenc: dont add the duration to AV_NOPTS_VALUE

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoFix compilation errors when deprecated features are disabled.
Dale Curtis [Tue, 20 May 2014 19:03:56 +0000 (12:03 -0700)]
Fix compilation errors when deprecated features are disabled.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/h264_picture: Fix build without error resilience
Michael Niedermayer [Tue, 20 May 2014 19:31:40 +0000 (21:31 +0200)]
avcodec/h264_picture: Fix build without error resilience

Found-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoFix build with --enable-ladspa --disable-frei0r.
Alexis Ballier [Tue, 20 May 2014 18:07:54 +0000 (20:07 +0200)]
Fix build with --enable-ladspa --disable-frei0r.

https://bugs.gentoo.org/show_bug.cgi?id=510516

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoconfigure: arm: do not enable fast-unaligned if it is explicitly disabled via commandline
Yu Xiaolei [Tue, 20 May 2014 02:14:05 +0000 (10:14 +0800)]
configure: arm: do not enable fast-unaligned if it is explicitly disabled via commandline

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavutil/cpu: force mmx on selection of higher x86 SIMD features
Michael Niedermayer [Tue, 20 May 2014 03:23:52 +0000 (05:23 +0200)]
avutil/cpu: force mmx on selection of higher x86 SIMD features

Fixes various runtime failures with manually set flags that represent no
existing CPU

Fixes Ticket3653

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/fate-idct8x8: Defined behavior: eliminate negative left-shifts.
Katerina Barone-Adesi [Mon, 19 May 2014 15:27:52 +0000 (17:27 +0200)]
avcodec/fate-idct8x8: Defined behavior: eliminate negative left-shifts.

The original code left-shifts negative values, which is undefined
in the C99 specification (the one used during normal FFmpeg compilation).
This change multiplies by (1 << shift), which is functionally equivalent,
but has defined behavior.
With this change, fate-idct8x8 compiled with --fsanitize=undefined works.

Bug-Id: 686

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
The assembly generated by gcc is unchanged by this commit

5 years agoMerge commit 'c23c96b638cbf6c489fd301e6b3d5555632fba37'
Michael Niedermayer [Tue, 20 May 2014 01:39:04 +0000 (03:39 +0200)]
Merge commit 'c23c96b638cbf6c489fd301e6b3d5555632fba37'

* commit 'c23c96b638cbf6c489fd301e6b3d5555632fba37':
  lavf: add av_stream_get_side_data

Conflicts:
doc/APIchanges
libavformat/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'afe176265480880e1f702c96a8ba434b0d88728b'
Michael Niedermayer [Tue, 20 May 2014 01:33:30 +0000 (03:33 +0200)]
Merge commit 'afe176265480880e1f702c96a8ba434b0d88728b'

* commit 'afe176265480880e1f702c96a8ba434b0d88728b':
  build: export library dependencies in ${name}_FFLIBS

Conflicts:
common.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '132a5711a2aaaa6c7d139a0a30046a6ad41b64aa'
Michael Niedermayer [Tue, 20 May 2014 00:48:56 +0000 (02:48 +0200)]
Merge commit '132a5711a2aaaa6c7d139a0a30046a6ad41b64aa'

* commit '132a5711a2aaaa6c7d139a0a30046a6ad41b64aa':
  check: add libavcodec/vda_internal.h to SKIPHEADERS-$(CONFIG_VDA)

See: beeb7551d6ab44bc6a1125e6d537508bff3694fc
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/mux: Remove localized encoder strings
Michael Niedermayer [Tue, 20 May 2014 00:30:26 +0000 (02:30 +0200)]
avformat/mux: Remove localized encoder strings

Fixes muxing to end up with a encoder=Lavf... and encoder_eng=somethingelse

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/smvjpegdec: Dont ignore avcodec_close() return code
Michael Niedermayer [Tue, 20 May 2014 00:21:07 +0000 (02:21 +0200)]
avcodec/smvjpegdec: Dont ignore avcodec_close() return code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec: remove no longer needed ff_codec_close_recursive()
Michael Niedermayer [Tue, 20 May 2014 00:20:30 +0000 (02:20 +0200)]
avcodec: remove no longer needed ff_codec_close_recursive()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoffmpeg_opt: dont copy "encoder" metadata unless stream copy is used
Michael Niedermayer [Mon, 19 May 2014 23:33:22 +0000 (01:33 +0200)]
ffmpeg_opt: dont copy "encoder" metadata unless stream copy is used

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoffmpeg/set_encoder_id: dont allocate encoder string if one is already set
Michael Niedermayer [Mon, 19 May 2014 22:50:27 +0000 (00:50 +0200)]
ffmpeg/set_encoder_id: dont allocate encoder string if one is already set

Fixes memleak

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolavf: add av_stream_get_side_data
Janne Grunau [Mon, 19 May 2014 14:29:30 +0000 (16:29 +0200)]
lavf: add av_stream_get_side_data

5 years agobuild: export library dependencies in ${name}_FFLIBS
Janne Grunau [Thu, 15 May 2014 16:11:19 +0000 (18:11 +0200)]
build: export library dependencies in ${name}_FFLIBS

Removes an ugly $(if) to avoid conflicts with $(FFLIBS-) in the
top-level MAkefile.

5 years agocheck: add libavcodec/vda_internal.h to SKIPHEADERS-$(CONFIG_VDA)
Janne Grunau [Thu, 15 May 2014 15:57:16 +0000 (17:57 +0200)]
check: add libavcodec/vda_internal.h to SKIPHEADERS-$(CONFIG_VDA)

5 years agoMerge remote-tracking branch 'lukaszmluki/master'
Michael Niedermayer [Mon, 19 May 2014 22:22:48 +0000 (00:22 +0200)]
Merge remote-tracking branch 'lukaszmluki/master'

* lukaszmluki/master:
  lavf/ftp: favour EPSV over PASV command
  lavf/audiointerleave: return more meaningful error codes
  lavf/audiointerleave: check for allocation failure
  lavf/audiointerleave: use av_fifo_alloc_array
  lavf/dvenc: use av_fifo_alloc_array
  lavc/flac_parser: use av_fifo_alloc_array
  lavc/frame_thread_encoder: use av_fifo_alloc_array
  lavfi/vf_fps: use av_fifo_alloc_array
  lavfi/buffersink: use av_fifo_alloc_array
  ffmpeg: use av_fifo_alloc_array
  lavd/jack_audio: use av_fifo_alloc_array
  lavu/fifo: add av_fifo_alloc_array function

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/dvdsubenc: accept forced flag
Oliver Fromme [Sun, 18 May 2014 13:29:28 +0000 (15:29 +0200)]
avcodec/dvdsubenc: accept forced flag

Reviewed-by: Anshul <anshul.ffmpeg@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolavf/ftp: favour EPSV over PASV command
Lukasz Marek [Mon, 19 May 2014 21:53:08 +0000 (23:53 +0200)]
lavf/ftp: favour EPSV over PASV command

EPSV is newer version of PASV and allows to use IPv6.

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
5 years agolavf/audiointerleave: return more meaningful error codes
Lukasz Marek [Sun, 11 May 2014 03:40:25 +0000 (05:40 +0200)]
lavf/audiointerleave: return more meaningful error codes

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
5 years agolavf/audiointerleave: check for allocation failure
Lukasz Marek [Sun, 11 May 2014 03:33:56 +0000 (05:33 +0200)]
lavf/audiointerleave: check for allocation failure

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
5 years agolavf/audiointerleave: use av_fifo_alloc_array
Lukasz Marek [Sun, 11 May 2014 03:29:19 +0000 (05:29 +0200)]
lavf/audiointerleave: use av_fifo_alloc_array

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
5 years agolavf/dvenc: use av_fifo_alloc_array
Lukasz Marek [Sun, 11 May 2014 03:26:31 +0000 (05:26 +0200)]
lavf/dvenc: use av_fifo_alloc_array

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
5 years agolavc/flac_parser: use av_fifo_alloc_array
Lukasz Marek [Sun, 11 May 2014 03:24:45 +0000 (05:24 +0200)]
lavc/flac_parser: use av_fifo_alloc_array

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
5 years agolavc/frame_thread_encoder: use av_fifo_alloc_array
Lukasz Marek [Sun, 11 May 2014 03:22:43 +0000 (05:22 +0200)]
lavc/frame_thread_encoder: use av_fifo_alloc_array

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
5 years agolavfi/vf_fps: use av_fifo_alloc_array
Lukasz Marek [Sun, 11 May 2014 03:20:44 +0000 (05:20 +0200)]
lavfi/vf_fps: use av_fifo_alloc_array

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
5 years agolavfi/buffersink: use av_fifo_alloc_array
Lukasz Marek [Sun, 11 May 2014 03:18:38 +0000 (05:18 +0200)]
lavfi/buffersink: use av_fifo_alloc_array

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
5 years agoffmpeg: use av_fifo_alloc_array
Lukasz Marek [Sun, 11 May 2014 03:15:49 +0000 (05:15 +0200)]
ffmpeg: use av_fifo_alloc_array

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
5 years agolavd/jack_audio: use av_fifo_alloc_array
Lukasz Marek [Sun, 11 May 2014 03:13:31 +0000 (05:13 +0200)]
lavd/jack_audio: use av_fifo_alloc_array

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
5 years agolavu/fifo: add av_fifo_alloc_array function
Lukasz Marek [Sat, 10 May 2014 06:06:53 +0000 (08:06 +0200)]
lavu/fifo: add av_fifo_alloc_array function

Allows to alloc fifo buffer by passing
number of elements and size of element.

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
5 years agox86/hevc_deblock: use constants instead of generating values at runtime
James Almer [Mon, 19 May 2014 20:39:02 +0000 (17:39 -0300)]
x86/hevc_deblock: use constants instead of generating values at runtime

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/ppc/asm: fix build with ABI v2
Thierry FAUCK [Mon, 19 May 2014 20:03:28 +0000 (22:03 +0200)]
avcodec/ppc/asm: fix build with ABI v2

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolavc: define STRIDE_ALIGN as 32 when compiling with AVX support
James Almer [Mon, 19 May 2014 00:59:57 +0000 (21:59 -0300)]
lavc: define STRIDE_ALIGN as 32 when compiling with AVX support

Signed-off-by: James Almer <jamrial@gmail.com>
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoffmpeg/do_video_stats: fix used timebase
Michael Niedermayer [Mon, 19 May 2014 18:54:27 +0000 (20:54 +0200)]
ffmpeg/do_video_stats: fix used timebase

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/pthread_frame: remove unused variable
Michael Niedermayer [Mon, 19 May 2014 17:36:29 +0000 (19:36 +0200)]
avcodec/pthread_frame: remove unused variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '82fc9f4b38244236a6ca7f946662ca653044a04c'
Michael Niedermayer [Mon, 19 May 2014 17:28:25 +0000 (19:28 +0200)]
Merge commit '82fc9f4b38244236a6ca7f946662ca653044a04c'

* commit '82fc9f4b38244236a6ca7f946662ca653044a04c':
  display: Include mathematics.h for fallback definition of NAN

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '853cc025d63ee2539fc0460dab62c5b9a3fd2043'
Michael Niedermayer [Mon, 19 May 2014 17:21:53 +0000 (19:21 +0200)]
Merge commit '853cc025d63ee2539fc0460dab62c5b9a3fd2043'

* commit '853cc025d63ee2539fc0460dab62c5b9a3fd2043':
  mov: store display matrix in a stream side data

Conflicts:
libavformat/isom.h
libavformat/mov.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'bddd8cbf68551f6405b2bf77cc3e212af9fbe834'
Michael Niedermayer [Mon, 19 May 2014 17:12:30 +0000 (19:12 +0200)]
Merge commit 'bddd8cbf68551f6405b2bf77cc3e212af9fbe834'

* commit 'bddd8cbf68551f6405b2bf77cc3e212af9fbe834':
  Add transformation matrix API.

Conflicts:
libavcodec/avcodec.h
libavcodec/utils.c
libavutil/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '9929b3564c0dca42ed7baa6798ef15b6f0013c83'
Michael Niedermayer [Mon, 19 May 2014 17:02:36 +0000 (19:02 +0200)]
Merge commit '9929b3564c0dca42ed7baa6798ef15b6f0013c83'

* commit '9929b3564c0dca42ed7baa6798ef15b6f0013c83':
  pthread_frame: simplify the code by using new AVPacket API

Conflicts:
libavcodec/pthread_frame.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'cdf58f0599c39852ee3beafe5f64af7d57d4215b'
Michael Niedermayer [Mon, 19 May 2014 16:50:40 +0000 (18:50 +0200)]
Merge commit 'cdf58f0599c39852ee3beafe5f64af7d57d4215b'

* commit 'cdf58f0599c39852ee3beafe5f64af7d57d4215b':
  avpacket: fix copying side data in av_packet_copy_props()

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'a312f71090ee620ee252f2034aef6b13e2dafe9c'
Michael Niedermayer [Mon, 19 May 2014 16:38:10 +0000 (18:38 +0200)]
Merge commit 'a312f71090ee620ee252f2034aef6b13e2dafe9c'

* commit 'a312f71090ee620ee252f2034aef6b13e2dafe9c':
  lavf: deprecate now unused AVStream.pts

Conflicts:
libavformat/mux.c
libavformat/version.h

mostly not merged as the code is needed for a/vsync drop handling
and what the code does is what is needed, it could maybe be moved
elsewhere or factored somehow but simply removing it would be droping
these features.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'ed7922faac4ea4c893efc3cdf8102ebc49fcc011'
Michael Niedermayer [Mon, 19 May 2014 16:27:56 +0000 (18:27 +0200)]
Merge commit 'ed7922faac4ea4c893efc3cdf8102ebc49fcc011'

* commit 'ed7922faac4ea4c893efc3cdf8102ebc49fcc011':
  mux: drop one of the hacks comprising compute_pkt_fields2()

Conflicts:
libavformat/mux.c

Not merged as -async drop / -vsync drop depends on this code

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/libvorbisenc: do not attempt to flush if no data was input
Michael Niedermayer [Mon, 19 May 2014 14:56:55 +0000 (16:56 +0200)]
avcodec/libvorbisenc: do not attempt to flush if no data was input

this prevents the creation of a packet even though no single sample has ever
been input, which some confusion in the timestamp generation

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/libmp3lame: do not attempt to flush lame if no data was input
Michael Niedermayer [Mon, 19 May 2014 14:56:55 +0000 (16:56 +0200)]
avcodec/libmp3lame: do not attempt to flush lame if no data was input

this prevents the creation of a packet even though no single sample has ever
been input, which some confusion in the timestamp generation

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agodisplay: Include mathematics.h for fallback definition of NAN
Martin Storsjö [Mon, 19 May 2014 14:41:05 +0000 (17:41 +0300)]
display: Include mathematics.h for fallback definition of NAN

This fixes compilation with MSVC.

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agoavformat/mpegtsenc: fix dts for chained muxing aac in mpegts
Michael Niedermayer [Mon, 19 May 2014 14:30:01 +0000 (16:30 +0200)]
avformat/mpegtsenc: fix dts for chained muxing aac in mpegts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoffmpeg: set dts for subtitles
Michael Niedermayer [Mon, 19 May 2014 14:07:50 +0000 (16:07 +0200)]
ffmpeg: set dts for subtitles

dts is not optional, its required for muxing,
previously it was set from AVStream.pts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoffmpeg: add last_mux_dts_plus_duration
Michael Niedermayer [Mon, 19 May 2014 13:28:19 +0000 (15:28 +0200)]
ffmpeg: add last_mux_dts_plus_duration

Fixes 1 frame error in the duration and derived values,
introduced by not using AVStream.pts in the previous commit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'dc40d88625d7e402d58ac3f3df69fbf27aa31ea0'
Michael Niedermayer [Mon, 19 May 2014 13:13:16 +0000 (15:13 +0200)]
Merge commit 'dc40d88625d7e402d58ac3f3df69fbf27aa31ea0'

* commit 'dc40d88625d7e402d58ac3f3df69fbf27aa31ea0':
  avconv: do not use poorly defined and undocumented AVStream.pts

Conflicts:
ffmpeg.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'c9f8809ee4c576d5833865039bc1c85754448f67'
Michael Niedermayer [Mon, 19 May 2014 13:03:42 +0000 (15:03 +0200)]
Merge commit 'c9f8809ee4c576d5833865039bc1c85754448f67'

* commit 'c9f8809ee4c576d5833865039bc1c85754448f67':
  hevc/intra_pred: simplify neighboring sample derivation

Conflicts:
libavcodec/hevcpred_template.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '25bb7eaf9eb14e6e00264bf584aa4d380d3bc29f'
Michael Niedermayer [Mon, 19 May 2014 12:47:29 +0000 (14:47 +0200)]
Merge commit '25bb7eaf9eb14e6e00264bf584aa4d380d3bc29f'

* commit '25bb7eaf9eb14e6e00264bf584aa4d380d3bc29f':
  hevc/intra_pred: drop unnecessary conditions in loops

Conflicts:
libavcodec/hevcpred_template.c

See: 053fdacde76a38186dc9db658572e38686efe0c4
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '4c390b1ba98e6aec787aa0e7ea57ed7cb38283b7'
Michael Niedermayer [Mon, 19 May 2014 12:28:02 +0000 (14:28 +0200)]
Merge commit '4c390b1ba98e6aec787aa0e7ea57ed7cb38283b7'

* commit '4c390b1ba98e6aec787aa0e7ea57ed7cb38283b7':
  hevc/intra_pred: optimize EXTEND_()*

Conflicts:
libavcodec/hevcpred_template.c

See: 053fdacde76a38186dc9db658572e38686efe0c4
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'a1c2b48018b09d2613f075ec0748c95bd520ac00'
Michael Niedermayer [Mon, 19 May 2014 12:10:13 +0000 (14:10 +0200)]
Merge commit 'a1c2b48018b09d2613f075ec0748c95bd520ac00'

* commit 'a1c2b48018b09d2613f075ec0748c95bd520ac00':
  hevc: templatize intra_pred

Conflicts:
libavcodec/hevc.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '04db5794cd97e4b33ec2f963ef7f967722a456eb'
Michael Niedermayer [Mon, 19 May 2014 11:56:56 +0000 (13:56 +0200)]
Merge commit '04db5794cd97e4b33ec2f963ef7f967722a456eb'

* commit '04db5794cd97e4b33ec2f963ef7f967722a456eb':
  hevc: templatize pred_planar

Conflicts:
libavcodec/hevcpred_template.c

See: 053fdacde76a38186dc9db658572e38686efe0c4
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agomov: store display matrix in a stream side data
Vittorio Giovara [Fri, 16 May 2014 02:06:50 +0000 (22:06 -0400)]
mov: store display matrix in a stream side data

Signed-off-by: Anton Khirnov <anton@khirnov.net>
5 years agoAdd transformation matrix API.
Vittorio Giovara [Fri, 16 May 2014 02:06:49 +0000 (22:06 -0400)]
Add transformation matrix API.

Add AV_PKT_DATA_DISPLAYMATRIX and AV_FRAME_DATA_DISPLAYMATRIX as stream and
frame side data (respectively) to describe a display transformation matrix
for linear transformation operations on the decoded video.

Add functions to easily extract a rotation angle from a matrix and
conversely to setup a matrix for a given rotation angle.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
5 years agopthread_frame: simplify the code by using new AVPacket API
Anton Khirnov [Sun, 18 May 2014 19:20:25 +0000 (21:20 +0200)]
pthread_frame: simplify the code by using new AVPacket API

This also handles side data properly.

5 years agoavpacket: fix copying side data in av_packet_copy_props()
Anton Khirnov [Sun, 18 May 2014 19:16:47 +0000 (21:16 +0200)]
avpacket: fix copying side data in av_packet_copy_props()

Side data count is incremented by by calling av_packet_new_side_data()
in the following loop, setting it explicitly results in the resulting
value being twice what it should be.

CC: libav-stable@libav.org
5 years agolavf: deprecate now unused AVStream.pts
Anton Khirnov [Sun, 18 May 2014 10:36:00 +0000 (12:36 +0200)]
lavf: deprecate now unused AVStream.pts

5 years agomux: drop one of the hacks comprising compute_pkt_fields2()
Anton Khirnov [Sun, 18 May 2014 10:25:29 +0000 (12:25 +0200)]
mux: drop one of the hacks comprising compute_pkt_fields2()

All encoders should output proper timestamps now.

5 years agoavconv: do not use poorly defined and undocumented AVStream.pts
Anton Khirnov [Sun, 18 May 2014 10:21:32 +0000 (12:21 +0200)]
avconv: do not use poorly defined and undocumented AVStream.pts

Use OutputStream.last_mux_dts as an approximation of 'current' output
time instead.

5 years agohevc/intra_pred: simplify neighboring sample derivation
Anton Khirnov [Sat, 17 May 2014 20:30:42 +0000 (22:30 +0200)]
hevc/intra_pred: simplify neighboring sample derivation

5 years agohevc/intra_pred: drop unnecessary conditions in loops
Mickaël Raulet [Sat, 17 May 2014 19:59:08 +0000 (21:59 +0200)]
hevc/intra_pred: drop unnecessary conditions in loops

Signed-off-by: Anton Khirnov <anton@khirnov.net>
5 years agohevc/intra_pred: optimize EXTEND_()*
Mickaël Raulet [Sat, 17 May 2014 19:59:08 +0000 (21:59 +0200)]
hevc/intra_pred: optimize EXTEND_()*

Process 4 pixels at once.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
5 years agohevc: templatize intra_pred
Anton Khirnov [Sat, 17 May 2014 18:41:22 +0000 (20:41 +0200)]
hevc: templatize intra_pred

5 years agohevc: templatize pred_planar
Mickaël Raulet [Sat, 17 May 2014 18:32:05 +0000 (20:32 +0200)]
hevc: templatize pred_planar

Signed-off-by: Anton Khirnov <anton@khirnov.net>
5 years agoavcodec/diracdec: move mc buffer allocation to per frame
Michael Niedermayer [Mon, 19 May 2014 04:19:23 +0000 (06:19 +0200)]
avcodec/diracdec: move mc buffer allocation to per frame

Fixes out of array accesses for non default buffers with large strides

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoffmpeg: Use av_gettime_relative()
Olivier Langlois [Tue, 6 May 2014 21:16:47 +0000 (17:16 -0400)]
ffmpeg: Use av_gettime_relative()

Whenever av_gettime() is used to measure relative period of time,
av_gettime_relative() is prefered as it guarantee monotonic time
on supported platforms.

Signed-off-by: Olivier Langlois <olivier@trillion01.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoSet dwSuggestBufferSize to largest chunk size for every stream in avi.
Carl Eugen Hoyos [Sun, 18 May 2014 22:05:40 +0000 (00:05 +0200)]
Set dwSuggestBufferSize to largest chunk size for every stream in avi.

Fixes playback with WMP 9 for files with large (rawvideo) frames
as explained in ticket #2145.

Fixes ticket #2818.

5 years agox86/hevc_deblock: remove some duplicated instructions
James Almer [Sun, 18 May 2014 21:19:49 +0000 (18:19 -0300)]
x86/hevc_deblock: remove some duplicated instructions

Also remove a couple unnecessary cmps

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoffmpeg: prefix encoder with "Lavc " in bitexact mode
Michael Niedermayer [Sun, 18 May 2014 20:51:27 +0000 (22:51 +0200)]
ffmpeg: prefix encoder with "Lavc " in bitexact mode

This avoids misleading encoder names like "encoder = prores"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '0ba5299a805e9ccaef1a757381fc2ada4d54b8a1'
Michael Niedermayer [Sun, 18 May 2014 20:27:27 +0000 (22:27 +0200)]
Merge commit '0ba5299a805e9ccaef1a757381fc2ada4d54b8a1'

* commit '0ba5299a805e9ccaef1a757381fc2ada4d54b8a1':
  movenc: use the "encoder" metadata tag to write stsd Compressorname

Conflicts:
libavformat/movenc.c
libavformat/movenc.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoffmpeg: Skip writing the version when -flags bitexact is used
Michael Niedermayer [Sun, 18 May 2014 20:00:00 +0000 (22:00 +0200)]
ffmpeg: Skip writing the version when -flags bitexact is used

Alternatively every fate test could be changed to pass both fflags and flags +bitexact

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '6656370b858329ca07a60a2de954d5e90daa0206'
Michael Niedermayer [Sun, 18 May 2014 19:26:29 +0000 (21:26 +0200)]
Merge commit '6656370b858329ca07a60a2de954d5e90daa0206'

* commit '6656370b858329ca07a60a2de954d5e90daa0206':
  avconv: set the "encoder" tag when transcoding

Conflicts:
ffmpeg.c
tests/ref/lavf/mkv
tests/ref/seek/lavf-mkv

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'd246231e4714119faac6c7acd881d3b687bb8b11'
Michael Niedermayer [Sun, 18 May 2014 19:05:46 +0000 (21:05 +0200)]
Merge commit 'd246231e4714119faac6c7acd881d3b687bb8b11'

* commit 'd246231e4714119faac6c7acd881d3b687bb8b11':
  wavenc: use codec descriptors to get the codec name

Conflicts:
libavformat/wavenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '968a62a9d9e3a785ce1f79b80facfe09c6c14544'
Michael Niedermayer [Sun, 18 May 2014 19:03:54 +0000 (21:03 +0200)]
Merge commit '968a62a9d9e3a785ce1f79b80facfe09c6c14544'

* commit '968a62a9d9e3a785ce1f79b80facfe09c6c14544':
  doc/APIchanges: mark the release 10 branch point

Conflicts:
doc/APIchanges

Not merged, as there was no such branch in ffmpeg

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '33082af7560a18179b52734665ef66f812902d33'
Michael Niedermayer [Sun, 18 May 2014 18:57:41 +0000 (20:57 +0200)]
Merge commit '33082af7560a18179b52734665ef66f812902d33'

* commit '33082af7560a18179b52734665ef66f812902d33':
  doc/APIchanges: fill in missing hashes and dates

Conflicts:
doc/APIchanges

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agomovenc: use the "encoder" metadata tag to write stsd Compressorname
Anton Khirnov [Tue, 29 Apr 2014 15:40:57 +0000 (17:40 +0200)]
movenc: use the "encoder" metadata tag to write stsd Compressorname

This mirrors the demuxer behaviour and avoids accessing
AVCodecContext.codec, which should not be done in muxers.

5 years agoavconv: set the "encoder" tag when transcoding
Anton Khirnov [Tue, 29 Apr 2014 15:23:49 +0000 (17:23 +0200)]
avconv: set the "encoder" tag when transcoding

5 years agowavenc: use codec descriptors to get the codec name
Anton Khirnov [Tue, 29 Apr 2014 15:01:17 +0000 (17:01 +0200)]
wavenc: use codec descriptors to get the codec name

Also, return a proper error code.

5 years agoffprobe: fix crash happening because of new streams occuring
Anshul [Wed, 14 May 2014 16:51:58 +0000 (22:21 +0530)]
ffprobe: fix crash happening because of new streams occuring

Fix trac ticket #3603.

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
5 years agox86: hevc_mc: specify coefficients registers
Christophe Gisquet [Sun, 18 May 2014 10:02:37 +0000 (12:02 +0200)]
x86: hevc_mc: specify coefficients registers

By default, macro EPEL_FILTER loads the coefficients inconditionally
into m14/m15. This forces an unneeded higher register count.

Reduce that count by making them parameters of EPEL_FILTER.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolavd: Use av_gettime_relative()
Olivier Langlois [Mon, 12 May 2014 20:26:36 +0000 (16:26 -0400)]
lavd: Use av_gettime_relative()

Whenever av_gettime() is used to measure relative period of time,
av_gettime_relative() is prefered as it guarantee monotonic time
on supported platforms.

Since v4l2 is compiled only on Linux where av_gettime_relative()
is monotonic, a small wrapper function av_gettime_monotonic() is used
(should be inlined the compiler) to put emphasis on that fact.

Signed-off-by: Olivier Langlois <olivier@trillion01.com>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/wmv2enc: allocate padding for extradata and check malloc failure
Michael Niedermayer [Sun, 18 May 2014 13:58:03 +0000 (15:58 +0200)]
avcodec/wmv2enc: allocate padding for extradata and check malloc failure

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/movtextenc: allocate padding for extradata
Michael Niedermayer [Sun, 18 May 2014 13:58:03 +0000 (15:58 +0200)]
avcodec/movtextenc: allocate padding for extradata

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/ffv1enc: allocate padding for extradata
Michael Niedermayer [Sun, 18 May 2014 13:58:03 +0000 (15:58 +0200)]
avcodec/ffv1enc: allocate padding for extradata

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/crystalhd: allocate padding for extradata
Michael Niedermayer [Sun, 18 May 2014 13:58:03 +0000 (15:58 +0200)]
avcodec/crystalhd: allocate padding for extradata

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '79f2c426fde6e71c40b29504112d0528b85be623'
Michael Niedermayer [Sun, 18 May 2014 12:53:41 +0000 (14:53 +0200)]
Merge commit '79f2c426fde6e71c40b29504112d0528b85be623'

* commit '79f2c426fde6e71c40b29504112d0528b85be623':
  dv: do not set codec timebase

Conflicts:
libavformat/dv.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '93afb6c98df876b15e3d911a9450ad55f92080ce'
Michael Niedermayer [Sun, 18 May 2014 12:30:43 +0000 (14:30 +0200)]
Merge commit '93afb6c98df876b15e3d911a9450ad55f92080ce'

* commit '93afb6c98df876b15e3d911a9450ad55f92080ce':
  avconv: set output avg_frame_rate when known

Conflicts:
ffmpeg.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '7a5f4f6853047eea74a6443d73f4d74d52b2799f'
Michael Niedermayer [Sun, 18 May 2014 12:20:09 +0000 (14:20 +0200)]
Merge commit '7a5f4f6853047eea74a6443d73f4d74d52b2799f'

* commit '7a5f4f6853047eea74a6443d73f4d74d52b2799f':
  lavf: extend avg_frame_rate documentation.

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