ffmpeg.git
4 years agoMerge commit '11db644a8e54f02e54d2eaad343a87fcb697c15e'
Michael Niedermayer [Sun, 17 Aug 2014 19:42:49 +0000 (21:42 +0200)]
Merge commit '11db644a8e54f02e54d2eaad343a87fcb697c15e'

* commit '11db644a8e54f02e54d2eaad343a87fcb697c15e':
  lavr: Update the planar check in ff_audio_convert

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '96ce6d6f119a16e489941c629a2805204322b717'
Michael Niedermayer [Sun, 17 Aug 2014 19:07:05 +0000 (21:07 +0200)]
Merge commit '96ce6d6f119a16e489941c629a2805204322b717'

* commit '96ce6d6f119a16e489941c629a2805204322b717':
  doc: Add more information in the README

Conflicts:
README.md

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge remote-tracking branch 'cigaes/master'
Michael Niedermayer [Sun, 17 Aug 2014 18:40:47 +0000 (20:40 +0200)]
Merge remote-tracking branch 'cigaes/master'

* cigaes/master:
  lavf/http: remove special case for cookies attributes.
  lavf/http: fix cookie parsing.

Reviewed-by: Ronald S. Bultje
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agolavf/http: remove special case for cookies attributes.
Nicolas George [Sun, 17 Aug 2014 12:24:20 +0000 (14:24 +0200)]
lavf/http: remove special case for cookies attributes.

With the previous change, unknown attributes are all ignored,
as specified by the RFC.

4 years agolavf/http: fix cookie parsing.
Nicolas George [Sun, 17 Aug 2014 12:09:45 +0000 (14:09 +0200)]
lavf/http: fix cookie parsing.

The current code would use any unknown attribute-value pair
as the cookie value.
RFC 6265 states that the first key-value pair is the actual
cookie, and the attribute-value pairs only start after.

With the current code:
Set-Cookie: test=good_value; path=/; dummy=42
gives this:
Cookie: dummy=42
instead of this with the new code:
Cookie: test=good_value

4 years agoavcodec/lcldec: fix decoding of YUV444 sample
Piotr Bandurski [Sun, 17 Aug 2014 16:17:13 +0000 (18:17 +0200)]
avcodec/lcldec: fix decoding of YUV444 sample

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agolavr: Update the planar check in ff_audio_convert
Luca Barbato [Sun, 17 Aug 2014 13:28:03 +0000 (13:28 +0000)]
lavr: Update the planar check in ff_audio_convert

Leftover from fbc0b8659967ea54a8472b5f795270d38bb085dd.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
4 years agoavcodec/h264_mb: fix grayscale only decoding with weighted prediction
Michael Niedermayer [Sun, 17 Aug 2014 13:00:16 +0000 (15:00 +0200)]
avcodec/h264_mb: fix grayscale only decoding with weighted prediction

Fixes Ticket3412

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/rpza: fix +- error
Michael Niedermayer [Sun, 17 Aug 2014 12:30:32 +0000 (14:30 +0200)]
avcodec/rpza: fix +- error

Fixes Ticket3471

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agovcodec/rpza: print mismatching size in case of error
Michael Niedermayer [Sun, 17 Aug 2014 12:30:06 +0000 (14:30 +0200)]
vcodec/rpza: print mismatching size in case of error

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/movenchint: use av_freep() for safety
Michael Niedermayer [Sat, 16 Aug 2014 17:44:50 +0000 (19:44 +0200)]
avformat/movenchint: use av_freep() for safety

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoffprobe: add -show_data_hash option.
Nicolas George [Mon, 21 Apr 2014 15:49:33 +0000 (17:49 +0200)]
ffprobe: add -show_data_hash option.

4 years agovidstabutils: fix indentation
Timothy Gu [Sun, 17 Aug 2014 00:47:14 +0000 (17:47 -0700)]
vidstabutils: fix indentation

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/mpegts: Use differential score for analyze()
Michael Niedermayer [Sat, 16 Aug 2014 21:07:28 +0000 (23:07 +0200)]
avformat/mpegts: Use differential score for analyze()

This avoids high scores in random data that has a high 0x47 frequency

Fixes Ticket3844

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoswresample: Add AVFrame based API
Michael Niedermayer [Sun, 10 Aug 2014 23:43:26 +0000 (01:43 +0200)]
swresample: Add AVFrame based API

Based on commit fb1ddcdc8f51b9d261ae8e9c26b91e81f7b6bf45 by Luca Barbato <lu_zero@gentoo.org>
Adapted for libswresample by Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge remote-tracking branch 'cus/stable'
Michael Niedermayer [Sat, 16 Aug 2014 18:00:22 +0000 (20:00 +0200)]
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  mpegts: always parse pcr

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agocinedec: add shutter and crop metadata
Ben Hagen [Sat, 16 Aug 2014 14:05:04 +0000 (16:05 +0200)]
cinedec: add shutter and crop metadata

4 years agoavcodec/mips/compute_antialias_float: remove unused variable
Michael Niedermayer [Fri, 15 Aug 2014 22:49:12 +0000 (00:49 +0200)]
avcodec/mips/compute_antialias_float: remove unused variable

Reviewed-by: James Darnley <james.darnley@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/hevc_mvs: dont redundantly initialize ref_idx_curr
Michael Niedermayer [Fri, 15 Aug 2014 22:47:45 +0000 (00:47 +0200)]
avcodec/hevc_mvs: dont redundantly initialize ref_idx_curr

Reviewed-by: James Darnley <james.darnley@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/udp: remove unneeded variable initialization
Michael Niedermayer [Sat, 16 Aug 2014 13:50:27 +0000 (15:50 +0200)]
avformat/udp: remove unneeded variable initialization

Found-by: James Darnley <james.darnley@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/udp: dont mix integers with pointers
Michael Niedermayer [Fri, 15 Aug 2014 22:43:27 +0000 (00:43 +0200)]
avformat/udp: dont mix integers with pointers

Reviewed-by: James Darnley <james.darnley@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/dvbsubdec: dont mix integers with pointers
Michael Niedermayer [Fri, 15 Aug 2014 22:41:07 +0000 (00:41 +0200)]
avcodec/dvbsubdec: dont mix integers with pointers

Reviewed-by: James Darnley <james.darnley@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/dvdsubdec: Dont mix integers with pointers
Michael Niedermayer [Fri, 15 Aug 2014 22:38:30 +0000 (00:38 +0200)]
avcodec/dvdsubdec: Dont mix integers with pointers

Reviewed-by: James Darnley <james.darnley@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agodict.c: empty dictionaries should be a NULL pointer.
Reimar Döffinger [Tue, 29 Jul 2014 19:23:57 +0000 (21:23 +0200)]
dict.c: empty dictionaries should be a NULL pointer.

Ensure this is even the case if they are empty because
we failed adding the first entry.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
4 years agoUse new av_dict_set_int helper function.
Reimar Döffinger [Tue, 29 Jul 2014 19:10:39 +0000 (21:10 +0200)]
Use new av_dict_set_int helper function.

Get rid of the many, slightly differing, implementations
of basically the same thing.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
4 years agodict.c: Add av_dict_set_int helper function.
Reimar Döffinger [Thu, 31 Jul 2014 18:08:19 +0000 (20:08 +0200)]
dict.c: Add av_dict_set_int helper function.

This allows getting rid of the many, slightly differing, implementations
of basically the same thing.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
4 years agompegts: always parse pcr
Marton Balint [Sat, 9 Aug 2014 20:47:34 +0000 (22:47 +0200)]
mpegts: always parse pcr

Previously pcr transmitted without payload but as part of the video stream was
not parsed.

Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoavformat/thp: dont mix integers with pointers
Michael Niedermayer [Fri, 15 Aug 2014 22:42:11 +0000 (00:42 +0200)]
avformat/thp: dont mix integers with pointers

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavfilter/lavfutils/ff_load_image: Return error if no frame could be decoded
Michael Niedermayer [Fri, 15 Aug 2014 23:31:37 +0000 (01:31 +0200)]
avfilter/lavfutils/ff_load_image: Return error if no frame could be decoded

Based-on suggestion by JULIAN GARDNER <joolzg@btinternet.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agodoc: Add more information in the README
Luca Barbato [Tue, 12 Aug 2014 17:34:47 +0000 (19:34 +0200)]
doc: Add more information in the README

And convert it to Markdown.

4 years agoffmpeg: look for encoding options in both avcodec and avformat
Clément Bœsch [Fri, 15 Aug 2014 19:11:57 +0000 (21:11 +0200)]
ffmpeg: look for encoding options in both avcodec and avformat

This patch is the same as 8a1714ad85dd5defdf1fb2baba9ababebfa47d01 but
applied to encoding. It fixes the current clash of the -password option
between tta decoder and the icecast protocol.

4 years agoDrop remaining unneeded != NULL
Michael Niedermayer [Fri, 15 Aug 2014 19:31:59 +0000 (21:31 +0200)]
Drop remaining unneeded != NULL

Reviewed-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '4b1f5e5090abed6c618c8ba380cd7d28d140f867'
Michael Niedermayer [Fri, 15 Aug 2014 19:21:14 +0000 (21:21 +0200)]
Merge commit '4b1f5e5090abed6c618c8ba380cd7d28d140f867'

* commit '4b1f5e5090abed6c618c8ba380cd7d28d140f867':
  cosmetics: Write NULL pointer inequality checks more compactly

Conflicts:
libavcodec/dvdsubdec.c
libavcodec/h263dec.c
libavcodec/libxvid.c
libavcodec/rv10.c
libavcodec/utils.c
libavformat/format.c
libavformat/matroskadec.c
libavformat/segment.c
libavutil/opt.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39'
Michael Niedermayer [Fri, 15 Aug 2014 18:33:21 +0000 (20:33 +0200)]
Merge commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39'

* commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39':
  cosmetics: Write NULL pointer equality checks more compactly

Conflicts:
cmdutils.c
ffmpeg_opt.c
ffplay.c
libavcodec/dvbsub.c
libavcodec/dvdsubdec.c
libavcodec/dvdsubenc.c
libavcodec/dxa.c
libavcodec/libxvid_rc.c
libavcodec/mpegvideo.c
libavcodec/mpegvideo_enc.c
libavcodec/rv10.c
libavcodec/tiffenc.c
libavcodec/utils.c
libavcodec/vc1dec.c
libavcodec/zmbv.c
libavdevice/v4l2.c
libavformat/matroskadec.c
libavformat/movenc.c
libavformat/sdp.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'efd26bedec9a345a5960dbfcbaec888418f2d4e6'
Michael Niedermayer [Fri, 15 Aug 2014 18:25:12 +0000 (20:25 +0200)]
Merge commit 'efd26bedec9a345a5960dbfcbaec888418f2d4e6'

* commit 'efd26bedec9a345a5960dbfcbaec888418f2d4e6':
  build: Add explanatory comments to (optimization) blocks in the Makefiles

Conflicts:
libavcodec/ppc/Makefile
libavcodec/x86/Makefile

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '835f798c7d20bca89eb4f3593846251ad0d84e4b'
Michael Niedermayer [Fri, 15 Aug 2014 18:00:34 +0000 (20:00 +0200)]
Merge commit '835f798c7d20bca89eb4f3593846251ad0d84e4b'

* commit '835f798c7d20bca89eb4f3593846251ad0d84e4b':
  mpegvideo: cosmetics: Lowercase ugly uppercase MPV_ function name prefixes

Conflicts:
libavcodec/h261dec.c
libavcodec/intrax8.c
libavcodec/mjpegenc.c
libavcodec/mpeg12dec.c
libavcodec/mpeg12enc.c
libavcodec/mpeg4videoenc.c
libavcodec/mpegvideo.c
libavcodec/mpegvideo.h
libavcodec/mpegvideo_enc.c
libavcodec/rv10.c
libavcodec/x86/mpegvideoenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agovformat/utils: call flush_packet_queue() from avformat_free_context()
Michael Niedermayer [Fri, 15 Aug 2014 17:48:28 +0000 (19:48 +0200)]
vformat/utils: call flush_packet_queue() from avformat_free_context()

This avoids some theoretical memleaks

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoFix packet_buffer memory leak in avformat_free_context
Andrey Myznikov [Fri, 15 Aug 2014 14:25:15 +0000 (17:25 +0300)]
Fix packet_buffer memory leak in avformat_free_context

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agocosmetics: Write NULL pointer inequality checks more compactly
Gabriel Dume [Thu, 14 Aug 2014 20:31:25 +0000 (16:31 -0400)]
cosmetics: Write NULL pointer inequality checks more compactly

Signed-off-by: Diego Biurrun <diego@biurrun.de>
4 years agoMerge commit 'a6a27fede94efe48aad1dcc9d5e000d2de71c7b2'
Michael Niedermayer [Fri, 15 Aug 2014 10:45:11 +0000 (12:45 +0200)]
Merge commit 'a6a27fede94efe48aad1dcc9d5e000d2de71c7b2'

* commit 'a6a27fede94efe48aad1dcc9d5e000d2de71c7b2':
  vfwcap: Replace deprecated av_destruct_packet() by av_free_packet()

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '7c371754fbc0dcc23bd00278b147f8095ccc5625'
Michael Niedermayer [Fri, 15 Aug 2014 10:38:31 +0000 (12:38 +0200)]
Merge commit '7c371754fbc0dcc23bd00278b147f8095ccc5625'

* commit '7c371754fbc0dcc23bd00278b147f8095ccc5625':
  atomic_win32: Drop unnecessary atomic.h #include

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '6baeadd11083774ebd823dd5e1a744c2150a3bfc'
Michael Niedermayer [Fri, 15 Aug 2014 10:31:29 +0000 (12:31 +0200)]
Merge commit '6baeadd11083774ebd823dd5e1a744c2150a3bfc'

* commit '6baeadd11083774ebd823dd5e1a744c2150a3bfc':
  w32pthreads: Mark functions in compatibility wrapper as av_unused

Conflicts:
compat/w32pthreads.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agocosmetics: Write NULL pointer equality checks more compactly
Gabriel Dume [Thu, 14 Aug 2014 20:31:24 +0000 (16:31 -0400)]
cosmetics: Write NULL pointer equality checks more compactly

Signed-off-by: Diego Biurrun <diego@biurrun.de>
4 years agoMerge commit '7ccb847f0f1f28199fa254847b91b6e50fb92832'
Michael Niedermayer [Fri, 15 Aug 2014 10:11:55 +0000 (12:11 +0200)]
Merge commit '7ccb847f0f1f28199fa254847b91b6e50fb92832'

* commit '7ccb847f0f1f28199fa254847b91b6e50fb92832':
  http: Reduce scope of a variable in parse_content_encoding()

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agobuild: Add explanatory comments to (optimization) blocks in the Makefiles
Diego Biurrun [Thu, 31 Jul 2014 11:52:24 +0000 (04:52 -0700)]
build: Add explanatory comments to (optimization) blocks in the Makefiles

4 years agompegvideo: cosmetics: Lowercase ugly uppercase MPV_ function name prefixes
Diego Biurrun [Sun, 10 Aug 2014 15:25:12 +0000 (08:25 -0700)]
mpegvideo: cosmetics: Lowercase ugly uppercase MPV_ function name prefixes

4 years agovfwcap: Replace deprecated av_destruct_packet() by av_free_packet()
Diego Biurrun [Thu, 14 Aug 2014 18:56:32 +0000 (20:56 +0200)]
vfwcap: Replace deprecated av_destruct_packet() by av_free_packet()

4 years agoatomic_win32: Drop unnecessary atomic.h #include
Diego Biurrun [Thu, 14 Aug 2014 18:55:15 +0000 (20:55 +0200)]
atomic_win32: Drop unnecessary atomic.h #include

The file does not require atomic.h. Also kills function redefinition warnings.

4 years agow32pthreads: Mark functions in compatibility wrapper as av_unused
Diego Biurrun [Thu, 14 Aug 2014 12:40:19 +0000 (14:40 +0200)]
w32pthreads: Mark functions in compatibility wrapper as av_unused

This avoids annoying warnings about unused functions. The compatibility
wrapper is designed to provide a complete (stub) API, so some functions
being unused by some files is natural and no reason for a warning.

4 years agohttp: Reduce scope of a variable in parse_content_encoding()
Diego Biurrun [Wed, 13 Aug 2014 19:33:27 +0000 (21:33 +0200)]
http: Reduce scope of a variable in parse_content_encoding()

Also fixes an unused variable warning with zlib disabled.

4 years agoffmpeg: remove 32 channel limit from audio_channels_map
Michael Niedermayer [Fri, 15 Aug 2014 02:46:24 +0000 (04:46 +0200)]
ffmpeg: remove 32 channel limit from audio_channels_map

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoffmpeg: fix streamcopy with side data
Christophe Gisquet [Wed, 13 Aug 2014 16:40:17 +0000 (18:40 +0200)]
ffmpeg: fix streamcopy with side data

The issue is that, when the main packet data buffer is changed, streamcopy
uses a temporary new packet to store that buffer, frees the old packet, and
replace it with the new packet.

However, in doing so, it forgets about the side data, which gets freed, but
is still needed and referenced. Then, when the packet gets freed again in
the normal code path, it attempts to free its side data which has already
been freed.

Therefore, simply avoid the first free on side data by removing that side
data from the packet.

Fixes ticket #3773.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/h261dec: Fix context initialization sequence
Michael Niedermayer [Fri, 15 Aug 2014 00:50:41 +0000 (02:50 +0200)]
avcodec/h261dec: Fix context initialization sequence

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '552bc42df48784ae3ce0d499ece5b33f3cc7576a'
Michael Niedermayer [Fri, 15 Aug 2014 00:41:43 +0000 (02:41 +0200)]
Merge commit '552bc42df48784ae3ce0d499ece5b33f3cc7576a'

* commit '552bc42df48784ae3ce0d499ece5b33f3cc7576a':
  h261dec: Fix order of initialization

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'b869eea7ea8f5d8331fcd6355f848bb6a6e06b14'
Michael Niedermayer [Fri, 15 Aug 2014 00:27:03 +0000 (02:27 +0200)]
Merge commit 'b869eea7ea8f5d8331fcd6355f848bb6a6e06b14'

* commit 'b869eea7ea8f5d8331fcd6355f848bb6a6e06b14':
  h263dec: Fix order of initialization

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '998c9f15d1ca8c7489775ebcca51623b915988f1'
Michael Niedermayer [Fri, 15 Aug 2014 00:08:59 +0000 (02:08 +0200)]
Merge commit '998c9f15d1ca8c7489775ebcca51623b915988f1'

* commit '998c9f15d1ca8c7489775ebcca51623b915988f1':
  idct: remove call to ff_idctdsp_init from ff_MPV_common_init

Conflicts:
libavcodec/dnxhdenc.c
libavcodec/h263dec.c
libavcodec/mpegvideo.c
libavcodec/mpegvideo.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavutil/opt: remove disabled old ABI compatibility code
Michael Niedermayer [Thu, 14 Aug 2014 18:42:53 +0000 (20:42 +0200)]
avutil/opt: remove disabled old ABI compatibility code

Fixes some unused variable warnings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/format: remove unused variable
Michael Niedermayer [Thu, 14 Aug 2014 18:40:11 +0000 (20:40 +0200)]
avformat/format: remove unused variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agolavc/flacdsp: change lpc_encoder function pointer prototype
James Darnley [Thu, 14 Aug 2014 15:14:15 +0000 (17:14 +0200)]
lavc/flacdsp: change lpc_encoder function pointer prototype

This should help to clarify the API.

Reviewed-by: Christophe Gisquet <christophe.gisquet@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge remote-tracking branch 'cigaes/master'
Michael Niedermayer [Thu, 14 Aug 2014 17:42:34 +0000 (19:42 +0200)]
Merge remote-tracking branch 'cigaes/master'

* cigaes/master:
  lavfi/avf_showspectrum: check RDFT context init.
  lavfi/avf_showspectrum: add full frame sliding mode.
  lavfi/avf_showspectrum: use automatic framing.
  lavfi/avf_showspectrum: do not push the frame at EOF.
  lavfi/avf_showspectrum: fix output pts computation.
  lavfi/avf_showspectrum: set output frame rate.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavfilter/select: larger pixel sad computation
Clément Bœsch [Thu, 14 Aug 2014 16:56:10 +0000 (18:56 +0200)]
avfilter/select: larger pixel sad computation

4 years agoavfilter/select: re-align a few comments
Clément Bœsch [Thu, 14 Aug 2014 16:52:47 +0000 (18:52 +0200)]
avfilter/select: re-align a few comments

4 years agoh261dec: Fix order of initialization
John Stebbins [Fri, 8 Aug 2014 15:55:48 +0000 (08:55 -0700)]
h261dec: Fix order of initialization

ff_MPV_common_init requires the frame dimensions which get parsed in
h261_decode_picture_header.

4 years agoh263dec: Fix order of initialization
John Stebbins [Fri, 8 Aug 2014 15:21:02 +0000 (08:21 -0700)]
h263dec: Fix order of initialization

ff_MPV_common_init requires the frame dimensions which get parsed in
*_decode_picture_header.

4 years agoidct: remove call to ff_idctdsp_init from ff_MPV_common_init
John Stebbins [Fri, 8 Aug 2014 15:11:20 +0000 (08:11 -0700)]
idct: remove call to ff_idctdsp_init from ff_MPV_common_init

One step in untangling the mpegvideo code and fixing some problems in
the order that initialization is being done in h263dec and h261dec.

4 years agoavcodec/mjpegdec: Support AV_PIX_FMT_YUV420P16 with upscale_h
Michael Niedermayer [Thu, 14 Aug 2014 14:19:53 +0000 (16:19 +0200)]
avcodec/mjpegdec: Support AV_PIX_FMT_YUV420P16 with upscale_h

Fixes assertion failure
Fixes: test42f.jpg
Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agolibavcodec: bump micro to reflect dpx changes
Christophe Gisquet [Thu, 14 Aug 2014 12:05:19 +0000 (14:05 +0200)]
libavcodec: bump micro to reflect dpx changes

The encoder produces files that are no longer compatible with previous
versions of the decoder, and may actually cause decoding issues for other
software, so indicate that change to allow decoder quirks.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/lcldec: initialize encoded correctly
Michael Niedermayer [Thu, 14 Aug 2014 13:18:49 +0000 (15:18 +0200)]
avcodec/lcldec: initialize encoded correctly

Fixes out of array read
Fixes: yuv111_no_compr_crash.avi

Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agolavfi/avf_showspectrum: check RDFT context init.
Nicolas George [Sun, 3 Aug 2014 18:39:59 +0000 (20:39 +0200)]
lavfi/avf_showspectrum: check RDFT context init.

Fix a segfault with large window size.

4 years agolavfi/avf_showspectrum: add full frame sliding mode.
Nicolas George [Sun, 3 Aug 2014 17:30:04 +0000 (19:30 +0200)]
lavfi/avf_showspectrum: add full frame sliding mode.

4 years agolavfi/avf_showspectrum: use automatic framing.
Nicolas George [Sun, 3 Aug 2014 14:58:27 +0000 (16:58 +0200)]
lavfi/avf_showspectrum: use automatic framing.

The framework can ensure that each input frame has exactly
the correct number of samples, except the last one.

4 years agoproresenc_kostya: properly account for alpha
Christophe Gisquet [Mon, 11 Aug 2014 17:43:27 +0000 (19:43 +0200)]
proresenc_kostya: properly account for alpha

The packet buffer allocation considered as dct-coded, while it is
actually run-coded and thus requires a larger buffer.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agolavfi/avf_showspectrum: do not push the frame at EOF.
Nicolas George [Sun, 3 Aug 2014 14:40:54 +0000 (16:40 +0200)]
lavfi/avf_showspectrum: do not push the frame at EOF.

It is always identical to the last pushed frame.
The samples in the last incomplete window were ignored,
this is unchanged.
Possible enhancement: pad the last incomplete window with
silence.

4 years agolavfi/avf_showspectrum: fix output pts computation.
Nicolas George [Sun, 3 Aug 2014 14:23:37 +0000 (16:23 +0200)]
lavfi/avf_showspectrum: fix output pts computation.

4 years agolavfi/avf_showspectrum: set output frame rate.
Nicolas George [Sun, 3 Aug 2014 14:23:18 +0000 (16:23 +0200)]
lavfi/avf_showspectrum: set output frame rate.

4 years agodpx: use aligned line starts
Christophe Gisquet [Tue, 12 Aug 2014 22:37:00 +0000 (00:37 +0200)]
dpx: use aligned line starts

SMPTE 268M-2003 specifies that each line starts at a 4-bytes boundary.
Therefore, modify correspondingly the input buffer strides and size.

Partially fixes ticket #3692: DLAD_8b_3c_big.dpx still has inverted
colors, which might be related to endianness.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '93f29948e4b06acfb96e7f82d373ef86d6dc55f7'
Michael Niedermayer [Thu, 14 Aug 2014 10:50:40 +0000 (12:50 +0200)]
Merge commit '93f29948e4b06acfb96e7f82d373ef86d6dc55f7'

* commit '93f29948e4b06acfb96e7f82d373ef86d6dc55f7':
  mpeg4video: Fix doxygen comment syntax to document correct struct member

Conflicts:
libavcodec/mpeg4video.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '0528226a05cc08b74197547fba0b1939bf68990d'
Michael Niedermayer [Thu, 14 Aug 2014 10:42:49 +0000 (12:42 +0200)]
Merge commit '0528226a05cc08b74197547fba0b1939bf68990d'

* commit '0528226a05cc08b74197547fba0b1939bf68990d':
  a64: Return correct error code on invalid data stream

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'e070d0a5ca9047192e324a3f87006b316e2a08a7'
Michael Niedermayer [Thu, 14 Aug 2014 10:34:17 +0000 (12:34 +0200)]
Merge commit 'e070d0a5ca9047192e324a3f87006b316e2a08a7'

* commit 'e070d0a5ca9047192e324a3f87006b316e2a08a7':
  frame: Remove some FF_API_AVFRAME_COLORSPACE leftovers

Conflicts:
libavutil/frame.c

No change, as these leftovers have already been removed

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'ab059f0aa896e01e8e4529f5f714fde111f05377'
Michael Niedermayer [Thu, 14 Aug 2014 10:31:51 +0000 (12:31 +0200)]
Merge commit 'ab059f0aa896e01e8e4529f5f714fde111f05377'

* commit 'ab059f0aa896e01e8e4529f5f714fde111f05377':
  vaapi: set the scaling list correctly.

See: 3fec40b601827e75aae9f0baa47671af15de181a
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agompeg4video: Fix doxygen comment syntax to document correct struct member
Nidhi Makhijani [Tue, 12 Aug 2014 12:28:17 +0000 (17:58 +0530)]
mpeg4video: Fix doxygen comment syntax to document correct struct member

Also fix some comment typos.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
4 years agoa64: Return correct error code on invalid data stream
Nidhi Makhijani [Wed, 13 Aug 2014 12:24:55 +0000 (17:54 +0530)]
a64: Return correct error code on invalid data stream

Signed-off-by: Diego Biurrun <diego@biurrun.de>
4 years agoframe: Remove some FF_API_AVFRAME_COLORSPACE leftovers
Diego Biurrun [Wed, 13 Aug 2014 20:35:47 +0000 (22:35 +0200)]
frame: Remove some FF_API_AVFRAME_COLORSPACE leftovers

4 years agovaapi: set the scaling list correctly.
Edgar Hucek [Sun, 11 Sep 2011 10:53:17 +0000 (12:53 +0200)]
vaapi: set the scaling list correctly.

Fixes VAAPI decoding artefacts.

CC:libav-stable@libav.org

Signed-off-by: Anton Khirnov <anton@khirnov.net>
4 years agolavf/oggparsevp8: use ff_vorbis_stream_comment()
James Almer [Thu, 14 Aug 2014 03:31:00 +0000 (00:31 -0300)]
lavf/oggparsevp8: use ff_vorbis_stream_comment()

commit db68ef89 did not update the vp8 parser

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agodpx: warn if encrypted
Christophe Gisquet [Tue, 12 Aug 2014 23:44:40 +0000 (01:44 +0200)]
dpx: warn if encrypted

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agodpxenc: enforce alignment requirement
Christophe Gisquet [Wed, 13 Aug 2014 10:21:52 +0000 (10:21 +0000)]
dpxenc: enforce alignment requirement

S268M-2003 specifies that each line start is aligned on a 4-byte boundary.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agolavf: eliminate ff_get_audio_frame_size()
Anton Khirnov [Mon, 28 Jul 2014 13:27:57 +0000 (13:27 +0000)]
lavf: eliminate ff_get_audio_frame_size()

It is basically a wrapper around av_get_audio_frame_duration(), with a
fallback to AVCodecContext.frame_size. However, that field is set only
when the stream codec context is actually used for encoding or decoding,
which is discouraged.

For muxing, it is generally the responsibility of the caller to set the
packet duration.
For demuxing, if the duration is not stored at the container level, it
should be set by the parser.

Therefore, removing the frame_size fallback should not break any
important case.
(cherry picked from commit 30e50c50274f88f0f5ae829f401cd3c7f5266719)

Conflicts:

libavformat/utils.c

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMove WMA case from ff_get_audio_frame_size() to av_get_audio_frame_duration()
Michael Niedermayer [Thu, 14 Aug 2014 00:42:14 +0000 (02:42 +0200)]
Move WMA case from ff_get_audio_frame_size() to av_get_audio_frame_duration()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMove frame_size fallback from ff_get_audio_frame_size() to av_get_audio_frame_duration()
Michael Niedermayer [Thu, 14 Aug 2014 00:42:14 +0000 (02:42 +0200)]
Move frame_size fallback from ff_get_audio_frame_size() to av_get_audio_frame_duration()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/utils: Remove demuxer specific frame_size fallback from ff_get_audio_frame_s...
Michael Niedermayer [Thu, 14 Aug 2014 00:34:57 +0000 (02:34 +0200)]
avformat/utils: Remove demuxer specific frame_size fallback from ff_get_audio_frame_size()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'e8049af1325dd59a51546c15b2e71a0f578e9d27'
Michael Niedermayer [Thu, 14 Aug 2014 00:11:02 +0000 (02:11 +0200)]
Merge commit 'e8049af1325dd59a51546c15b2e71a0f578e9d27'

* commit 'e8049af1325dd59a51546c15b2e71a0f578e9d27':
  mpegts: Do not try to write a PMT larger than SECTION_SIZE

Conflicts:
libavformat/mpegtsenc.c

See: 842b6c14bcfc1c5da1a2d288fd65386eb8c158ad
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '353240541d4ec317471b5cbcaa3e027d00ff8f5c'
Michael Niedermayer [Wed, 13 Aug 2014 23:27:51 +0000 (01:27 +0200)]
Merge commit '353240541d4ec317471b5cbcaa3e027d00ff8f5c'

* commit '353240541d4ec317471b5cbcaa3e027d00ff8f5c':
  cpu-test: Add unistd.h #include for getopt()

No change as we already have a #include <unistd.h>

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '30e50c50274f88f0f5ae829f401cd3c7f5266719'
Michael Niedermayer [Wed, 13 Aug 2014 23:02:26 +0000 (01:02 +0200)]
Merge commit '30e50c50274f88f0f5ae829f401cd3c7f5266719'

* commit '30e50c50274f88f0f5ae829f401cd3c7f5266719':
  lavf: eliminate ff_get_audio_frame_size()

Conflicts:
libavformat/utils.c

Not merged as the removed code is needed for some bugfixes and
would break the fate tests

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agodoc: fix toolname
Michael Niedermayer [Wed, 13 Aug 2014 23:00:49 +0000 (01:00 +0200)]
doc: fix toolname

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '481a3667495425db9fdffb653292b6460fb68208'
Michael Niedermayer [Wed, 13 Aug 2014 22:41:08 +0000 (00:41 +0200)]
Merge commit '481a3667495425db9fdffb653292b6460fb68208'

* commit '481a3667495425db9fdffb653292b6460fb68208':
  cmdutils: allow matching by metadata in stream specifiers

Conflicts:
Changelog
cmdutils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '8ddc32629a6d6be77256694c9e322dde134609f3'
Michael Niedermayer [Wed, 13 Aug 2014 22:29:06 +0000 (00:29 +0200)]
Merge commit '8ddc32629a6d6be77256694c9e322dde134609f3'

* commit '8ddc32629a6d6be77256694c9e322dde134609f3':
  mem: add av_strndup() for duplicating substrings

Conflicts:
libavutil/mem.c
libavutil/mem.h
libavutil/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'aa51b0492bfced6d650fb5ff419e2b13fde6833d'
Michael Niedermayer [Wed, 13 Aug 2014 22:23:30 +0000 (00:23 +0200)]
Merge commit 'aa51b0492bfced6d650fb5ff419e2b13fde6833d'

* commit 'aa51b0492bfced6d650fb5ff419e2b13fde6833d':
  avconv: rename output_packet() to process_input_packet()

Conflicts:
ffmpeg.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '159a06dfc83d189f753c4583583ddfb571552ff5'
Michael Niedermayer [Wed, 13 Aug 2014 22:17:43 +0000 (00:17 +0200)]
Merge commit '159a06dfc83d189f753c4583583ddfb571552ff5'

* commit '159a06dfc83d189f753c4583583ddfb571552ff5':
  stereo3d: initialize AVStereo3D to zero

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '4e629ef80e62a54636cb46033998177dd08cf3ad'
Michael Niedermayer [Wed, 13 Aug 2014 22:11:16 +0000 (00:11 +0200)]
Merge commit '4e629ef80e62a54636cb46033998177dd08cf3ad'

* commit '4e629ef80e62a54636cb46033998177dd08cf3ad':
  http: Fix authentication, broken since 6a463e7fb

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