]> git.sesse.net Git - ffmpeg/log
ffmpeg
8 years agoavcodec/exr: fix tile decoding when all channels doesnt have the same pixel type
Martin Vignali [Sat, 4 Jun 2016 12:06:39 +0000 (14:06 +0200)]
avcodec/exr: fix tile decoding when all channels doesnt have the same pixel type

Also simplify the tile code, sharing more code with the scanline mode.

8 years agoavcodec/exr: indent the if (layer_match) part
Martin Vignali [Sat, 4 Jun 2016 15:45:31 +0000 (17:45 +0200)]
avcodec/exr: indent the if (layer_match) part

8 years agoavcodec/exr: fix layer detection
Martin Vignali [Sat, 4 Jun 2016 15:42:20 +0000 (17:42 +0200)]
avcodec/exr: fix layer detection

Only test a channel if the layer name match.
Avoid to try to mix channel between the main layer (rgba layer),
and the layer request by the user.

8 years agoavcodec/bmp_parser: Check fsize
Michael Niedermayer [Mon, 6 Jun 2016 12:32:48 +0000 (14:32 +0200)]
avcodec/bmp_parser: Check fsize

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/bmp_parser: reset state
Michael Niedermayer [Mon, 6 Jun 2016 12:30:40 +0000 (14:30 +0200)]
avcodec/bmp_parser: reset state

Fixes part of ticket 5598

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/bmp_parser: Fix remaining size
Michael Niedermayer [Mon, 6 Jun 2016 12:27:20 +0000 (14:27 +0200)]
avcodec/bmp_parser: Fix remaining size

Fixes part of ticket 5598

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/bmp_parser: Fix frame_start_found in cross frame cases
Michael Niedermayer [Mon, 6 Jun 2016 12:01:43 +0000 (14:01 +0200)]
avcodec/bmp_parser: Fix frame_start_found in cross frame cases

Fixes part of ticket 5598

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/matroskadec: Fix rounding error with codec_delay
Michael Niedermayer [Mon, 6 Jun 2016 02:23:16 +0000 (04:23 +0200)]
avformat/matroskadec: Fix rounding error with codec_delay

Fixes Ticket5509

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/wmalosslessdec: Use unsigned operations for overflowing cases
Michael Niedermayer [Mon, 16 May 2016 11:14:31 +0000 (13:14 +0200)]
avcodec/wmalosslessdec: Use unsigned operations for overflowing cases

Fixes undefined behavior in fate-lossless-wma24-2

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/movenc: Skip unsupported video tracks in timecode generation
Michael Niedermayer [Fri, 29 Apr 2016 02:39:40 +0000 (04:39 +0200)]
avformat/movenc: Skip unsupported video tracks in timecode generation

Fixes Ticket5414

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/af_amix: dont fail if there are no samples in output_frame()
Michael Niedermayer [Thu, 28 Apr 2016 18:49:13 +0000 (20:49 +0200)]
avfilter/af_amix: dont fail if there are no samples in output_frame()

Fixes Ticket5326

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/allformats: Making av_register_all() thread-safe.
Vivekanand [Thu, 7 Apr 2016 10:46:23 +0000 (16:16 +0530)]
avformat/allformats: Making av_register_all() thread-safe.

When multiple threads tries to call av_register_all(), the first thread sets
initialized to 1 and do the register process. At the same time, other thread might
also call av_register_all(), which returns immediately because initialized is set to 1
(even when it has not completed registering codecs). We can avoid this problem
if we set initialised to 1 while exiting from function.

Github: Closes #196

8 years agoavcodec/mpeg4videodec: Fix default low_delay flag value if not coded
Michael Niedermayer [Mon, 28 Mar 2016 18:40:40 +0000 (20:40 +0200)]
avcodec/mpeg4videodec: Fix default low_delay flag value if not coded

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/mpeg4videodec: Print low_delay value with -debug 1 in decode_vol_header()
Michael Niedermayer [Mon, 28 Mar 2016 18:21:44 +0000 (20:21 +0200)]
avcodec/mpeg4videodec: Print low_delay value with -debug 1 in decode_vol_header()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_colormatrix: add bt.2020 colorspace
Thomas Mundt [Fri, 25 Mar 2016 22:31:36 +0000 (23:31 +0100)]
avfilter/vf_colormatrix: add bt.2020 colorspace

Signed-off-by: Thomas Mundt <loudmax@yahoo.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_colormatrix: increase precision
Thomas Mundt [Sat, 26 Mar 2016 10:53:36 +0000 (11:53 +0100)]
avfilter/vf_colormatrix: increase precision

Signed-off-by: Thomas Mundt <loudmax@yahoo.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavutil/frame: Assert that width/height/channels is 0 for the destination of av_frame...
Michael Niedermayer [Tue, 8 Mar 2016 17:44:34 +0000 (18:44 +0100)]
avutil/frame: Assert that width/height/channels is 0 for the destination of av_frame*_ref()

This should detect caes where these functions are called in unclean destinations

8 years agodoc/examples/transcoding: Use the decoders pixel format if the encoder does not list...
Michael Niedermayer [Sat, 27 Feb 2016 23:03:14 +0000 (00:03 +0100)]
doc/examples/transcoding: Use the decoders pixel format if the encoder does not list which are supported

This affects rawvideo and wraped_avframe, no others are affected atm

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoSeperate x264rgb encoder and only enable when its actually supported
Michael Niedermayer [Sat, 27 Feb 2016 22:23:41 +0000 (23:23 +0100)]
Seperate x264rgb encoder and only enable when its actually supported

This avoids enabling and building the x264rgb encoder when its actually not supported and
thus would not work

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/format: Print debug info when probe score is increased due to mime type
Michael Niedermayer [Thu, 25 Feb 2016 18:36:01 +0000 (19:36 +0100)]
avformat/format: Print debug info when probe score is increased due to mime type

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/cfhd: clear idwt_buf on allocation
Michael Niedermayer [Sun, 14 Feb 2016 19:22:49 +0000 (20:22 +0100)]
avcodec/cfhd: clear idwt_buf on allocation

This avoids use of uninitialized variables and might make bugs in general
easier to reproduce

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoCheck av_dup_packet() return code
Michael Niedermayer [Wed, 3 Feb 2016 17:52:26 +0000 (18:52 +0100)]
Check av_dup_packet() return code

Fixes: CID1338320
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/mpegvideo: Deallocate last/next picture earlier
Michael Niedermayer [Sat, 4 Jun 2016 23:46:18 +0000 (01:46 +0200)]
avcodec/mpegvideo: Deallocate last/next picture earlier

Fixes regression with mplayers direct rendering and reduces buffer count
pressure in some cases

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/dump: Print tbc value
Michael Niedermayer [Fri, 3 Jun 2016 21:29:05 +0000 (23:29 +0200)]
avformat/dump: Print tbc value

Fixes regression of av_dump_format()
Fixes part of Ticket 5444

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/utils: initialize delay in avcodec_parameters_to_context()
Michael Niedermayer [Sat, 4 Jun 2016 02:40:28 +0000 (04:40 +0200)]
avcodec/utils: initialize delay in avcodec_parameters_to_context()

Fixes lost codec delayy
Should fix Ticket5509

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/nvenc: Don't set packet duration
Timo Rothenpieler [Sat, 4 Jun 2016 10:20:59 +0000 (12:20 +0200)]
avcodec/nvenc: Don't set packet duration

It's not expected to be set on video packets and causes issues in
ffmpeg.c.

8 years agoavfilter/avf_showcqt: render default font at 960x16
Muhammad Faiz [Thu, 2 Jun 2016 09:10:47 +0000 (16:10 +0700)]
avfilter/avf_showcqt: render default font at 960x16

and let ffmpeg scaler scale it
this impoves quality

Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
8 years agoavdevice/lavfi: Do not set avg_frame_rate to the timebase
Michael Niedermayer [Fri, 3 Jun 2016 23:33:30 +0000 (01:33 +0200)]
avdevice/lavfi: Do not set avg_frame_rate to the timebase

Fixes regression
Fixes Ticket5422 (The timebase is 1/25k but the fps are not 25k)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/version: Add Ticket5421 to list of tickets possibly affected by a major...
Michael Niedermayer [Fri, 3 Jun 2016 21:09:19 +0000 (23:09 +0200)]
avformat/version: Add Ticket5421 to list of tickets possibly affected by a major bump

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/dump: Use codec and QP limits from AVCodecContext
Michael Niedermayer [Fri, 3 Jun 2016 20:26:00 +0000 (22:26 +0200)]
avformat/dump: Use codec and QP limits from AVCodecContext

Fixes regression
Fixes Ticket5421

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolibavutil/fifo: Fix fifo grow step
Jan Sebechlebsky [Fri, 3 Jun 2016 12:04:00 +0000 (14:04 +0200)]
libavutil/fifo: Fix fifo grow step

Fifo was reallocating always to twice of the requested size.
This fixes it to reallocate to requested size, or twice of the
original size - whichever is greater.

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavf/udp: fix dead code.
Nicolas George [Fri, 3 Jun 2016 09:05:20 +0000 (11:05 +0200)]
lavf/udp: fix dead code.

Since d607861, service can not be NULL, only "0".
An UDP address with neither local port nor address leaves both
service and node to their default value, and POSIX specifies
that they are not allowed to be both NULL; "0" is equivalent
to an unspecified port for all currently known protocols.

Fix CID 1341570.

8 years agoavformat/au: Write MetaData in AU Sun audio file header
Thomas Bernard [Tue, 31 May 2016 19:57:57 +0000 (21:57 +0200)]
avformat/au: Write MetaData in AU Sun audio file header

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavc/mediacodecdec_h264: rename input_ref to input_pkt
Matthieu Bouron [Thu, 26 May 2016 13:33:41 +0000 (15:33 +0200)]
lavc/mediacodecdec_h264: rename input_ref to input_pkt

8 years agolavc/mediacodecdec_h264: switch to new BSF API
Matthieu Bouron [Thu, 26 May 2016 12:52:01 +0000 (14:52 +0200)]
lavc/mediacodecdec_h264: switch to new BSF API

8 years agolavc/vaapi_encoder_{h264,h265}: fix bad format warning
Matthieu Bouron [Thu, 2 Jun 2016 16:15:35 +0000 (18:15 +0200)]
lavc/vaapi_encoder_{h264,h265}: fix bad format warning

8 years agofate/prores: use aac fixed for audio to fix fate failures on arm
Michael Niedermayer [Fri, 3 Jun 2016 02:25:57 +0000 (04:25 +0200)]
fate/prores: use aac fixed for audio to fix fate failures on arm

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agotests/fate/h264: Add test for xavc and somewhat odd pps/sps
Michael Niedermayer [Thu, 2 Jun 2016 23:09:58 +0000 (01:09 +0200)]
tests/fate/h264: Add test for xavc and somewhat odd pps/sps

(Ticket 4389)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agodoc/filters: Remove duplicated setdar example
Lars Kiesow [Thu, 2 Jun 2016 22:34:09 +0000 (00:34 +0200)]
doc/filters: Remove duplicated setdar example

Signed-off-by: Lou Logan <lou@lrcd.com>
8 years agoavcodec/magicyuv: set correct size of last slice for each plane
Paul B Mahol [Thu, 2 Jun 2016 20:40:57 +0000 (22:40 +0200)]
avcodec/magicyuv: set correct size of last slice for each plane

Fixes invalid read.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoMAINTAINERS: Remove myself
Derek Buitenhuis [Thu, 19 May 2016 12:27:08 +0000 (13:27 +0100)]
MAINTAINERS: Remove myself

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoavformat: Copy properties from internal context
Michael Niedermayer [Mon, 30 May 2016 12:00:53 +0000 (14:00 +0200)]
avformat: Copy properties from internal context

Fixes Ticket5467 "Lossless j2k information no longer shown"

Based on suggestion by Hendrik Leppkes
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/h264_refs: Fix pps_ref_count with multiple PPS
Michael Niedermayer [Thu, 2 Jun 2016 12:51:49 +0000 (14:51 +0200)]
avcodec/h264_refs: Fix pps_ref_count with multiple PPS

Found-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/h264_refs: Remove unused pps_count
Michael Niedermayer [Thu, 2 Jun 2016 12:48:12 +0000 (14:48 +0200)]
avcodec/h264_refs: Remove unused pps_count

Found-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/udp: Protect write to circular_buffer_error by mutex
Michael Niedermayer [Thu, 2 Jun 2016 11:30:12 +0000 (13:30 +0200)]
avformat/udp: Protect write to circular_buffer_error by mutex

This isnt really needed on most platforms but
fixes CID1362183

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/avf_showcqt: full chroma blending on draw_axis_yuv
Muhammad Faiz [Tue, 31 May 2016 14:51:27 +0000 (21:51 +0700)]
avfilter/avf_showcqt: full chroma blending on draw_axis_yuv

improve quality on axis drawing with yuv422p and yuv420p format

Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
8 years agoavcodec/magicyuv: fix decoding of raw slices
Paul B Mahol [Thu, 2 Jun 2016 04:59:46 +0000 (06:59 +0200)]
avcodec/magicyuv: fix decoding of raw slices

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agovaapi: Enable more libva surface formats
Mark Thompson [Sun, 22 May 2016 10:38:39 +0000 (11:38 +0100)]
vaapi: Enable more libva surface formats

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/avpacket: Respect payload offset in av_grow_packet
Andriy Lysnevych [Wed, 25 May 2016 14:56:21 +0000 (17:56 +0300)]
avcodec/avpacket: Respect payload offset in av_grow_packet

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat: Document where the AVOption names can be found for the fields of AVFormatCo...
Michael Niedermayer [Sat, 28 May 2016 14:57:15 +0000 (16:57 +0200)]
avformat: Document where the AVOption names can be found for the fields of AVFormatContext

Missing docs found by: nevcairiel

RFC: should we add support so that the C field names always work as av option names/keys ?

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec: Document where the AVOption names can be found for the fields of AVCodecContext
Michael Niedermayer [Sat, 28 May 2016 14:57:14 +0000 (16:57 +0200)]
avcodec: Document where the AVOption names can be found for the fields of AVCodecContext

Missing docs found by: nevcairiel

RFC: should we add support so that the C field names always work as av option names/keys ?

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavutil/frame: Document avcodec_get_frame_class() and the option naming system
Michael Niedermayer [Sat, 28 May 2016 14:57:13 +0000 (16:57 +0200)]
avutil/frame: Document avcodec_get_frame_class() and the option naming system

Missing docs found by: nevcairiel

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolibrary.mak: Put -Umain back for tests
Michael Niedermayer [Wed, 1 Jun 2016 14:22:36 +0000 (16:22 +0200)]
library.mak: Put -Umain back for tests

Fixes build on mingw32 with SDL

reverts one line from 96d616052b3d39678e477fa10610ca688f46fff9

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavu: Adding ARIB STD-B67 (hybrid log-gamma) enum value and transfer function.
Neil Birkbeck [Thu, 21 Apr 2016 19:00:05 +0000 (12:00 -0700)]
lavu: Adding ARIB STD-B67 (hybrid log-gamma) enum value and transfer function.

Adding hybrid log-gamma (https://en.wikipedia.org/wiki/Hybrid_Log-Gamma)
based on the standardization in ARIB STD-B67:
http://www.arib.or.jp/english/html/overview/doc/2-STD-B67v1_0.pdf

The choice of enum value of 18 is consistent with HEVC:
http://phenix.it-sudparis.eu/jct/doc_end_user/current_document.php?id=10481

And also with latest proposal for color format in mkv:
https://mailarchive.ietf.org/arch/search/?email_list=cellar&gbt=1&q=Colour+Format+proposal

The implementation assumes a nominal input range of [0, 1], which is
consistent with HEVC.

Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/isom: add MagicYUV FourCCs
Piotr Bandurski [Wed, 1 Jun 2016 11:47:50 +0000 (13:47 +0200)]
avformat/isom: add MagicYUV FourCCs

8 years agoavocdec: add MagicYUV decoder
Paul B Mahol [Sun, 22 May 2016 13:18:30 +0000 (15:18 +0200)]
avocdec: add MagicYUV decoder

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec/bmp_parser: Fix state
Michael Niedermayer [Tue, 31 May 2016 20:01:13 +0000 (22:01 +0200)]
avcodec/bmp_parser: Fix state

Fixes Ticket5598

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/nvenc: Refactor timestamp generation logic
Timo Rothenpieler [Tue, 31 May 2016 16:59:35 +0000 (18:59 +0200)]
avcodec/nvenc: Refactor timestamp generation logic

Directly adapted from libav

8 years agoavcodec/nvenc: forward frame duration
Timo Rothenpieler [Tue, 31 May 2016 16:39:28 +0000 (18:39 +0200)]
avcodec/nvenc: forward frame duration

8 years agoavcodec/nvenc: Handle minqp-only case in set_vbr
Timo Rothenpieler [Tue, 31 May 2016 15:00:07 +0000 (17:00 +0200)]
avcodec/nvenc: Handle minqp-only case in set_vbr

8 years agoavcodec/nvenc: twopass mode works in all modes
Timo Rothenpieler [Tue, 31 May 2016 14:55:24 +0000 (16:55 +0200)]
avcodec/nvenc: twopass mode works in all modes

8 years agoavcodec/nvenc: Fix forcing constqp rc mode
Timo Rothenpieler [Tue, 31 May 2016 14:53:38 +0000 (16:53 +0200)]
avcodec/nvenc: Fix forcing constqp rc mode

The CONSTQP enum value is 0, so this check failed for it.

8 years agoavcodec/nvenc: don't enqueue timestamps until a frame was accepted
Andrey Turkin [Sun, 29 May 2016 12:51:36 +0000 (15:51 +0300)]
avcodec/nvenc: don't enqueue timestamps until a frame was accepted

Otherwise timestamps/pending FIFOs would go out of sync if nvEncodePicture ever fails.

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
8 years agoavcodec/nvenc: refactor encode_frame a bit
Andrey Turkin [Sun, 29 May 2016 12:50:06 +0000 (15:50 +0300)]
avcodec/nvenc: refactor encode_frame a bit

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
8 years agoavcodec/dca_parser: skip initial padding
foo86 [Tue, 31 May 2016 11:46:14 +0000 (14:46 +0300)]
avcodec/dca_parser: skip initial padding

Padding before the first sync word can be very large for DTS-in-WAV
streams. There is no reason to include this padding in parsed packet.

Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoavcodec/dca_parser: simplify state machine
foo86 [Tue, 31 May 2016 11:46:13 +0000 (14:46 +0300)]
avcodec/dca_parser: simplify state machine

Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoavcodec/dca: support EXSS marker in avpriv_dca_convert_bitstream()
foo86 [Fri, 13 May 2016 09:48:31 +0000 (12:48 +0300)]
avcodec/dca: support EXSS marker in avpriv_dca_convert_bitstream()

This is now required by dcadec_decode_frame(). All remaining users of
avpriv_dca_convert_bitstream() have been updated to expect EXSS marker.

Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoavcodec/dca: require checked bitstream reader
foo86 [Fri, 13 May 2016 09:48:30 +0000 (12:48 +0300)]
avcodec/dca: require checked bitstream reader

Remove half-working attempt at supporting unchecked bitstream reader by
always copying input data into intermediate buffer with large amount of
padding at the end.

Convert LBR decoder to checked bitstream reader. Convert
dcadec_decode_frame() to parse input data directly if possible.

Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoavcodec/nvenc: extract timestamp calculations into separate function
Andrey Turkin [Sun, 29 May 2016 12:34:38 +0000 (15:34 +0300)]
avcodec/nvenc: extract timestamp calculations into separate function

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
8 years agoavcodec/nvenc: rework library load and GPU selection
Andrey Turkin [Sun, 29 May 2016 12:23:26 +0000 (15:23 +0300)]
avcodec/nvenc: rework library load and GPU selection

Use explicit nvenc capability checks instead to determine usable devices
instead of SM versions.

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
8 years agoavcodec/nvenc: allow configuring number of surfaces
Andrey Turkin [Sun, 29 May 2016 10:07:34 +0000 (13:07 +0300)]
avcodec/nvenc: allow configuring number of surfaces

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
8 years agoavcodec/nvenc: use INIT_CLEANUP to deal with init failures
Andrey Turkin [Wed, 25 May 2016 16:57:11 +0000 (19:57 +0300)]
avcodec/nvenc: use INIT_CLEANUP to deal with init failures

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
8 years agoavcodec/nvenc: add rate control option
Andrey Turkin [Wed, 25 May 2016 16:39:54 +0000 (19:39 +0300)]
avcodec/nvenc: add rate control option

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
8 years agoavcodec/nvenc: convert tier to AVOptions
Andrey Turkin [Wed, 25 May 2016 15:06:02 +0000 (18:06 +0300)]
avcodec/nvenc: convert tier to AVOptions

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
8 years agoavcodec/nvenc: convert levels to AVOptions
Andrey Turkin [Wed, 25 May 2016 15:00:52 +0000 (18:00 +0300)]
avcodec/nvenc: convert levels to AVOptions

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
8 years agoavcodec/nvenc: convert profile parsing to AVOptions
Andrey Turkin [Wed, 25 May 2016 14:26:25 +0000 (17:26 +0300)]
avcodec/nvenc: convert profile parsing to AVOptions

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
8 years agoavcodec/nvenc: use AVOptions to select presets
Andrey Turkin [Wed, 25 May 2016 14:05:50 +0000 (17:05 +0300)]
avcodec/nvenc: use AVOptions to select presets

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
8 years agodoc: Add color_trc values
Michael Niedermayer [Tue, 31 May 2016 13:15:54 +0000 (15:15 +0200)]
doc: Add color_trc values

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/nvenc: split H264/HEVC encoder definitions into separate files
Andrey Turkin [Wed, 25 May 2016 13:04:28 +0000 (16:04 +0300)]
avcodec/nvenc: split H264/HEVC encoder definitions into separate files

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
8 years agoaacpsy: remove dead code
Rostislav Pehlivanov [Tue, 31 May 2016 00:05:58 +0000 (01:05 +0100)]
aacpsy: remove dead code

This code wasn't removed when the functionality was moved inside
aacenc.c with commit 8005b6de4f88c9

Fixes CID1361962

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agoavformat/movenc: remove useless if and reindent
Marton Balint [Sun, 29 May 2016 15:14:18 +0000 (17:14 +0200)]
avformat/movenc: remove useless if and reindent

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavformat/movenc: propagate shift_data errors properly
Marton Balint [Sun, 29 May 2016 14:51:57 +0000 (16:51 +0200)]
avformat/movenc: propagate shift_data errors properly

The second one is not explicitly needed, as res is not reset, but it is there
for consistency.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoffplay: simplify display code
Marton Balint [Wed, 25 Nov 2015 23:25:47 +0000 (00:25 +0100)]
ffplay: simplify display code

And get rid of frame_queue_prev.

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavcodec/libxvid: Fix use of uninitialized AVPacket fields
Michael Niedermayer [Mon, 30 May 2016 22:05:53 +0000 (00:05 +0200)]
avcodec/libxvid: Fix use of uninitialized AVPacket fields

Fixes CID1361964

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/mips/h264qpel_mmi.c: Version 2 of the optimizations for loongson mmi
ZhouXiaoyong [Wed, 25 May 2016 09:40:44 +0000 (17:40 +0800)]
avcodec/mips/h264qpel_mmi.c: Version 2 of the optimizations for loongson mmi

1. no longer use the register names directly and optimized code format
2. to be compatible with O32, specify type of address variable with mips_reg and handle the address variable with PTR_ operator
3. use uld and mtc1 to workaround cpu 3A2000 gslwlc1 bug (gslwlc1 instruction extension bug in O32 ABI)
4. h264qpel use hepldsp optimizations

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolibavformat/movenc: remove unnecessary null check
Mark Reid [Mon, 30 May 2016 00:17:32 +0000 (17:17 -0700)]
libavformat/movenc: remove unnecessary null check

Fixes CID1361955

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/f_loop: Fix leak on error
Michael Niedermayer [Sun, 29 May 2016 19:21:59 +0000 (21:21 +0200)]
avfilter/f_loop: Fix leak on error

Fixes CID1355117

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_fieldhint: Reorder operation to prevent hypothetical integer overflow
Michael Niedermayer [Sun, 29 May 2016 16:11:53 +0000 (18:11 +0200)]
avfilter/vf_fieldhint: Reorder operation to prevent hypothetical integer overflow

Fixes CID1355110

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_fieldhint: Assert that mode is valid
Michael Niedermayer [Sun, 29 May 2016 12:45:18 +0000 (14:45 +0200)]
avfilter/vf_fieldhint: Assert that mode is valid

Its checked by the AVOption code
Fixes CID1355122
Fixes CID1355121

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavutil/softfloat: Improve doxy for av_sub_sf() and av_sf2int()
Michael Niedermayer [Sun, 29 May 2016 12:44:27 +0000 (14:44 +0200)]
avutil/softfloat: Improve doxy for av_sub_sf() and av_sf2int()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/udp: Remove unused variable
Michael Niedermayer [Sun, 29 May 2016 10:35:14 +0000 (12:35 +0200)]
avformat/udp: Remove unused variable

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/movenc: Fix potential track width/height overflows
Michael Niedermayer [Sun, 29 May 2016 02:00:27 +0000 (04:00 +0200)]
avformat/movenc: Fix potential track width/height overflows

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/movenc: Avoid integer overflow
Michael Niedermayer [Sun, 29 May 2016 01:51:42 +0000 (03:51 +0200)]
avformat/movenc: Avoid integer overflow

Fixes: CID1361947
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/oggparseopus: Fix Undefined behavior in oggparseopus.c and libavformat/utils.c
Thomas Guilbert [Fri, 27 May 2016 22:50:25 +0000 (15:50 -0700)]
avformat/oggparseopus: Fix Undefined behavior in oggparseopus.c and libavformat/utils.c

Fixes: usan_granule_overflow
constant type fix by commiter
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/utils: avoid overflow in compute_chapters_end() with huge durations
Michael Niedermayer [Sat, 28 May 2016 21:51:35 +0000 (23:51 +0200)]
avformat/utils: avoid overflow in compute_chapters_end()  with huge durations

Fixes: usan_granule_overflow
Found-by: Thomas Guilbert <tguilbert@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/utils: avoid overflow in update_stream_timings() with huge durations
Michael Niedermayer [Sat, 28 May 2016 21:51:35 +0000 (23:51 +0200)]
avformat/utils: avoid overflow in update_stream_timings() with huge durations

Fixes: usan_granule_overflow
Found-by: Thomas Guilbert <tguilbert@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agofate: add aemphasis test
Petru Rares Sincraian [Sat, 28 May 2016 15:20:25 +0000 (17:20 +0200)]
fate: add aemphasis test

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavutil/softfloat: Document public constants and a few public functions
Michael Niedermayer [Sat, 28 May 2016 12:11:10 +0000 (14:11 +0200)]
avutil/softfloat: Document public constants and a few public functions

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavf/mov: Support one more Avid compression id for AVCI50.
Carl Eugen Hoyos [Sat, 28 May 2016 09:57:37 +0000 (11:57 +0200)]
lavf/mov: Support one more Avid compression id for AVCI50.

Reported by forum user lexidata.

8 years agoavformat/movenc: Fix memleak of reshuffled packet
Michael Niedermayer [Sat, 28 May 2016 01:12:04 +0000 (03:12 +0200)]
avformat/movenc: Fix memleak of reshuffled packet

Fixes CID1361952

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