OSDN Git Service

android-x86/external-ffmpeg.git
8 years agolavf/utils: Fix DTS for short H264 streams.
Sasi Inguva [Sat, 12 Mar 2016 10:40:25 +0000 (02:40 -0800)]
lavf/utils: Fix DTS for short H264 streams.

Fill DTS if all packets have been read in avformat_find_stream_info, and still
has_decode_delay_been_guessed returns false.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/utils: factor update_dts_from_pts() out
Sasi Inguva [Sat, 12 Mar 2016 10:40:25 +0000 (02:40 -0800)]
avformat/utils: factor update_dts_from_pts() out

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoUse avpriv_tempfile()
Michael Niedermayer [Wed, 9 Mar 2016 14:28:28 +0000 (15:28 +0100)]
Use avpriv_tempfile()

Should fix xvid/cache on windows with --enable-shared

May be related to Ticket 4780

Tested-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavutil/file: Move av_tempfile() to avutil/file_open ff_tempfile()
Michael Niedermayer [Wed, 9 Mar 2016 13:33:25 +0000 (14:33 +0100)]
avutil/file: Move av_tempfile() to avutil/file_open ff_tempfile()

document the issue with av_tempfile()

Tested-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/alsdec: fix max bits in ltp prefix code
Umair Khan [Fri, 11 Mar 2016 21:04:30 +0000 (02:34 +0530)]
avcodec/alsdec: fix max bits in ltp prefix code

The maximum number of bits int the prefix code for
p(0) is 4. By setting it as 3, we were missing the
last 0 bit.
This fixes bug #4715 present on the trac.

Signed-off-by: Umair Khan <omerjerk@gmail.com>
Reviewed-by: Thilo Borgmann <thilo.borgmann@mail.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoconfigure: build fix for P5600 along option --disable-msa
Shivraj Patil [Fri, 11 Mar 2016 08:16:42 +0000 (13:46 +0530)]
configure: build fix for P5600 along option --disable-msa

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_waveform: add parade display mode
Paul B Mahol [Fri, 11 Mar 2016 13:20:45 +0000 (14:20 +0100)]
avfilter/vf_waveform: add parade display mode

Rename old parade display mode to stacked.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agovp9: fix a few signed integer left-shifts.
Ronald S. Bultje [Fri, 11 Mar 2016 19:40:15 +0000 (14:40 -0500)]
vp9: fix a few signed integer left-shifts.

Fixes trac tickets 5127, 5129, 5130.

8 years agovp9_superframe: fix endianness of size markers.
Ronald S. Bultje [Fri, 11 Mar 2016 19:22:38 +0000 (14:22 -0500)]
vp9_superframe: fix endianness of size markers.

8 years agovp9: add superframe merging bitstream filter.
Ronald S. Bultje [Mon, 29 Feb 2016 14:43:07 +0000 (09:43 -0500)]
vp9: add superframe merging bitstream filter.

Fixes ticket 4313.

8 years agolavf: allow BSFs to drop packets.
Ronald S. Bultje [Mon, 29 Feb 2016 14:42:54 +0000 (09:42 -0500)]
lavf: allow BSFs to drop packets.

If pkt->size == 0 && pkt->side_data_elems == 0 after bsf->filter()
returns, the packet is considered dropped.

8 years agoavfilter/vf_waveform: fix and extend millivolts grat lines
Paul B Mahol [Fri, 11 Mar 2016 09:24:51 +0000 (10:24 +0100)]
avfilter/vf_waveform: fix and extend millivolts grat lines

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavfilter/vf_waveform: fix ire8 for 25%
Paul B Mahol [Fri, 11 Mar 2016 08:51:12 +0000 (09:51 +0100)]
avfilter/vf_waveform: fix ire8 for 25%

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agolavc/lpc: exploit even symmetry of window function
Ganesh Ajjanagadde [Wed, 9 Mar 2016 03:08:29 +0000 (22:08 -0500)]
lavc/lpc: exploit even symmetry of window function

Yields 2x improvement in function performance, and boosts aac encoding
speed by ~ 4% overall. Sample benchmark (Haswell+GCC under -march=native):
after:
ffmpeg -i sin.flac -acodec aac -y sin_new.aac  5.22s user 0.03s system 105% cpu 4.970 total

before:
ffmpeg -i sin.flac -acodec aac -y sin_new.aac  5.40s user 0.05s system 105% cpu 5.162 total

Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
8 years agoavformat/hlsenc: Fix passing options, regression since bc9a5965c815cf7fd998d8ce14a18b...
Michael Niedermayer [Thu, 10 Mar 2016 23:29:59 +0000 (00:29 +0100)]
avformat/hlsenc: Fix passing options, regression since bc9a5965c815cf7fd998d8ce14a18b8e861dd9ce

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_waveform: fix indentation
Paul B Mahol [Thu, 10 Mar 2016 23:15:53 +0000 (00:15 +0100)]
avfilter/vf_waveform: fix indentation

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavfilter/vf_waveform add support for other scalers for graticule
Paul B Mahol [Thu, 10 Mar 2016 21:13:40 +0000 (22:13 +0100)]
avfilter/vf_waveform add support for other scalers for graticule

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavutil/random_seed: Add the runtime in cycles of the main loop to the entropy pool
Michael Niedermayer [Wed, 9 Dec 2015 14:18:53 +0000 (15:18 +0100)]
avutil/random_seed: Add the runtime in cycles of the main loop to the entropy pool

This should theoretically improve the randomness slightly

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavutil/channel_layout: AV_CH_LAYOUT_6POINT1_BACK not reachable in parsing
Martin Cracauer [Tue, 1 Dec 2015 22:59:36 +0000 (17:59 -0500)]
avutil/channel_layout: AV_CH_LAYOUT_6POINT1_BACK not reachable in parsing

Trying to make heads and tails out of DTS 6.1 I can across this typo.

I also noticed that this wiki page is incorrect or misleading, the
channel order for 6.1 given does not match the source code.  At the
least it should be clarified that the layout given does not apply to
DTS.  https://trac.ffmpeg.org/wiki/AudioChannelManipulation

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavf/movenc: Fix help output.
Carl Eugen Hoyos [Thu, 10 Mar 2016 17:42:27 +0000 (18:42 +0100)]
lavf/movenc: Fix help output.

Fixes ticket #5323.

8 years agolavc/ffjni: fix uninitialized variable
Matthieu Bouron [Thu, 10 Mar 2016 17:14:53 +0000 (18:14 +0100)]
lavc/ffjni: fix uninitialized variable

8 years agolavf/mxfdec: Support Canopus codecs.
Carl Eugen Hoyos [Thu, 10 Mar 2016 08:59:35 +0000 (09:59 +0100)]
lavf/mxfdec: Support Canopus codecs.

Fixes ticket #5316.

8 years agoversion.sh: Fix spurious rebuilds.
Carl Eugen Hoyos [Thu, 10 Mar 2016 08:53:10 +0000 (09:53 +0100)]
version.sh: Fix spurious rebuilds.

Regression since 104f8ea8.

8 years agoavformat/concatdec: set safe mode to enabled instead of auto
Michael Niedermayer [Tue, 19 Jan 2016 21:13:14 +0000 (22:13 +0100)]
avformat/concatdec: set safe mode to enabled instead of auto

This is safer, as a selected demuxer could still mean that it was auto-detected
by a user application

Reviewed-previously-by: Nicolas George <george@nsup.org>
Reviewed-previously-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavf/avidec: Skip xxpc entries in index; fixes trac #5311
Mats Peterson [Wed, 9 Mar 2016 22:18:07 +0000 (23:18 +0100)]
lavf/avidec: Skip xxpc entries in index; fixes trac #5311

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoAdd tests for functions in hash.c
NagaChaitanya Vellanki [Tue, 8 Mar 2016 05:21:26 +0000 (21:21 -0800)]
Add tests for functions in hash.c

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agomips: add support for R6
Vicente Olivert Riera [Wed, 24 Feb 2016 16:38:22 +0000 (16:38 +0000)]
mips: add support for R6

Understanding the mips32r6 and mips64r6 ISAs in the configure script is
not enough. In order to have full support for MIPS R6 in FFmpeg we need
to be able to build it, and for that we need to make sure we don't use
incompatible assembler code which makes the build fail. Ifdefing the
offending code is sufficient to fix the problem.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoconfigure: Check for msghdr struct.
Carl Eugen Hoyos [Wed, 9 Mar 2016 13:17:46 +0000 (14:17 +0100)]
configure: Check for msghdr struct.

Some (Solaris) systems apparently have an incompatible msghdr struct
breaking sctp protocol compilation.

Reported-by: mvelanka
8 years agolavf/mpeg: Identify sub-stream ID 0xa1 as mlp.
Carl Eugen Hoyos [Wed, 9 Mar 2016 13:12:18 +0000 (14:12 +0100)]
lavf/mpeg: Identify sub-stream ID 0xa1 as mlp.

Fixes ticket #4786.
Auto-detection seems difficult, patch mostly confirmed by
http://dvd-audio.sourceforge.net/spec/aob.shtml

8 years agolavc/mjpegdec: Set sar for multiscope videos.
Carl Eugen Hoyos [Wed, 9 Mar 2016 13:06:40 +0000 (14:06 +0100)]
lavc/mjpegdec: Set sar for multiscope videos.

Fixes decoding of the files from ticket #4535 visually.

8 years agolavc/hevc_ps: Fix offset for yuv422 and yuv444.
Carl Eugen Hoyos [Wed, 9 Mar 2016 13:00:57 +0000 (14:00 +0100)]
lavc/hevc_ps: Fix offset for yuv422 and yuv444.

Fixes ticket #4980.
Analyzed-by: kurosu and Hendrik
Reviewed-by: Ronald
8 years agoUse correct msvc type specifiers for ptrdiff_t and size_t.
Carl Eugen Hoyos [Wed, 9 Mar 2016 13:00:22 +0000 (14:00 +0100)]
Use correct msvc type specifiers for ptrdiff_t and size_t.

8 years agoavfilter/vf_waveform: use intensity for other components too
Paul B Mahol [Wed, 9 Mar 2016 10:51:20 +0000 (11:51 +0100)]
avfilter/vf_waveform: use intensity for other components too

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec/ffjni: Fix occured typo
Michael Niedermayer [Wed, 9 Mar 2016 02:46:15 +0000 (03:46 +0100)]
avcodec/ffjni: Fix occured typo

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/ffjni: Fix ;;
Michael Niedermayer [Wed, 9 Mar 2016 02:44:25 +0000 (03:44 +0100)]
avcodec/ffjni: Fix ;;

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoaacenc_utils: Use temporary variable.
Reimar Döffinger [Sun, 6 Mar 2016 20:25:11 +0000 (21:25 +0100)]
aacenc_utils: Use temporary variable.

This ensures gcc does not create unnecessary
loads or stores and possibly even does not vectorize
the negation.
Speeds up mp3 to aac transcoding with default settings
by 10% when using "gcc (Debian 5.3.1-10) 5.3.1 20160224".

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
8 years agoaacenc: use generational cache instead of resetting.
Reimar Döffinger [Sun, 6 Mar 2016 16:28:42 +0000 (17:28 +0100)]
aacenc: use generational cache instead of resetting.

Approximately 11% faster transcoding from mp3 with
default settings.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
8 years agoavfilter/vf_waveform: make it possible to draw dots instead of lines
Paul B Mahol [Tue, 8 Mar 2016 21:34:42 +0000 (22:34 +0100)]
avfilter/vf_waveform: make it possible to draw dots instead of lines

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavfilter/vf_waveform: make sure that x/y for text position is positive
Paul B Mahol [Tue, 8 Mar 2016 21:04:57 +0000 (22:04 +0100)]
avfilter/vf_waveform: make sure that x/y for text position is positive

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoconfigure: build fix for P5600 with mips code restructuring
Shivraj Patil [Mon, 7 Mar 2016 14:19:10 +0000 (19:49 +0530)]
configure: build fix for P5600 with mips code restructuring

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoconfigure: add check_inline_asm_flags()
Shivraj Patil [Mon, 7 Mar 2016 14:19:10 +0000 (19:49 +0530)]
configure: add check_inline_asm_flags()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavf/mp3dec: avoid printing useless message in default log level
Moritz Barsnick [Tue, 8 Mar 2016 15:54:42 +0000 (16:54 +0100)]
lavf/mp3dec: avoid printing useless message in default log level

"Skipping 0 bytes of junk" is useless to the user, and essentially
indicates a NOP. At 0 bytes, this message is now pushed back to
the verbose log level.

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
8 years agolavc/mjpegdec: avoid printing useless message in default log level
Moritz Barsnick [Tue, 8 Mar 2016 14:36:27 +0000 (15:36 +0100)]
lavc/mjpegdec: avoid printing useless message in default log level

The change of bps from 0 doesn't contain any info useful to the
user. This message is now at info log level only if the original
value is !=0, otherwise pushed back to debug log level. The
original value is displayed additionally.

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavf/avienc: Palette changing code only concerns AV_PIX_FMT_PAL8
Mats Peterson [Tue, 8 Mar 2016 10:26:32 +0000 (11:26 +0100)]
lavf/avienc: Palette changing code only concerns AV_PIX_FMT_PAL8

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/avf_showcqt: add performance debugging log
Muhammad Faiz [Sun, 6 Mar 2016 05:54:32 +0000 (12:54 +0700)]
avfilter/avf_showcqt: add performance debugging log

for easier development

Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
8 years agoavfilter/vf_vectorscope: short for Magenta is Mg
Paul B Mahol [Tue, 8 Mar 2016 11:11:12 +0000 (12:11 +0100)]
avfilter/vf_vectorscope: short for Magenta is Mg

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoffserver: Fixed ffserver to support large ffm files
Lior Mualem [Mon, 7 Mar 2016 16:08:19 +0000 (18:08 +0200)]
ffserver: Fixed ffserver to support large ffm files

ffm_read_write_index returns a 64bit value,

Github: Closes #185

8 years agoavcodec/nvenc: Fix typo and preset error message
Timo Rothenpieler [Tue, 8 Mar 2016 10:18:16 +0000 (11:18 +0100)]
avcodec/nvenc: Fix typo and preset error message

8 years agoavcodec/nvenc: Add encoder stats
Lucas Cooper [Mon, 7 Mar 2016 23:47:56 +0000 (15:47 -0800)]
avcodec/nvenc: Add encoder stats

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
8 years agofate: Add test similar to ticket 1242
Michael Niedermayer [Mon, 7 Mar 2016 22:19:24 +0000 (23:19 +0100)]
fate: Add test similar to ticket 1242

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/utils: fix dts from pts code in compute_pkt_fields() during ascending delay
Michael Niedermayer [Tue, 8 Mar 2016 01:42:10 +0000 (02:42 +0100)]
avformat/utils: fix dts from pts code in compute_pkt_fields() during ascending delay

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavf/riff: Add fourcc GTM4 from Telefactor digital audio for ASP.
Carl Eugen Hoyos [Mon, 7 Mar 2016 22:57:14 +0000 (23:57 +0100)]
lavf/riff: Add fourcc GTM4 from Telefactor digital audio for ASP.

8 years agoavcodec: try to document timebase a bit more
Michael Niedermayer [Sat, 5 Mar 2016 12:29:16 +0000 (13:29 +0100)]
avcodec: try to document timebase a bit more

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_vectorscope: draw color points names
Paul B Mahol [Mon, 7 Mar 2016 13:18:09 +0000 (14:18 +0100)]
avfilter/vf_vectorscope: draw color points names

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agolavc/utils: fix extra ASS sanity check in convert_sub_to_old_ass_form()
Clément Bœsch [Mon, 7 Mar 2016 20:47:47 +0000 (21:47 +0100)]
lavc/utils: fix extra ASS sanity check in convert_sub_to_old_ass_form()

8 years agolavc/mediacodec: fix chroma width for yuv420p
Matthieu Bouron [Mon, 7 Mar 2016 13:31:25 +0000 (14:31 +0100)]
lavc/mediacodec: fix chroma width for yuv420p

8 years agoavfilter/vf_waveform: draw graticule for color filter too
Paul B Mahol [Mon, 7 Mar 2016 12:27:32 +0000 (13:27 +0100)]
avfilter/vf_waveform: draw graticule for color filter too

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agolavf/vplayerdec: support time durations with no ms specified
Clément Bœsch [Mon, 7 Mar 2016 11:43:42 +0000 (12:43 +0100)]
lavf/vplayerdec: support time durations with no ms specified

Example found in the wild:

0:00:03:25.000
0:01:47:A legend is sung
0:01:50:Of when England was young
0:01:53:And knights|were brave and bold
0:01:59:The good king had died

Reported-by: wm4
8 years agolavc/mjpegdec: avoid unneeded allocation if the frame is to be skipped
Matthieu Bouron [Tue, 1 Mar 2016 17:15:48 +0000 (18:15 +0100)]
lavc/mjpegdec: avoid unneeded allocation if the frame is to be skipped

8 years agolavfi/extractplanes: Add RGB0 and friends as supported pix_fmts.
Carl Eugen Hoyos [Mon, 7 Mar 2016 11:05:42 +0000 (12:05 +0100)]
lavfi/extractplanes: Add RGB0 and friends as supported pix_fmts.

8 years agolavfi/extractplanes: Fix in_pixfmts.
Carl Eugen Hoyos [Mon, 7 Mar 2016 10:59:36 +0000 (11:59 +0100)]
lavfi/extractplanes: Fix in_pixfmts.

If the original pix_fmt was >8 bit and not supported by the filter,
the filter system could choose a pix_fmt with different endianness
as input for extractplanes which broke the output because the output
always used the endianness of the original pix_fmt.

8 years agolavfi/extractplanes: Move endianness calculation up.
Carl Eugen Hoyos [Mon, 7 Mar 2016 10:54:37 +0000 (11:54 +0100)]
lavfi/extractplanes: Move endianness calculation up.

Needed for next commit.

8 years agolavc: add h264 mediacodec decoder
Matthieu Bouron [Thu, 21 Jan 2016 08:29:39 +0000 (09:29 +0100)]
lavc: add h264 mediacodec decoder

8 years agolavc: add JNI support
Matthieu Bouron [Mon, 28 Sep 2015 13:18:56 +0000 (15:18 +0200)]
lavc: add JNI support

8 years agortp: Fix play multiple multicast streams with the same port
Zhao Zhili [Thu, 7 Jan 2016 10:55:50 +0000 (18:55 +0800)]
rtp: Fix play multiple multicast streams with the same port

We cannot play multiple multicast streams with the same port at the
same time. This is because both rtp and rtcp port are opened in
read-write mode, so they will not bind to the multicast address. Try
to make rtp port as read-only by default to solve this bug.

Signed-off-by: Zhao Zhili <wantlamy@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/ftp: Support response code 125 for STOR and RETR commands
Raymond Hilseth [Thu, 7 Jan 2016 09:38:06 +0000 (10:38 +0100)]
avformat/ftp: Support response code 125 for STOR and RETR commands

This fixes a problem where ffmpeg would hang if there is already an open
data connection, and the server sends a 125 response code in reply to a
STOR or RETR command.

Signed-off-by: Raymond Hilseth <rhi@vizrt.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavf/img2dec: Use jpeg constants in jpeg_probe().
Carl Eugen Hoyos [Sun, 6 Mar 2016 21:28:22 +0000 (22:28 +0100)]
lavf/img2dec: Use jpeg constants in jpeg_probe().

8 years agolavf/riffdec: Remove \n from avpriv_report_missing_feature().
Carl Eugen Hoyos [Sun, 6 Mar 2016 20:39:57 +0000 (21:39 +0100)]
lavf/riffdec: Remove \n from avpriv_report_missing_feature().

Found-by: Clément Bœsch
8 years agolavc/cfhd: Remove one more \n from avpriv_report_missing_feature().
Carl Eugen Hoyos [Sun, 6 Mar 2016 20:38:41 +0000 (21:38 +0100)]
lavc/cfhd: Remove one more \n from avpriv_report_missing_feature().

8 years agolavc/cfhd: Sanitize avpriv_report_missing_feature() usage.
Carl Eugen Hoyos [Sun, 6 Mar 2016 20:21:44 +0000 (21:21 +0100)]
lavc/cfhd: Sanitize avpriv_report_missing_feature() usage.

8 years agoavformat/rtpenc: Fix integer overflow in NTP_TO_RTP_FORMAT
Boris Nagels [Sun, 6 Mar 2016 15:31:36 +0000 (16:31 +0100)]
avformat/rtpenc: Fix integer overflow in NTP_TO_RTP_FORMAT

RTCP synchronization packet was broken since commit in ffmpeg version > 2.8.3
(commit: e04b039b1528f4c7df5c2b93865651bfea168a19) Since this commit (2e814d0329aded98c811d0502839618f08642685)
"rtpenc: Simplify code by introducing a macro for rescaling NTP timestamps", NTP_TO_RTP_FORMAT
uses av_rescale_rnd() function to add the data to the packet.

This causes an overflow in the av_rescale_rnd() function and it will return INT64_MIN.
Causing the NTP stamp in the RTCP packet to have an invalid value.

Github: Closes #182

Reverting commit '2e814d0329aded98c811d0502839618f08642685' solves the problem.

8 years agoavfilter/vf_vectorscope: add 12bit depth support
Paul B Mahol [Sun, 6 Mar 2016 19:29:23 +0000 (20:29 +0100)]
avfilter/vf_vectorscope: add 12bit depth support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavfilter/vf_histogram: add 12bit depth support
Paul B Mahol [Sun, 6 Mar 2016 18:55:02 +0000 (19:55 +0100)]
avfilter/vf_histogram: add 12bit depth support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec/dca: clear X96 channels if nothing was decoded
foo86 [Wed, 2 Mar 2016 19:31:10 +0000 (22:31 +0300)]
avcodec/dca: clear X96 channels if nothing was decoded

The first X96 channel set can have more channels than core, causing X96
decoding to be skipped. Clear the number of decoded X96 channels to zero
in this rudimentary case.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agomov - support seek in encrypted mp4
erankor [Mon, 22 Feb 2016 14:41:06 +0000 (16:41 +0200)]
mov - support seek in encrypted mp4

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_waveform: add text to graticule
Paul B Mahol [Sun, 6 Mar 2016 08:46:34 +0000 (09:46 +0100)]
avfilter/vf_waveform: add text to graticule

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavfilter/vf_waveform: use nonsubsampled yuv output format for lowpass filter
Paul B Mahol [Sun, 6 Mar 2016 11:01:20 +0000 (12:01 +0100)]
avfilter/vf_waveform: use nonsubsampled yuv output format for lowpass filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec/cfhd: Fixes cfhd_odd.mov which has a resolution of 496x241
Kieran Kunhya [Sat, 5 Mar 2016 18:06:16 +0000 (18:06 +0000)]
avcodec/cfhd: Fixes cfhd_odd.mov which has a resolution of 496x241

In this case container width/height is better however.
Thanks to koda for the sample

8 years agoavcodec/alsdec: treat quant_cof as a signed value
Umair Khan [Sat, 5 Mar 2016 21:36:18 +0000 (03:06 +0530)]
avcodec/alsdec: treat quant_cof as a signed value

Signed-off-by: Umair Khan <omerjerk@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agobitstream.c: improve init_vlc error messages.
Reimar Döffinger [Sun, 6 Mar 2016 10:45:35 +0000 (11:45 +0100)]
bitstream.c: improve init_vlc error messages.

Makes it far easier to spot the issue if e.g.
caused by a typo in the code table.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
8 years agoavformat/avienc: Remove unneeded seekable tests
Michael Niedermayer [Sat, 5 Mar 2016 17:38:40 +0000 (18:38 +0100)]
avformat/avienc: Remove unneeded seekable tests

Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoaacenc: avoid double in quantize_bands.
Reimar Döffinger [Tue, 1 Mar 2016 21:53:18 +0000 (22:53 +0100)]
aacenc: avoid double in quantize_bands.

I cannot see any point whatsoever to use
double here instead of float, the results
are likely identical in all cases..
Using float allows for much more
efficient use of SIMD.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
8 years agoavfilter/avf_showcqt: remove CoeffsType
Muhammad Faiz [Tue, 1 Mar 2016 02:18:06 +0000 (09:18 +0700)]
avfilter/avf_showcqt: remove CoeffsType

seems not useful

Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
8 years agoavformat/dump: Fix context/level for payload dump
Mark Harris [Sat, 5 Mar 2016 17:10:00 +0000 (09:10 -0800)]
avformat/dump: Fix context/level for payload dump

Use the context and level specified to av_pkt_dump_log2(),
instead of panic level (0), for dumping packet payload.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agofate/aac: Increase fuzz from of fate-aac-pns-encode from 72 to 74 for Loongson
Michael Niedermayer [Sat, 5 Mar 2016 20:58:16 +0000 (21:58 +0100)]
fate/aac: Increase fuzz from of fate-aac-pns-encode from 72 to 74 for Loongson

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_waveform: add graticule support
Paul B Mahol [Thu, 3 Mar 2016 18:44:00 +0000 (19:44 +0100)]
avfilter/vf_waveform: add graticule support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavfilter/vf_waveform: only use available components
Paul B Mahol [Sat, 5 Mar 2016 19:22:35 +0000 (20:22 +0100)]
avfilter/vf_waveform: only use available components

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavformat/avienc: assert that bits_per_coded_sample is within the supported range...
Michael Niedermayer [Sat, 5 Mar 2016 17:18:07 +0000 (18:18 +0100)]
avformat/avienc: assert that bits_per_coded_sample is within the supported range (out of array access otherwise)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agofate: Add pal8 copy test for avi
Michael Niedermayer [Sat, 5 Mar 2016 16:39:48 +0000 (17:39 +0100)]
fate: Add pal8 copy test for avi

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavf/avienc: Add support for palette side data
Mats Peterson [Sat, 5 Mar 2016 11:16:57 +0000 (12:16 +0100)]
lavf/avienc: Add support for palette side data

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavf/riffenc: Handle palette for non-raw codecs
Mats Peterson [Wed, 2 Mar 2016 23:28:23 +0000 (00:28 +0100)]
lavf/riffenc: Handle palette for non-raw codecs

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavc: restore ABI compatibility with 3.x (sub_text_format)
Clément Bœsch [Sat, 5 Mar 2016 09:15:30 +0000 (10:15 +0100)]
lavc: restore ABI compatibility with 3.x (sub_text_format)

Regression introduced in 2941282.

Reported-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/cos_tablegen: extend table generation to 17bits
James Almer [Sat, 5 Mar 2016 02:35:54 +0000 (23:35 -0300)]
avcodec/cos_tablegen: extend table generation to 17bits

Fixes compilation of fft with hardcoded tables

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoavfilter/f_bench: Fix comparission condition
Michael Niedermayer [Sat, 5 Mar 2016 00:55:44 +0000 (01:55 +0100)]
avfilter/f_bench: Fix comparission condition

Fixes: CID1355115

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/utils: Fix memleak on error in convert_sub_to_old_ass_form()
Michael Niedermayer [Sat, 5 Mar 2016 00:38:58 +0000 (01:38 +0100)]
avcodec/utils: Fix memleak on error in convert_sub_to_old_ass_form()

Fixes CID1355116

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agovc2enc: minor cosmetic changes
Rostislav Pehlivanov [Wed, 2 Mar 2016 12:52:15 +0000 (12:52 +0000)]
vc2enc: minor cosmetic changes

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agovc2enc: remove useless alignment on slice encoding
Rostislav Pehlivanov [Wed, 2 Mar 2016 12:50:54 +0000 (12:50 +0000)]
vc2enc: remove useless alignment on slice encoding

This was a leftover from before the slices were encoded in parallel.
Since the put_bits context is initialized per slice aligning it
aferwards is pointless.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agovc2enc: do not allocate packet until exact frame size is known
Rostislav Pehlivanov [Wed, 2 Mar 2016 12:37:09 +0000 (12:37 +0000)]
vc2enc: do not allocate packet until exact frame size is known

This commit solves most of the crashes and issues with the encoder and
the bitrate setting. Now the encoder will always allocate the absolute
lowest amount of memory regardless of what the bitrate has been set to.
Therefore if a user inputs a very low bitrate the encoder will use the
maximum possible quantization (basically zero out all coefficients),
allocate a packet and encode it. There is no coupling between the
bitrate and the allocation size and so no crashes because the buffer
isn't large enough.

The maximum quantizer was raised to the size of the table now to both
keep the overshoot at ridiculous bitrates low and to improve quality
with higher bit depths (since the coefficients grow larger per transform
quantizing them to the same relative level requires larger quantization
indices).

Since the quantization index start follows the previous quantization
index for that slice, the quantization step was reduced to a static 1
to improve performance. Previously with quant/5 the step was usually
set to 0 upon start (and was later clipped to 1), that isn't a big change.
As the step size increases so does the amount of bits leftover and so
the redistribution algorithm has to iterate more and thus waste more
time.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agolavf/dump.c: Print mastering display metadata
Neil Birkbeck [Tue, 1 Mar 2016 01:20:17 +0000 (17:20 -0800)]
lavf/dump.c: Print mastering display metadata

Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavf/matroskadec: Add early support for some of the new colour elements.
Neil Birkbeck [Tue, 1 Mar 2016 00:41:04 +0000 (16:41 -0800)]
lavf/matroskadec: Add early support for some of the new colour elements.

Adding early support for a subset of the proposed colour elements
according to the latest version of spec:
https://mailarchive.ietf.org/arch/search/?email_list=cellar&gbt=1&index=hIKLhMdgTMTEwUTeA4ct38h0tmE

I've left out elements for pix_fmt related things as there still
seems to be some discussion around these, and the max_cll/max_fall
are currently not propagated as there is not yet side data for them.

The new elements are exposed under strict experimental mode.

Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>