]> git.sesse.net Git - ffmpeg/log
ffmpeg
7 years agolavfi/curves: remove pointless logging since the addition of plot option
Clément Bœsch [Fri, 22 Jul 2016 20:01:37 +0000 (22:01 +0200)]
lavfi/curves: remove pointless logging since the addition of plot option

7 years agolavfi/curves: add plot option
Clément Bœsch [Thu, 21 Jul 2016 23:17:44 +0000 (01:17 +0200)]
lavfi/curves: add plot option

7 years agolavfi/curves: do not automatically insert points at x=0 and x=1
Clément Bœsch [Sat, 16 Jul 2016 11:46:32 +0000 (13:46 +0200)]
lavfi/curves: do not automatically insert points at x=0 and x=1

There is actually a need for the origin and end point not to be defined.
We can not automatically insert them with the y value of the first and
last point as it will influence the curves in a wrong way.

Fixes #5397

7 years agotests/fate/filter-audio: fate-filter-chorus: Randomly change parameters to some value...
Michael Niedermayer [Sun, 24 Jul 2016 01:34:33 +0000 (03:34 +0200)]
tests/fate/filter-audio: fate-filter-chorus: Randomly change parameters to some values which pass on arm/mips/x86-32/64

If this still doesnt give the same results on all platforms then this should be
disabled

Found-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolibavutil/opt: Small bugfix in example.
Kacper Michajłow [Sat, 23 Jul 2016 19:43:06 +0000 (21:43 +0200)]
libavutil/opt: Small bugfix in example.

Fix const corectness and zero init the struct. This example code would actually crash when initializing string.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavformat/tee: Rescale ts using av_packet_rescale_ts
Jan Sebechlebsky [Sat, 16 Jul 2016 11:27:50 +0000 (13:27 +0200)]
avformat/tee: Rescale ts using av_packet_rescale_ts

This ensures that AV_NOPTS_VALUE value is handled
correctly.

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years agolibavcodec/dnxhdenc: add support for dnxhr encoding
Mark Reid [Sun, 17 Jul 2016 02:37:39 +0000 (19:37 -0700)]
libavcodec/dnxhdenc: add support for dnxhr encoding

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolibavcodec/dnxhdenc: add support for variable mircoblock counts
Mark Reid [Sun, 17 Jul 2016 02:37:38 +0000 (19:37 -0700)]
libavcodec/dnxhdenc: add support for variable mircoblock counts

dnxhr has variable resolution, 8160 is the mb num for 1920x1080

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agotests/fate/dnxhd: add dnxhr prefix tests
Mark Reid [Thu, 21 Jul 2016 01:15:38 +0000 (18:15 -0700)]
tests/fate/dnxhd: add dnxhr prefix tests

The data offset value in the prefix increases as the heights increases.
This test adds a tests for some common dnxhr heights.

can somebody add the following test footage to fate/dnxhd?
https://dl.dropboxusercontent.com/u/170952/fate/dnxhd/prefix-256x1536.dnxhr
https://dl.dropboxusercontent.com/u/170952/fate/dnxhd/prefix-256x1716.dnxhr
https://dl.dropboxusercontent.com/u/170952/fate/dnxhd/prefix-256x2048.dnxhr
https://dl.dropboxusercontent.com/u/170952/fate/dnxhd/prefix-256x2160.dnxhr
https://dl.dropboxusercontent.com/u/170952/fate/dnxhd/prefix-256x3212.dnxhr

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolibavformat/movenc: add dnxhr compatibility for apple players
Mark Reid [Fri, 22 Jul 2016 20:30:15 +0000 (13:30 -0700)]
libavformat/movenc: add dnxhr compatibility for apple players

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoMAINTAINERS: add myself to the project server
Nikolay Aleksandrov [Fri, 22 Jul 2016 14:15:20 +0000 (16:15 +0200)]
MAINTAINERS: add myself to the project server

I've been helping out with the project servers' maintenance and migration
to the new machine hosted in Telepoint's data center in Sofia, BG.

Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolibavformat/matroskadec: fix unsigned overflow to improve seeking
Chris Cunningham [Thu, 21 Jul 2016 19:01:45 +0000 (12:01 -0700)]
libavformat/matroskadec: fix unsigned overflow to improve seeking

When seeking a file where codec delay is greater than 0, the timecode
can become negative after offsetting by the codec delay. Failing to cast
to a signed int64 will cause the check against skip_to_timecode to evaluate
true for these negative values. This breaks the "skip_to" seek mechanism.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoffmpeg.c: copy video profile when using stream_copy
Mark Reid [Fri, 22 Jul 2016 20:30:14 +0000 (13:30 -0700)]
ffmpeg.c: copy video profile when using stream_copy

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolavc/intrax8: Use correct printf specifier for size_t on Windows.
Carl Eugen Hoyos [Fri, 22 Jul 2016 17:23:01 +0000 (19:23 +0200)]
lavc/intrax8: Use correct printf specifier for size_t on Windows.

7 years agoavcodec/mpeg4_unpack_bframes_bsf: Check av_packet_from_data() return value
Jan Sebechlebsky [Fri, 22 Jul 2016 15:59:30 +0000 (17:59 +0200)]
avcodec/mpeg4_unpack_bframes_bsf: Check av_packet_from_data() return value

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavcodec/mpeg4_unpack_bframes_bsf: Copy packet props
Jan Sebechlebsky [Fri, 22 Jul 2016 15:59:29 +0000 (17:59 +0200)]
avcodec/mpeg4_unpack_bframes_bsf: Copy packet props

mpeg4_unpack_bframes_bsf bitstream filters constructs
resulting packet using av_packet_from_data() function.
This function however modifies only buffer (data) and leaves
other fields untouched, so the content of other fields
of the output packet is undefined.
It is working with old BSF API, since old API filters
just data and the packet fields are copied in
av_apply_bitstream_filters from input packet.

This change fixes the behaviour for the new BSF API.

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolibx264: Increase x264 opts character limit to 4096
Sasi Inguva [Fri, 22 Jul 2016 01:52:41 +0000 (18:52 -0700)]
libx264: Increase x264 opts character limit to 4096

Signed-off-by: Sasi Inguva <isasi@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agodoc/muxers: improve hlsenc description
Steven Liu [Mon, 18 Jul 2016 12:10:25 +0000 (20:10 +0800)]
doc/muxers: improve hlsenc description

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agodoc/muxers: add hls_flags option description
Steven Liu [Mon, 18 Jul 2016 12:05:35 +0000 (20:05 +0800)]
doc/muxers: add hls_flags option description

Signed-off-by: Steven Liu <liuqi@gosun.com>
Reviewed-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agofate: add test for extrastereo filter
Petru Rares Sincraian [Thu, 21 Jul 2016 05:21:01 +0000 (07:21 +0200)]
fate: add test for extrastereo filter

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavformat/teeproto: Fix memset sizeof
Michael Niedermayer [Fri, 22 Jul 2016 08:34:14 +0000 (10:34 +0200)]
avformat/teeproto: Fix memset sizeof

Found-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolibvpxenc,cosmetics: rename common fns vp8 -> vpx
James Zern [Thu, 21 Jul 2016 03:41:55 +0000 (20:41 -0700)]
libvpxenc,cosmetics: rename common fns vp8 -> vpx

+ the context struct

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Zern <jzern@google.com>
7 years agolibvpxdec,cosmetics: rename common fns vp8 -> vpx
James Zern [Thu, 21 Jul 2016 03:40:59 +0000 (20:40 -0700)]
libvpxdec,cosmetics: rename common fns vp8 -> vpx

+ the context struct

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Zern <jzern@google.com>
7 years agoavcodec/huffman: beautify: add space between #include and filename.
Yong Lei [Thu, 21 Jul 2016 22:32:23 +0000 (15:32 -0700)]
avcodec/huffman: beautify: add space between #include and filename.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agodoc/protocols: Fix seperated typo
Michael Niedermayer [Thu, 21 Jul 2016 23:05:49 +0000 (01:05 +0200)]
doc/protocols: Fix seperated typo

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavcodec/ffv1dec: Test extradata_size instead of extradata for better robustness
Michael Niedermayer [Thu, 21 Jul 2016 21:37:02 +0000 (23:37 +0200)]
avcodec/ffv1dec: Test extradata_size instead of extradata for better robustness

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavformat/mov: Do not allocate empty extradata
Michael Niedermayer [Thu, 21 Jul 2016 19:43:59 +0000 (21:43 +0200)]
avformat/mov: Do not allocate empty extradata

Fixes Ticket5723

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavfilter/vf_psnr: Fix rounding error in average_max
Michael Niedermayer [Thu, 21 Jul 2016 00:04:03 +0000 (02:04 +0200)]
avfilter/vf_psnr: Fix rounding error in average_max

The intermediate was rounded to an integer

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolibavformat/rawenc: add dnxhr raw format extension
Mark Reid [Thu, 21 Jul 2016 01:22:20 +0000 (18:22 -0700)]
libavformat/rawenc: add dnxhr raw format extension

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolibopenmpt: Add "date" to metadata.
Jörn Heusipp [Sun, 17 Jul 2016 13:37:14 +0000 (15:37 +0200)]
libopenmpt: Add "date" to metadata.

Signed-off-by: Jörn Heusipp <osmanx@problemloesungsmaschine.de>
Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years agolibopenmpt: set stream duration and fix time base
Jörn Heusipp [Sun, 17 Jul 2016 13:37:13 +0000 (15:37 +0200)]
libopenmpt: set stream duration and fix time base

Fix the confusion around the used time base.

Check size returned from avio_size()

Signed-off-by: Jörn Heusipp <osmanx@problemloesungsmaschine.de>
Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years agodocs/demuxers: add libopenmpt section
Josh de Kock [Tue, 19 Jul 2016 14:48:30 +0000 (15:48 +0100)]
docs/demuxers: add libopenmpt section

Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years agolibopenmpt: add subsong support
Josh de Kock [Mon, 18 Jul 2016 12:58:04 +0000 (13:58 +0100)]
libopenmpt: add subsong support

Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years agoavformat/oggenc: add vp8 muxing support
James Almer [Thu, 21 Jul 2016 01:29:54 +0000 (22:29 -0300)]
avformat/oggenc: add vp8 muxing support

Addresses ticket #5687

Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat: add an Ogg Video muxer
James Almer [Thu, 21 Jul 2016 00:55:12 +0000 (21:55 -0300)]
avformat: add an Ogg Video muxer

Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoChangelog: move a misplaced entry to the correct section
James Almer [Thu, 21 Jul 2016 00:45:20 +0000 (21:45 -0300)]
Changelog: move a misplaced entry to the correct section

Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/mux: Fix some codecpar non uses
Michael Niedermayer [Sun, 17 Jul 2016 02:10:38 +0000 (04:10 +0200)]
avformat/mux: Fix some codecpar non uses

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agofate: add test for earwax filter
Petru Rares Sincraian [Wed, 20 Jul 2016 16:41:58 +0000 (18:41 +0200)]
fate: add test for earwax filter

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agofate: add test for dcshift filter
Petru Rares Sincraian [Wed, 20 Jul 2016 16:32:04 +0000 (18:32 +0200)]
fate: add test for dcshift filter

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agox86/diracdsp: make ff_put_signed_rect_clamped_10_sse4 work on x86_32
James Almer [Wed, 20 Jul 2016 01:37:04 +0000 (22:37 -0300)]
x86/diracdsp: make ff_put_signed_rect_clamped_10_sse4 work on x86_32

Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agolibavcodec/dnxhd: add dnxhr profiles
Mark Reid [Sun, 17 Jul 2016 02:37:37 +0000 (19:37 -0700)]
libavcodec/dnxhd: add dnxhr profiles

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoffmpeg_opt: Delete duplicate “hwaccel_output_format” option.
Jun Zhao [Fri, 24 Jun 2016 07:06:08 +0000 (15:06 +0800)]
ffmpeg_opt: Delete duplicate “hwaccel_output_format” option.

Delete duplicate “hwaccel_output_format” option.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolibavcodec/libvpx: Add VPx alpha decode support
Vignesh Venkatasubramanian [Thu, 14 Jul 2016 19:15:57 +0000 (12:15 -0700)]
libavcodec/libvpx: Add VPx alpha decode support

VPx (VP8/VP9) alpha encoding has been part of FFmpeg. Now, add the
ability to decode such files with alpha channel.

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
7 years agofate: add test for chorus filter
Petru Rares Sincraian [Tue, 19 Jul 2016 19:18:08 +0000 (21:18 +0200)]
fate: add test for chorus filter

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavformat/avlanguage: make av_convert_lang_to() internal
James Almer [Fri, 13 May 2016 21:03:28 +0000 (18:03 -0300)]
avformat/avlanguage: make av_convert_lang_to() internal

The header was never installed and the function is only used in libavformat

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/oggenc: fix page duration calculation when granule differs from timestamp
James Almer [Fri, 8 Jul 2016 01:41:55 +0000 (22:41 -0300)]
avformat/oggenc: fix page duration calculation when granule differs from timestamp

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavformat/oggparsevp8: fix pts calculation on pages ending with an invisible frame
James Almer [Tue, 12 Jul 2016 20:05:42 +0000 (17:05 -0300)]
avformat/oggparsevp8: fix pts calculation on pages ending with an invisible frame

Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoconfigure: add support for new CPUs
James Almer [Sun, 17 Jul 2016 22:14:12 +0000 (19:14 -0300)]
configure: add support for new CPUs

Add new -march values for Intel and AMD CPUs introduced with GCC 5 and 6, and
improve SunCC flags accordingly.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavcodec/h264_slice: Move h264_init_ps() call into h264_field_start()
Michael Niedermayer [Tue, 19 Jul 2016 20:31:56 +0000 (22:31 +0200)]
avcodec/h264_slice: Move h264_init_ps() call into h264_field_start()

This was missing from f512e4a39037ef798ec78170f734c7733abe3231

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavcodec/h264: remove list_count and ref_count clearing
Michael Niedermayer [Tue, 19 Jul 2016 20:31:57 +0000 (22:31 +0200)]
avcodec/h264: remove list_count and ref_count clearing

The code conflicts with moving the h264_init_ps() call point

Without this, ff_h264_parse_ref_count() fills ref and list count and
h264_init_ps() subsequently wipes them out on a "success" path.
Subsequently things crash as the wiped fields are used.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agofate: add test for avfft
Petru Rares Sincraian [Mon, 4 Jul 2016 15:23:14 +0000 (17:23 +0200)]
fate: add test for avfft

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavformat: Add tee protocol
Michael Niedermayer [Mon, 18 Jul 2016 12:42:22 +0000 (14:42 +0200)]
avformat: Add tee protocol

Option passing support will be submitted seperately to the ML

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolavc/h264: fix spacing before comment
Clément Bœsch [Tue, 19 Jul 2016 13:34:03 +0000 (15:34 +0200)]
lavc/h264: fix spacing before comment

7 years agoavutil/mem: fix wrong comment
Zhao Zhili [Mon, 18 Jul 2016 16:03:19 +0000 (00:03 +0800)]
avutil/mem: fix wrong comment

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoMAINTAINERS: add myself for libopenmpt
Josh de Kock [Sun, 17 Jul 2016 15:59:03 +0000 (16:59 +0100)]
MAINTAINERS: add myself for libopenmpt

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavcodec/ccaption_dec: default rollup to row 10
Aman Gupta [Tue, 14 Jun 2016 18:57:45 +0000 (11:57 -0700)]
avcodec/ccaption_dec: default rollup to row 10

This ensures that captions are written towards the bottom of the screen
when tuning into mid-stream. The row will be reset on the receipt of the
next PAC command. Row 10 was chosen as it corresponds to the value of
"0" in a PAC (see row_map in handle_pac()).

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavcodec/ccaption_dec: implement positioning for closed captions
Aman Gupta [Tue, 14 Jun 2016 18:57:43 +0000 (11:57 -0700)]
avcodec/ccaption_dec: implement positioning for closed captions

Positioning math is based on the guidelines in https://dvcs.w3.org/hg/text-tracks/raw-file/default/608toVTT/608toVTT.html#positioning-in-cea-608

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agotools/patcheck: add a couple more common typos
James Almer [Sun, 17 Jul 2016 21:38:14 +0000 (18:38 -0300)]
tools/patcheck: add a couple more common typos

Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavcodec/ccaption_dec: change write_char() to void as return value is unused
Aman Gupta [Tue, 14 Jun 2016 18:57:41 +0000 (11:57 -0700)]
avcodec/ccaption_dec: change write_char() to void as return value is unused

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoMAINTAINERS: Add Aman Gupta for ccaption_dec
Michael Niedermayer [Sat, 16 Jul 2016 12:58:20 +0000 (14:58 +0200)]
MAINTAINERS: Add Aman Gupta for ccaption_dec

Anshul appears to have no time currently as he has not reacted to patches or mails
and Aman agreed to take over maintaince or help

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agocosmetics: fix some misspelled words
James Almer [Sun, 17 Jul 2016 16:10:27 +0000 (13:10 -0300)]
cosmetics: fix some misspelled words

Signed-off-by: James Almer <jamrial@gmail.com>
7 years agolibavformat/libopenmpt: Fix memory leak in error path in read_header_openmpt().
Jörn Heusipp [Sun, 17 Jul 2016 13:37:12 +0000 (15:37 +0200)]
libavformat/libopenmpt: Fix memory leak in error path in read_header_openmpt().

Signed-off-by: Jörn Heusipp <osmanx@problemloesungsmaschine.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavcodec/dnxhddata: replace % by &
Michael Niedermayer [Sat, 16 Jul 2016 14:15:33 +0000 (16:15 +0200)]
avcodec/dnxhddata: replace % by &

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agofate: fix apng tests dependencies
James Almer [Sat, 16 Jul 2016 18:29:43 +0000 (15:29 -0300)]
fate: fix apng tests dependencies

Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoconfigure: add missing loongson dependencies
James Almer [Sat, 16 Jul 2016 18:18:58 +0000 (15:18 -0300)]
configure: add missing loongson dependencies

Signed-off-by: James Almer <jamrial@gmail.com>
7 years agolibavcodec/dnxhd: add support more dnxhr header prefixes
Mark Reid [Tue, 12 Jul 2016 02:07:21 +0000 (19:07 -0700)]
libavcodec/dnxhd: add support more dnxhr header prefixes

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavformat/tee: Use ff_format_output_open() function
Jan Sebechlebsky [Mon, 4 Jul 2016 14:45:14 +0000 (16:45 +0200)]
avformat/tee: Use ff_format_output_open() function

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years agoavformat/utils: Add ff_format_output_open() function
Jan Sebechlebsky [Mon, 4 Jul 2016 14:45:13 +0000 (16:45 +0200)]
avformat/utils: Add ff_format_output_open() function

Add ff_format_output_open utility function to wrap
io_open callback of AVFormatContext structure.

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years agoavformat/tee: Support flushing by writing NULL pkt
Jan Sebechlebsky [Mon, 11 Jul 2016 21:27:51 +0000 (23:27 +0200)]
avformat/tee: Support flushing by writing NULL pkt

This will add support for flushing by writing NULL
packet to the tee muxer, which propagates the action
to slave muxers as expected.

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years agoavformat/tee: Use ff_stream_encode_params_copy()
Jan Sebechlebsky [Mon, 4 Jul 2016 14:45:10 +0000 (16:45 +0200)]
avformat/tee: Use ff_stream_encode_params_copy()

Use ff_stream_encode_params_copy() to copy encoding-related
fields (parameters) of stream.

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years agoavformat/utils: Add ff_stream_encode_params_copy()
Jan Sebechlebsky [Wed, 13 Jul 2016 15:00:11 +0000 (17:00 +0200)]
avformat/utils: Add ff_stream_encode_params_copy()

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years agolavf: add libopenmpt demuxer
Josh de Kock [Thu, 14 Jul 2016 17:30:27 +0000 (18:30 +0100)]
lavf: add libopenmpt demuxer

Fixes ticket #5623

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agorefine the method option describe of hlsenc doc
Steven Liu [Wed, 13 Jul 2016 07:15:06 +0000 (15:15 +0800)]
refine the method option describe of hlsenc doc

Signed-off-by: LiuQi <liuqi@gosun.com>
Reviewed-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoRestore compatibility with powerpc-apple-darwin9-gcc-4.2.1
Pavel Koshevoy [Fri, 15 Jul 2016 04:06:07 +0000 (22:06 -0600)]
Restore compatibility with powerpc-apple-darwin9-gcc-4.2.1

... and attempt to preserve compatibility with clang that was
introduced in 311a953c76081fca99b872629d248f9d69ebc0c3 (untested)

Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolavf/vplayerdec: Improve auto-detection.
Clément Bœsch [Fri, 15 Jul 2016 08:29:14 +0000 (10:29 +0200)]
lavf/vplayerdec: Improve auto-detection.

Fixes the incorrect detection of 16_selma_OneFrame_QP39.yuv (gray16le
rawvideo) as vplayer format.

7 years agolavf/img2dec: Also auto-detect (unusual) uncompressed pcx.
Carl Eugen Hoyos [Fri, 15 Jul 2016 08:26:27 +0000 (10:26 +0200)]
lavf/img2dec: Also auto-detect (unusual) uncompressed pcx.

7 years agolavf/img2: Remove ffv1-img.
Carl Eugen Hoyos [Fri, 15 Jul 2016 08:25:02 +0000 (10:25 +0200)]
lavf/img2: Remove ffv1-img.

The ffv1 format currently needs a container.

7 years agoaf_hdcd: detect and report encoding errors and oddities
Burt P [Tue, 12 Jul 2016 17:54:10 +0000 (12:54 -0500)]
af_hdcd: detect and report encoding errors and oddities

Count and report when a code is signaled but fails to match a known pattern.
For example try Līve - Secret Samadhi.

Signed-off-by: Burt P <pburt0@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoaf_hdcd: only hdcd_update_info() when something changes
Burt P [Tue, 12 Jul 2016 17:54:08 +0000 (12:54 -0500)]
af_hdcd: only hdcd_update_info() when something changes

Only call hdcd_update_info() when the control code changes
instead of every frame, so the counters are more meaningful.

Signed-off-by: Burt P <pburt0@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoaf_hdcd: fewer false positives by ignoring code_counterC in HDCD detection
Burt P [Tue, 12 Jul 2016 17:54:07 +0000 (12:54 -0500)]
af_hdcd: fewer false positives by ignoring code_counterC in HDCD detection

Signed-off-by: Burt P <pburt0@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavformat/segment: remove the check_bitstream from segment
Steven Liu [Wed, 13 Jul 2016 22:37:02 +0000 (06:37 +0800)]
avformat/segment: remove the check_bitstream from segment

because the BSF logic was re-factored into a shareable
function and both av_write_frame and av_interleaved_write_frame use it it

Signed-off-by: LiuQi <liuqi@gosun.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoMerge commit 'b25cd7540e7cba9868edc13817c0ce1ddef90ffc'
Clément Bœsch [Thu, 14 Jul 2016 17:41:37 +0000 (19:41 +0200)]
Merge commit 'b25cd7540e7cba9868edc13817c0ce1ddef90ffc'

* commit 'b25cd7540e7cba9868edc13817c0ce1ddef90ffc':
  h264: pass a H2645NAL to slice header decoding

Merged-by: Clément Bœsch <u@pkh.me>
7 years agoMerge commit '523c4c5b70994f5cd1f192b68d07cf24b292ca05'
Clément Bœsch [Thu, 14 Jul 2016 17:37:14 +0000 (19:37 +0200)]
Merge commit '523c4c5b70994f5cd1f192b68d07cf24b292ca05'

* commit '523c4c5b70994f5cd1f192b68d07cf24b292ca05':
  fate: Add TrueMotion 2 RT tests

Merged-by: Clément Bœsch <u@pkh.me>
7 years agoMerge commit '906ffed9b1b8b06979eb656989aecacb1ae75a3a'
Clément Bœsch [Thu, 14 Jul 2016 17:33:20 +0000 (19:33 +0200)]
Merge commit '906ffed9b1b8b06979eb656989aecacb1ae75a3a'

* commit '906ffed9b1b8b06979eb656989aecacb1ae75a3a':
  fate: Move Duck Truemotion 1 and 2 tests to vpx.mak

Merged-by: Clément Bœsch <u@pkh.me>
7 years agolavc/truemotion2rt: mark AVPacket* as const
Clément Bœsch [Thu, 14 Jul 2016 17:29:43 +0000 (19:29 +0200)]
lavc/truemotion2rt: mark AVPacket* as const

7 years agoMerge commit '470cd0c5fe6337b6cb5276b3f84400999450fc1b'
Clément Bœsch [Thu, 14 Jul 2016 17:17:09 +0000 (19:17 +0200)]
Merge commit '470cd0c5fe6337b6cb5276b3f84400999450fc1b'

* commit '470cd0c5fe6337b6cb5276b3f84400999450fc1b':
  Add TrueMotion 2.0 Real Time decoder

Merged-by: Clément Bœsch <u@pkh.me>
7 years agolavc/codec_desc: move a few codecs out of the image codecs list
Clément Bœsch [Thu, 14 Jul 2016 17:10:00 +0000 (19:10 +0200)]
lavc/codec_desc: move a few codecs out of the image codecs list

Also shuffle them a little to simplify next Libav merge.

7 years agofate/video: use FATE_VIDEO instead of FATE_SAMPLES_AVCONV
Clément Bœsch [Thu, 14 Jul 2016 17:01:51 +0000 (19:01 +0200)]
fate/video: use FATE_VIDEO instead of FATE_SAMPLES_AVCONV

Consistent with the rest of the rules

7 years agoMerge commit 'cc58656aca95b5ab517989a9524b9a2b1c5653cf'
Clément Bœsch [Thu, 14 Jul 2016 16:57:37 +0000 (18:57 +0200)]
Merge commit 'cc58656aca95b5ab517989a9524b9a2b1c5653cf'

* commit 'cc58656aca95b5ab517989a9524b9a2b1c5653cf':
  fate: Add tests for MagicYUV

Merged-by: Clément Bœsch <u@pkh.me>
7 years agoMerge commit 'd78fd2fa21cde28465e40dd0be4446b1387d22a6'
Clément Bœsch [Thu, 14 Jul 2016 16:39:46 +0000 (18:39 +0200)]
Merge commit 'd78fd2fa21cde28465e40dd0be4446b1387d22a6'

* commit 'd78fd2fa21cde28465e40dd0be4446b1387d22a6':
  Add MagicYUV decoder

Changes observed from Libav:
- many cosmetics (function renames/move, spacing, line breaks)
- MagicYUVContext.slices_size is now unsigned
- use of pixdesc (include fixed in FFmpeg)
- mention of "Lossless" in the long name dropped (also removed from
  general.texi in FFmpeg)
- addition of the FF_CODEC_CAP_INIT_THREADSAFE caps
- use of qsort() instead of AV_QSORT() (NOT MERGED)
- use of AVCodecContext.{width,height} instead of AVCodecContext.coded_{width,height} (NOT MERGED)

See also 77f9c4b7aa9eb793b3019025e177245896821816

Merged-by: Clément Bœsch <u@pkh.me>
7 years agoavformat/mux: Apply auto bsfs in av_write_frame() too
Michael Niedermayer [Wed, 13 Jul 2016 17:08:45 +0000 (19:08 +0200)]
avformat/mux: Apply auto bsfs in av_write_frame() too

Reviewed-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavformat/mux: Factor do_packet_auto_bsf() out
Michael Niedermayer [Wed, 13 Jul 2016 17:08:44 +0000 (19:08 +0200)]
avformat/mux: Factor do_packet_auto_bsf() out

Reviewed-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolavf/mov: fix stream extradata_size allocation
Matthieu Bouron [Wed, 13 Jul 2016 20:46:44 +0000 (22:46 +0200)]
lavf/mov: fix stream extradata_size allocation

Fixes CID 1363963.

7 years agodirac_vlc: prevent shifting a 0 by 64 bits when zeroing residue
Rostislav Pehlivanov [Thu, 14 Jul 2016 00:26:51 +0000 (01:26 +0100)]
dirac_vlc: prevent shifting a 0 by 64 bits when zeroing residue

Adding a check for bits == 0 would still make Coverity misdetect this,
so just revert to the normal way of setting the residue to 0.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
7 years agodirac_vlc: add a SET_RESIDUE macro and fix recent regression
Rostislav Pehlivanov [Thu, 14 Jul 2016 00:00:59 +0000 (01:00 +0100)]
dirac_vlc: add a SET_RESIDUE macro and fix recent regression

Can also be used in future cleanups since 99% of the time the leftover
appending will just append to an already empty residue.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
7 years agodiracdec: fix unchecked byte length
Rostislav Pehlivanov [Wed, 13 Jul 2016 22:53:05 +0000 (23:53 +0100)]
diracdec: fix unchecked byte length

Also drops the start variable since it's redundant.
Found by Coverity, fixes CID1363964

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
7 years agodiracdec: fix maximum quantization index checks
Rostislav Pehlivanov [Wed, 13 Jul 2016 22:40:06 +0000 (23:40 +0100)]
diracdec: fix maximum quantization index checks

Found by Coverity, fixes CID1363961 and CID1363962

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
7 years agodirac_vlc: remove redundant macro declaration
Rostislav Pehlivanov [Wed, 13 Jul 2016 22:38:10 +0000 (23:38 +0100)]
dirac_vlc: remove redundant macro declaration

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
7 years agodirac_vlc: fix undefined shifts
Rostislav Pehlivanov [Wed, 13 Jul 2016 22:35:03 +0000 (23:35 +0100)]
dirac_vlc: fix undefined shifts

Shifting by more than 63 bits is undefined behavior, athough any
compiler not returning 0 after shifting by any amount would be insane.

Found by Coverity, fixes CID1363959 and CID1363960

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
7 years agoavfilter/vf_uspp: Check for encoding failure
Michael Niedermayer [Wed, 13 Jul 2016 18:16:27 +0000 (20:16 +0200)]
avfilter/vf_uspp: Check for encoding failure

Fixes CID1363015

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>