]> git.sesse.net Git - ffmpeg/log
ffmpeg
7 years agolavf/riff: Support Verint NetDVR II ("VSM4") h263 video in asf.
Carl Eugen Hoyos [Thu, 13 Oct 2016 10:14:20 +0000 (12:14 +0200)]
lavf/riff: Support Verint NetDVR II ("VSM4") h263 video in asf.

7 years agoavformat: bump minor version after the Matroska field order enum fix
James Almer [Wed, 12 Oct 2016 22:39:26 +0000 (19:39 -0300)]
avformat: bump minor version after the Matroska field order enum fix

Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/matroska: fix MatroskaVideoFieldOrder enum values
James Almer [Wed, 12 Oct 2016 19:51:39 +0000 (16:51 -0300)]
avformat/matroska: fix MatroskaVideoFieldOrder enum values

The spec says

9: Interlaced with bottom field displayed first and top field stored first
14: Interlaced with top field displayed first and bottom field stored first

And avcodec.h states

AV_FIELD_TB,          //< Top coded first, bottom displayed first
AV_FIELD_BT,          //< Bottom coded first, top displayed first

Reviewed-by: Dave Rice <dave@dericed.com>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoconfigure: Use LDEXEFLAGS in check_ld().
Carl Eugen Hoyos [Wed, 5 Oct 2016 13:10:23 +0000 (15:10 +0200)]
configure: Use LDEXEFLAGS in check_ld().

Avoids detecting libraries that are not compatible with ldexeflags.

7 years agoavcodec/nvenc: add support for forcing intra/idr frames
Timo Rothenpieler [Wed, 12 Oct 2016 18:51:43 +0000 (20:51 +0200)]
avcodec/nvenc: add support for forcing intra/idr frames

7 years agocrystalhd: Use mpeg4_unpack_bframes to avoid buggy crystalhd handling
Philip Langdale [Sun, 9 Oct 2016 03:34:00 +0000 (20:34 -0700)]
crystalhd: Use mpeg4_unpack_bframes to avoid buggy crystalhd handling

The hardware handling of packed bframes was always questionable but
it used to ok with my workaround. Today, not so much. But today we
have a bsf to unpack the bframes, so let's just use that and be
done with it.

7 years agocrystalhd: Fix handling of PTS
Philip Langdale [Sun, 18 Sep 2016 19:38:20 +0000 (12:38 -0700)]
crystalhd: Fix handling of PTS

With all the various refactorings that have happened over the years,
the current pts logic is very broken for non-trivial cases (ie: ones
where not every frame/field has a meaningful pts assocated with it).

Generally, we do not want to write AV_NOPTS_VALUE as the output
timestamp, regardless of anything else. It's better to pass zero
if there's no other information.

Additionally, interlaced content where the decoder returns each field
separately can result in the first field carrying the timestamp and
the second having AV_NOPTS_VALUE. It's clearly wrong to overwrite
the valid timestamp.

So, let's just never write AV_NOPTS_VALUE into an output frame.

Empirically, this fixed playback of interlaced mpeg2 and h.264 and
mpeg4-asp with packed b-frames in an avi container.

7 years agolavf/riffenc: Always write unexpected channel_mask.
Carl Eugen Hoyos [Wed, 12 Oct 2016 10:34:48 +0000 (12:34 +0200)]
lavf/riffenc: Always write unexpected channel_mask.

Allows to write arbitrary channel masks also for 16bit 48kHz pcm.

7 years agoaacenc: use the decoder's lcg PRNG
Rostislav Pehlivanov [Sat, 8 Oct 2016 00:47:04 +0000 (01:47 +0100)]
aacenc: use the decoder's lcg PRNG

Using lfg was an overkill in this case where the random numbers
were only used for encoder descisions. Should increase result
uniformity between different FPUs and gives a slight speedup.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
7 years agolavc/mediacodecdec: rename dequeued_buffer_nb to output_buffer_count
Matthieu Bouron [Thu, 6 Oct 2016 09:56:24 +0000 (11:56 +0200)]
lavc/mediacodecdec: rename dequeued_buffer_nb to output_buffer_count

7 years agolavc/mediacodecdec: remove first output buffer timing debug log
Matthieu Bouron [Thu, 6 Oct 2016 09:53:13 +0000 (11:53 +0200)]
lavc/mediacodecdec: remove first output buffer timing debug log

7 years agoavformat/matroskaenc: don't write a FlagInterlaced element if it would write the...
James Almer [Tue, 11 Oct 2016 17:36:16 +0000 (14:36 -0300)]
avformat/matroskaenc: don't write a FlagInterlaced element if it would write the default value

The spec says:
"Mandatory elements with a default value may be left out of the file. In the absence
of a mandatory element, the element's default value is used."

Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agodoc/developer: Mention mime type and patchwork in "Submitting patches"
Michael Niedermayer [Tue, 11 Oct 2016 01:05:48 +0000 (03:05 +0200)]
doc/developer: Mention mime type and patchwork in "Submitting patches"

Suggested-by: ronald
Reviewed-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolavfi/metadata: fix metadata deletion if comparison returns false
Marton Balint [Thu, 6 Oct 2016 21:43:03 +0000 (23:43 +0200)]
lavfi/metadata: fix metadata deletion if comparison returns false

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years agodoc: fix various typos and grammar errors
Moritz Barsnick [Sun, 9 Oct 2016 18:51:57 +0000 (20:51 +0200)]
doc: fix various typos and grammar errors

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolavf/matroskaenc: Always write V_QUICKTIME extradata.
Carl Eugen Hoyos [Tue, 11 Oct 2016 08:07:18 +0000 (10:07 +0200)]
lavf/matroskaenc: Always write V_QUICKTIME extradata.

Fixes ticket #5872.

7 years agolavf/aiffenc: Write extradata also for qcelp.
Carl Eugen Hoyos [Tue, 11 Oct 2016 07:52:34 +0000 (09:52 +0200)]
lavf/aiffenc: Write extradata also for qcelp.

Fixes ticket #4009.

7 years agolavf/aiffdec: Default to full rate qcelp as QT does.
Carl Eugen Hoyos [Tue, 11 Oct 2016 07:49:35 +0000 (09:49 +0200)]
lavf/aiffdec: Default to full rate qcelp as QT does.

Fixes decoding of the output file from ticket #4009.

7 years agolavf/mxfenc: Do not print a useless error message.
Carl Eugen Hoyos [Sat, 8 Oct 2016 09:23:41 +0000 (11:23 +0200)]
lavf/mxfenc: Do not print a useless error message.

The option d10_channelcount only exists for mxf_d10.

7 years agoavformat/matroskaenc: fix targets for attachment tags
James Almer [Fri, 7 Oct 2016 05:46:22 +0000 (02:46 -0300)]
avformat/matroskaenc: fix targets for attachment tags

Attachment tags were being written targeting non-existent streams in the
output file.
Also filter filename and mimetype entries, as they are standard elements
in the Attachment master.

Signed-off-by: James Almer <jamrial@gmail.com>
7 years agolavfi/pan: renormalize negative gain coefficients properly
Moritz Barsnick [Sun, 9 Oct 2016 01:49:15 +0000 (03:49 +0200)]
lavfi/pan: renormalize negative gain coefficients properly

The parser for the outdef will accept a negative value for the first
named channel's gain. As negative values effectively only invert the
phase of the signal, and not negate the level, the gains' absolute
values must be used to correctly accumulate the levels.

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoconfigure: loongson disable mipsfpu and mipsdsp optimizations
Zhou Xiaoyong [Mon, 10 Oct 2016 08:07:20 +0000 (16:07 +0800)]
configure: loongson disable mipsfpu and mipsdsp optimizations

The optimizations of mipsdsp are not supported by all loongson cpu.
The optimizations of mipsfpu and mipsdspr2 maybe supported by 3A2000/3A3000/3A4000 but not tested yet.
Loongson only support mmi (loongSIMD) optimizations now.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavcodec/d3d11va: use the proper slice index
Steve Lhomme [Wed, 5 Oct 2016 10:52:15 +0000 (12:52 +0200)]
avcodec/d3d11va: use the proper slice index

The slice index expected by D3D11VA is the one from the texture not from the
array or texture/slices.

In VLC the slices we provide the decoder don't start from 0 and thus pictures
appear in bogus order. With possible crashes and corruptions when using an
invalid index.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavutil/hwcontext_vdpau: Fix warning: "GET_CALLBACK" redefined
Michael Niedermayer [Mon, 10 Oct 2016 00:41:24 +0000 (02:41 +0200)]
avutil/hwcontext_vdpau: Fix warning: "GET_CALLBACK" redefined

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavformat/movenc: Check frame rate in mov_write_uuidprof_tag()
Michael Niedermayer [Sun, 9 Oct 2016 01:05:27 +0000 (03:05 +0200)]
avformat/movenc: Check frame rate in mov_write_uuidprof_tag()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavformat/movenc: Switch mov_write_uuidprof_tag() to avg_frame_rate
Michael Niedermayer [Sun, 9 Oct 2016 00:42:57 +0000 (02:42 +0200)]
avformat/movenc: Switch mov_write_uuidprof_tag() to avg_frame_rate

Using the stream timebase simply overflows
Fix integer overflow in psp framerate computation

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavformat/utils: Update codec_id before using it in the parser init
Michael Niedermayer [Sat, 8 Oct 2016 15:49:10 +0000 (17:49 +0200)]
avformat/utils: Update codec_id before using it in the parser init

Fixes assertion failure

Fixes: input.avi
Found-by: 连一汉 <lianyihan@360.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavfilter/firequalizer: fix blackman window calculation
Muhammad Faiz [Sun, 9 Oct 2016 19:27:31 +0000 (02:27 +0700)]
avfilter/firequalizer: fix blackman window calculation

Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
7 years agocmdutils: fix typos
Moritz Barsnick [Sun, 9 Oct 2016 10:57:02 +0000 (12:57 +0200)]
cmdutils: fix typos

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolavf: fix typos
Moritz Barsnick [Sun, 9 Oct 2016 10:57:01 +0000 (12:57 +0200)]
lavf: fix typos

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolavfi: fix typos
Moritz Barsnick [Sun, 9 Oct 2016 10:57:00 +0000 (12:57 +0200)]
lavfi: fix typos

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolavc: fix typos
Moritz Barsnick [Sun, 9 Oct 2016 10:56:59 +0000 (12:56 +0200)]
lavc: fix typos

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agotools: fix grammar error
Moritz Barsnick [Sun, 9 Oct 2016 10:56:58 +0000 (12:56 +0200)]
tools: fix grammar error

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agodoc/examples/http_multiclient: Fix "doc/examples/http_multiclient.c:43:9: warning...
Michael Niedermayer [Sat, 8 Oct 2016 22:32:08 +0000 (00:32 +0200)]
doc/examples/http_multiclient: Fix "doc/examples/http_multiclient.c:43:9: warning: passing argument 4 of av_opt_get from incompatible pointer type"

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoMerge commit '398f015f077c6a2406deffd9e37ff34b9c7bb3bc'
Hendrik Leppkes [Sat, 8 Oct 2016 09:38:47 +0000 (11:38 +0200)]
Merge commit '398f015f077c6a2406deffd9e37ff34b9c7bb3bc'

* commit '398f015f077c6a2406deffd9e37ff34b9c7bb3bc':
  avconv: buffer the packets written while the muxer is not initialized

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
7 years agoavformat/matroskaenc: fix Tags master on seekable output if there are tags after...
James Almer [Fri, 7 Oct 2016 05:32:10 +0000 (02:32 -0300)]
avformat/matroskaenc: fix Tags master on seekable output if there are tags after the last stream duration

The dynamic AVIOContext would get closed pointing to the wrong position
in the buffer.
This is a regression since 650e17d88b63b5aca6e0a43483e89e64b0f7d2dd.

Reviewed-by: Dave Rice <dave@dericed.com>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoffmpeg: Fix bitstream typo
Michael Niedermayer [Fri, 7 Oct 2016 14:05:09 +0000 (16:05 +0200)]
ffmpeg: Fix bitstream typo

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoffmpeg: explicitly write headers for files with no streams
Hendrik Leppkes [Fri, 7 Oct 2016 13:44:39 +0000 (15:44 +0200)]
ffmpeg: explicitly write headers for files with no streams

Recent changes to ffmpeg.c tied output file init to stream init, which broke
stream-less files, specifically ffmetadata output.

7 years agoavformat/matroskaenc: Fix () error
Michael Niedermayer [Fri, 7 Oct 2016 12:01:20 +0000 (14:01 +0200)]
avformat/matroskaenc: Fix () error

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoMerge commit '1c169782cae6c5c430ff62e7d7272dc9d0e8d527'
Hendrik Leppkes [Fri, 7 Oct 2016 12:39:00 +0000 (14:39 +0200)]
Merge commit '1c169782cae6c5c430ff62e7d7272dc9d0e8d527'

* commit '1c169782cae6c5c430ff62e7d7272dc9d0e8d527':
  avconv: explicitly postpone writing the header until all streams are initialized

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
7 years agoMerge commit '5b63b15663d31f50ce45d980b904a68795ad3f7a'
Hendrik Leppkes [Fri, 7 Oct 2016 11:29:11 +0000 (13:29 +0200)]
Merge commit '5b63b15663d31f50ce45d980b904a68795ad3f7a'

* commit '5b63b15663d31f50ce45d980b904a68795ad3f7a':
  lavfi: set the link hwframes context before configuring the dst input

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
7 years agoMerge commit '0c9c4004ed57de210b4d83c7b39bbfb00b86b9af'
Hendrik Leppkes [Fri, 7 Oct 2016 11:28:53 +0000 (13:28 +0200)]
Merge commit '0c9c4004ed57de210b4d83c7b39bbfb00b86b9af'

* commit '0c9c4004ed57de210b4d83c7b39bbfb00b86b9af':
  omx: Don't return > 0 from omx_encode_frame

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
7 years agoMerge commit '31aa5335c390c83a6c3ea955b155067c36c4a2c4'
Hendrik Leppkes [Fri, 7 Oct 2016 11:23:49 +0000 (13:23 +0200)]
Merge commit '31aa5335c390c83a6c3ea955b155067c36c4a2c4'

* commit '31aa5335c390c83a6c3ea955b155067c36c4a2c4':
  libopenh264enc: Fix inconsistent whitespace

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
7 years agoMerge commit '4f98bb7b6d0323d9ecc3bebd6e24d46a3a374bad'
Hendrik Leppkes [Fri, 7 Oct 2016 11:23:38 +0000 (13:23 +0200)]
Merge commit '4f98bb7b6d0323d9ecc3bebd6e24d46a3a374bad'

* commit '4f98bb7b6d0323d9ecc3bebd6e24d46a3a374bad':
  msmpeg4: Remove commented-out debug logging code

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
7 years agoMerge commit 'eedbeb4c2737f28844157fae4bd87ed42a61bb1d'
Hendrik Leppkes [Fri, 7 Oct 2016 11:22:25 +0000 (13:22 +0200)]
Merge commit 'eedbeb4c2737f28844157fae4bd87ed42a61bb1d'

* commit 'eedbeb4c2737f28844157fae4bd87ed42a61bb1d':
  msmpeg4: Remove some broken, commented-out cruft

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
7 years agoMerge commit '3c84eaae9da0dc450ae99c65bb6b9865e3ba7fad'
Hendrik Leppkes [Fri, 7 Oct 2016 11:21:51 +0000 (13:21 +0200)]
Merge commit '3c84eaae9da0dc450ae99c65bb6b9865e3ba7fad'

* commit '3c84eaae9da0dc450ae99c65bb6b9865e3ba7fad':
  h264: Eliminate unused but set variable

Noop, the variable doesn't exist in our code.

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
7 years agoMerge commit '4dbfcd07570a9e45e9597561023adb6da26f27f6'
Hendrik Leppkes [Fri, 7 Oct 2016 11:20:04 +0000 (13:20 +0200)]
Merge commit '4dbfcd07570a9e45e9597561023adb6da26f27f6'

* commit '4dbfcd07570a9e45e9597561023adb6da26f27f6':
  librtmp: Avoid an infiniloop setting connection arguments

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
7 years agoMerge commit 'fe498ef5144d3712b887f44a0c5e654add99ead7'
Hendrik Leppkes [Fri, 7 Oct 2016 11:19:53 +0000 (13:19 +0200)]
Merge commit 'fe498ef5144d3712b887f44a0c5e654add99ead7'

* commit 'fe498ef5144d3712b887f44a0c5e654add99ead7':
  hwcontext_vaapi: Return all formats for constraints without config

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
7 years agoMerge commit '11b8030309ee93d79b3a6cd4b83bf00757db1598'
Hendrik Leppkes [Fri, 7 Oct 2016 11:19:32 +0000 (13:19 +0200)]
Merge commit '11b8030309ee93d79b3a6cd4b83bf00757db1598'

* commit '11b8030309ee93d79b3a6cd4b83bf00757db1598':
  vaapi_encode: Fix fallback when input does not match any format

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
7 years agoMerge commit '8c3c7b8920033d61c7aa15a4465b759c84e5958f'
Hendrik Leppkes [Fri, 7 Oct 2016 11:19:06 +0000 (13:19 +0200)]
Merge commit '8c3c7b8920033d61c7aa15a4465b759c84e5958f'

* commit '8c3c7b8920033d61c7aa15a4465b759c84e5958f':
  dxva2_h264: Remove an unused variable

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
7 years agoMerge commit 'dc7501e524dc3270335749302c7aa449973625f3'
Hendrik Leppkes [Fri, 7 Oct 2016 11:18:05 +0000 (13:18 +0200)]
Merge commit 'dc7501e524dc3270335749302c7aa449973625f3'

* commit 'dc7501e524dc3270335749302c7aa449973625f3':
  checkasm: Issue emms after benchmarking functions

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
7 years agoMerge commit 'beb62dac629603eb074a44c44389c230b5caac7c'
Hendrik Leppkes [Fri, 7 Oct 2016 11:16:36 +0000 (13:16 +0200)]
Merge commit 'beb62dac629603eb074a44c44389c230b5caac7c'

* commit 'beb62dac629603eb074a44c44389c230b5caac7c':
  Use AVFrame.pts instead of deprecated pkt_pts.

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
7 years agoMerge commit '32c8359093d1ff4f45ed19518b449b3ac3769d27'
Hendrik Leppkes [Fri, 7 Oct 2016 10:55:50 +0000 (12:55 +0200)]
Merge commit '32c8359093d1ff4f45ed19518b449b3ac3769d27'

* commit '32c8359093d1ff4f45ed19518b449b3ac3769d27':
  lavc: export the timestamps when decoding in AVFrame.pts

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
7 years agoffmpeg: remove unused and errorneous AVFrame timestamp check
Hendrik Leppkes [Sat, 1 Oct 2016 14:15:45 +0000 (16:15 +0200)]
ffmpeg: remove unused and errorneous AVFrame timestamp check

Decoders have previously not used AVFrame.pts, and with the upcoming
deprecation of pkt_pts (in favor of pts), this would lead to an errorneous
interpration of timestamps.

7 years agotests: add -nostdin flag when calling ffmpeg
Rodger Combs [Thu, 8 Sep 2016 00:16:34 +0000 (19:16 -0500)]
tests: add -nostdin flag when calling ffmpeg

This fixes a long-standing issue where running FATE in parallel could result
in the terminal being left misconfigured, particularly if a test failed or
was canceled wtih ^C.

7 years agoffmpeg: don't reconfigure terminal if we're not taking input from stdin
Rodger Combs [Thu, 8 Sep 2016 00:16:27 +0000 (19:16 -0500)]
ffmpeg: don't reconfigure terminal if we're not taking input from stdin

7 years agoavformat/matroskaenc: add an option to disable writting CRC32 elements
James Almer [Thu, 6 Oct 2016 21:17:04 +0000 (18:17 -0300)]
avformat/matroskaenc: add an option to disable writting CRC32 elements

Also add missing Changelog entry.

Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/matroskaenc: write a CRC32 element on Info
James Almer [Mon, 3 Oct 2016 22:29:28 +0000 (19:29 -0300)]
avformat/matroskaenc: write a CRC32 element on Info

Finishes implementing ticket #4347

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/matroskaenc: write a CRC32 element on Tags
James Almer [Mon, 3 Oct 2016 22:27:30 +0000 (19:27 -0300)]
avformat/matroskaenc: write a CRC32 element on Tags

Implements part of ticket #4347

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/matroskaenc: write a CRC32 element on Attachments
James Almer [Mon, 3 Oct 2016 22:23:55 +0000 (19:23 -0300)]
avformat/matroskaenc: write a CRC32 element on Attachments

Implements part of ticket #4347

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/matroskaenc: write a CRC32 element on Chapters
James Almer [Mon, 3 Oct 2016 22:20:53 +0000 (19:20 -0300)]
avformat/matroskaenc: write a CRC32 element on Chapters

Implements part of ticket #4347

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/matroskaenc: write a CRC32 element on Tracks
James Almer [Mon, 3 Oct 2016 22:20:11 +0000 (19:20 -0300)]
avformat/matroskaenc: write a CRC32 element on Tracks

Implements part of ticket #4347

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/matroskaenc: write a CRC32 element on Cues
James Almer [Mon, 3 Oct 2016 22:15:24 +0000 (19:15 -0300)]
avformat/matroskaenc: write a CRC32 element on Cues

Implements part of ticket #4347

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/matroskaenc: write a CRC32 element on SeekHead
James Almer [Mon, 3 Oct 2016 21:59:42 +0000 (18:59 -0300)]
avformat/matroskaenc: write a CRC32 element on SeekHead

Implements part of ticket #4347

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/matroskaenc: write a CRC32 element on each Cluster
James Almer [Mon, 3 Oct 2016 02:46:19 +0000 (23:46 -0300)]
avformat/matroskaenc: write a CRC32 element on each Cluster

Implements part of ticket #4347

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/matroskaenc: always use a dynamic buffer when writting clusters
James Almer [Sun, 2 Oct 2016 17:37:11 +0000 (14:37 -0300)]
avformat/matroskaenc: always use a dynamic buffer when writting clusters

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/matroskaenc: print debug message with cluster offsets only if the output...
James Almer [Sun, 2 Oct 2016 17:14:51 +0000 (14:14 -0300)]
avformat/matroskaenc: print debug message with cluster offsets only if the output is seekable

Printing the dynamic buffer offset is useless.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/matroskadec: check for more reserved values on some Colour elements
James Almer [Tue, 27 Sep 2016 22:43:08 +0000 (19:43 -0300)]
avformat/matroskadec: check for more reserved values on some Colour elements

Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/matroskaenc: don't write an empty Colour master element
James Almer [Tue, 27 Sep 2016 22:20:57 +0000 (19:20 -0300)]
avformat/matroskaenc: don't write an empty Colour master element

Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoconfigure: Also try -mstack-alignment for clang,
Carl Eugen Hoyos [Thu, 6 Oct 2016 16:44:29 +0000 (18:44 +0200)]
configure: Also try -mstack-alignment for clang,

Fixes stack alignment on x86_32 FreeBSD.
Fixes ticket #5231.

7 years agolavc/mediacodecdec: fix size variable shadowing in ff_mediacodec_dec_decode
Matthieu Bouron [Thu, 6 Oct 2016 10:04:57 +0000 (12:04 +0200)]
lavc/mediacodecdec: fix size variable shadowing in ff_mediacodec_dec_decode

Fixes incompatible pointer type warning on 64-bit systems.

7 years agoavcodec/qsvenc_h264: fix segfault when a53 SEI is not available
Nablet Developer [Wed, 5 Oct 2016 13:34:25 +0000 (09:34 -0400)]
avcodec/qsvenc_h264: fix segfault when a53 SEI is not available

Signed-off-by: Nablet Developer <sdk@nablet.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolavf/utils: avoid using programs for duration when there's only one
Rodger Combs [Wed, 5 Oct 2016 11:38:24 +0000 (06:38 -0500)]
lavf/utils: avoid using programs for duration when there's only one

This allows us to be more selective about the streams we derive durations from
(specifically, ignoring text streams with outlier end times) in the common case

7 years agolavf/utils: ignore outlier subtitle and data stream end times as well
Rodger Combs [Wed, 5 Oct 2016 11:37:57 +0000 (06:37 -0500)]
lavf/utils: ignore outlier subtitle and data stream end times as well

7 years agopixfmt: Use enum assignment for aliases
Timothy Gu [Mon, 22 Aug 2016 00:02:02 +0000 (17:02 -0700)]
pixfmt: Use enum assignment for aliases

This way, Doxygen is happier as aliases are now grouped together, and
it never handled #define's in an enum well in the first place.

Y400A already exists as an enum assignment.

7 years agopixdesc: Order function prototypes semantically
Timothy Gu [Sun, 21 Aug 2016 23:56:05 +0000 (16:56 -0700)]
pixdesc: Order function prototypes semantically

7 years agoavutil/mips/generic_macros_msa: rename macro variable which causes segfault for mips r6
Shivraj Patil [Wed, 5 Oct 2016 12:22:24 +0000 (17:52 +0530)]
avutil/mips/generic_macros_msa: rename macro variable which causes segfault for mips r6

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavformat/riffenc: added possibility to set first to ninth audio language for RIFF...
Florian Diemer [Sun, 2 Oct 2016 17:01:05 +0000 (19:01 +0200)]
avformat/riffenc: added possibility to set first to ninth audio language for RIFF taged files (e.g. avi files)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoaf_hdcd: disable auto-convert by default
Burt P [Wed, 5 Oct 2016 17:52:56 +0000 (12:52 -0500)]
af_hdcd: disable auto-convert by default

As all known valid HDCD sample formats and sample rates are now handled
by the filter, remove the scan that "invades the privacy" of the filter graph
and turn off autoconvert by default as requested by Nicolas George.

http://ffmpeg.org/pipermail/ffmpeg-devel/2016-August/197571.html

Signed-off-by: Burt P <pburt0@gmail.com>
7 years agoaf_hdcd: add experimental 20 and 24-bit decoding support
Burt P [Sun, 2 Oct 2016 07:25:13 +0000 (02:25 -0500)]
af_hdcd: add experimental 20 and 24-bit decoding support

I don't have any legitimate 20 or 24-bit HDCD to test. It is known
that the PM Model Two would insert packets into 20 and 24-bit output,
but I have no idea what differences in behavior existed when decoding
20 or 24-bit. For now, as with 16-bit, PE (if enabled) will expand the
top 3dB into 9dB and LLE (gain adjust) will be applied if signaled.

Signed-off-by: Burt P <pburt0@gmail.com>
7 years agoaf_hdcd: hdcd_scan() and hdcd_integrate() handle stereo and single channel
Burt P [Wed, 28 Sep 2016 11:51:50 +0000 (06:51 -0500)]
af_hdcd: hdcd_scan() and hdcd_integrate() handle stereo and single channel

New versions of hdcd_scan() and hdcd_integrate() that also do the
work of hdcd_scan_stereo() and hdcd_integrate_stereo().

Some code split into previously separate functions to remove
duplication is now merged back into each function in the single
place where it is used.

Signed-off-by: Burt P <pburt0@gmail.com>
7 years agoaf_hdcd: support s16p (WavPack) directly
Burt P [Wed, 28 Sep 2016 11:18:19 +0000 (06:18 -0500)]
af_hdcd: support s16p (WavPack) directly

The buffer is already being copied anyway, so interlace the planar
format during the copy and remove one use of auto-convert.

Signed-off-by: Burt P <pburt0@gmail.com>
7 years agoaf_hdcd: allow all HDCD sample rates
Burt P [Wed, 7 Sep 2016 15:48:03 +0000 (10:48 -0500)]
af_hdcd: allow all HDCD sample rates

The PM Model Two could output HDCD-encoded audio in CD and all
DVD-Audio sample rates. (44100, 48000, 88200, 96000, 176400, and
192000 Hz)

Signed-off-by: Burt P <pburt0@gmail.com>
7 years agoaf_hdcd: add mono as a supported channel layout
Burt P [Wed, 28 Sep 2016 11:25:03 +0000 (06:25 -0500)]
af_hdcd: add mono as a supported channel layout

Signed-off-by: Burt P <pburt0@gmail.com>
7 years agoChangeLog: Add latest CUVID changes
Philip Langdale [Wed, 5 Oct 2016 15:27:51 +0000 (08:27 -0700)]
ChangeLog: Add latest CUVID changes

7 years agolavc/tiff: Print compression debug information.
Carl Eugen Hoyos [Wed, 5 Oct 2016 11:49:17 +0000 (13:49 +0200)]
lavc/tiff: Print compression debug information.

7 years agolavc: set best effort timestamp if unset when using new decode API
wm4 [Wed, 5 Oct 2016 09:35:54 +0000 (11:35 +0200)]
lavc: set best effort timestamp if unset when using new decode API

Some API users (in particular ffmpeg.c) check the best effort timestamp
only.

7 years agodoc/developer: remove duplicate policies and fix error
Josh de Kock [Tue, 4 Oct 2016 22:10:00 +0000 (23:10 +0100)]
doc/developer: remove duplicate policies and fix error

Fixes regression as of ee72b6d1

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Josh de Kock <josh@itanimul.li>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/matroskaenc: don't reserve space for stream duration tags if the output...
James Almer [Sun, 2 Oct 2016 15:57:39 +0000 (12:57 -0300)]
avformat/matroskaenc: don't reserve space for stream duration tags if the output is not seekable

The durations are never written in that situation.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/matroska: write FlagInterlaced element in WebM
James Almer [Tue, 4 Oct 2016 22:42:55 +0000 (19:42 -0300)]
avformat/matroska: write FlagInterlaced element in WebM

It's listed as supported in both https://www.webmproject.org/docs/container/
and https://matroska.org/technical/specs/index.html

Reviewed-by: Dave Rice <dave@dericed.com>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agodoc/developer: add sections for policies
Josh de Kock [Sat, 1 Oct 2016 22:52:58 +0000 (23:52 +0100)]
doc/developer: add sections for policies

And sort policies into these sections.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years agodoc/developer: reword some of the policies
Josh de Kock [Sat, 1 Oct 2016 22:48:29 +0000 (23:48 +0100)]
doc/developer: reword some of the policies

Explicitly state that FATE should pass, and code should work
for all reviewers who tested.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years agolavc/ivi_dsp.c: fix warnings due to indentation
Adriano Pallavicino [Sun, 2 Oct 2016 18:42:44 +0000 (20:42 +0200)]
lavc/ivi_dsp.c: fix warnings due to indentation

Signed-off-by: Adriano Pallavicino <adriano.pallavicino@gmail.com>
Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years agoavcodec/cuvid: don't align frame size
Timo Rothenpieler [Tue, 4 Oct 2016 10:58:42 +0000 (12:58 +0200)]
avcodec/cuvid: don't align frame size

hwcontext_cuda was changed to take care of proper alignment internally

7 years agolavf/mpegtsenc: fix autobsf when the first NAL is 0x1<XX> bytes
Rodger Combs [Sun, 25 Sep 2016 19:43:42 +0000 (14:43 -0500)]
lavf/mpegtsenc: fix autobsf when the first NAL is 0x1<XX> bytes

7 years agoconfigure: add linker export script support on Darwin
Rodger Combs [Fri, 9 Sep 2016 23:12:34 +0000 (18:12 -0500)]
configure: add linker export script support on Darwin

This isn't a "version script" in the usual sense, since it doesn't set symbol
versions directly. Instead, the version for the whole .dylib is set in the
linker flags, and we generate a list of symbol patterns to export. This allows
us to keep our local symbols (e.g. ff_*) local on the platform.

The Darwin linker's exported_symbols_list format is a bit different than the
one used by the GNU linker. It doesn't handle local symbols at all, since when
a list is provided, all unlisted symbols are local by default; thus, we remove
local sections. It doesn't handle per-version sections, so we remove the
headers and brackets. It expects symbols to be prefixed with an underscore.
It errors if a listed symbol with no wildcards is not present in the output,
so we append an asterisk to any symbol that doesn't already end in one.

7 years agoavformat/hlsenc: support multi level path in m3u8 with filename
Steven Liu [Mon, 26 Sep 2016 07:51:02 +0000 (15:51 +0800)]
avformat/hlsenc: support multi level path in m3u8 with filename

before patch:

localhost:osx liuqi$ tree 20160926/
20160926/
└── file-20160909
    └── 26
        └── 16
            └── 15
                ├── 46
                │   ├── 13.ts
                │   ├── 25.ts
                │   ├── 36.ts
                │   ├── 45.ts
                │   └── 54.ts
                └── 47
                    ├── 04.ts
                    ├── 14.ts
                    ├── 24.ts
                    └── 35.ts

6 directories, 9 files
localhost:osx liuqi$ cat out.m3u8
 #EXTM3U
 #EXT-X-VERSION:3
 #EXT-X-TARGETDURATION:12
 #EXT-X-MEDIA-SEQUENCE:0
 #EXTINF:11.360000,
 13.ts
 #EXTINF:10.800000,
 25.ts
 #EXTINF:9.120000,
 36.ts
 #EXTINF:8.760000,
 45.ts
 #EXTINF:10.200000,
 54.ts
 #EXTINF:10.720000,
 04.ts
 #EXTINF:9.600000,
 14.ts
 #EXTINF:10.600000,
 24.ts
 #EXTINF:8.760000,
 35.ts
 #EXT-X-ENDLIST

after patch:

localhost:osx liuqi$ tree 20160926/
20160926/
└── file-20160909
    └── 26
        └── 16
            └── 15
                ├── 46
                │   ├── 13.ts
                │   ├── 25.ts
                │   ├── 36.ts
                │   ├── 45.ts
                │   └── 54.ts
                └── 47
                    ├── 04.ts
                    ├── 14.ts
                    ├── 24.ts
                    └── 35.ts

6 directories, 9 files
localhost:osx liuqi$ cat out.m3u8
 #EXTM3U
 #EXT-X-VERSION:3
 #EXT-X-TARGETDURATION:12
 #EXT-X-MEDIA-SEQUENCE:0
 #EXTINF:11.360000,
 20160926/file-20160909/26/16/15/46/13.ts
 #EXTINF:10.800000,
 20160926/file-20160909/26/16/15/46/25.ts
 #EXTINF:9.120000,
 20160926/file-20160909/26/16/15/46/36.ts
 #EXTINF:8.760000,
 20160926/file-20160909/26/16/15/46/45.ts
 #EXTINF:10.200000,
 20160926/file-20160909/26/16/15/46/54.ts
 #EXTINF:10.720000,
 20160926/file-20160909/26/16/15/47/04.ts
 #EXTINF:9.600000,
 20160926/file-20160909/26/16/15/47/14.ts
 #EXTINF:10.600000,
 20160926/file-20160909/26/16/15/47/24.ts
 #EXTINF:8.760000,
 20160926/file-20160909/26/16/15/47/35.ts
 #EXT-X-ENDLIST

Signed-off-by: Steven Liu <lingjiujianke@gmail.com>
7 years agolavf/aviobuf.c: Adapt avio_accept and avio_handshake to new AVIOContext API
Stephan Holljes [Fri, 30 Sep 2016 19:17:54 +0000 (21:17 +0200)]
lavf/aviobuf.c: Adapt avio_accept and avio_handshake to new AVIOContext API

Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
7 years agolavd/openal: don't return zero sized packet if no samples are available
Marton Balint [Fri, 30 Sep 2016 09:08:51 +0000 (11:08 +0200)]
lavd/openal: don't return zero sized packet if no samples are available

Signed-off-by: Marton Balint <cus@passwd.hu>
7 years agolavc/utils: disallow zero sized packets with data set in avcodec_send_packet
Marton Balint [Fri, 30 Sep 2016 08:58:19 +0000 (10:58 +0200)]
lavc/utils: disallow zero sized packets with data set in avcodec_send_packet

Reviewed-by: wm4 <nfxjfg@googlemail.com>
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>