]> git.sesse.net Git - ffmpeg/log
ffmpeg
9 years agoMerge commit '88d1fb4e3f156d8fd5bb6cb3ba3a9ef1e6d6fb08'
Michael Niedermayer [Mon, 20 Apr 2015 09:50:10 +0000 (11:50 +0200)]
Merge commit '88d1fb4e3f156d8fd5bb6cb3ba3a9ef1e6d6fb08'

* commit '88d1fb4e3f156d8fd5bb6cb3ba3a9ef1e6d6fb08':
  filtfmts: Avoid null pointer dereference

Conflicts:
libavfilter/filtfmts.c

See: 24326930d87dd7e851c1cc383bc0682d746ffaf8
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'a1d58e3b386cc0bfe16abd9ccee4eed182b7e354'
Michael Niedermayer [Mon, 20 Apr 2015 09:39:28 +0000 (11:39 +0200)]
Merge commit 'a1d58e3b386cc0bfe16abd9ccee4eed182b7e354'

* commit 'a1d58e3b386cc0bfe16abd9ccee4eed182b7e354':
  avutil: remove pointless bmi1 define

See: a40cee03a3be131729e0c06e4825d14ac2076b03
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '09bd7ddf2002562befa15a2a4d065b79ad14ed8e'
Michael Niedermayer [Mon, 20 Apr 2015 09:38:01 +0000 (11:38 +0200)]
Merge commit '09bd7ddf2002562befa15a2a4d065b79ad14ed8e'

* commit '09bd7ddf2002562befa15a2a4d065b79ad14ed8e':
  aacdec: consistently use avctx for logging in decode_eld_specific_config

See: 5b75689b987e4c4dd4f34d5c8be389547e9cc701
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '3d71b1f8f09fccea7158e868fb9bd81b81205449'
Michael Niedermayer [Mon, 20 Apr 2015 09:29:17 +0000 (11:29 +0200)]
Merge commit '3d71b1f8f09fccea7158e868fb9bd81b81205449'

* commit '3d71b1f8f09fccea7158e868fb9bd81b81205449':
  mpegvideo_enc: Simplify picture allocation

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '0251c9be5a9d79cb669e97086a82dc4d44a917b0'
Michael Niedermayer [Mon, 20 Apr 2015 09:26:27 +0000 (11:26 +0200)]
Merge commit '0251c9be5a9d79cb669e97086a82dc4d44a917b0'

* commit '0251c9be5a9d79cb669e97086a82dc4d44a917b0':
  motion_est: Fix warning from zero_cmp() assignment

See: ea41e6d6373063c3a2a9bf48ce8e1c2e6340b694
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '4d593896aaa81356def8993e8c52294bd8bb2797'
Michael Niedermayer [Mon, 20 Apr 2015 09:13:03 +0000 (11:13 +0200)]
Merge commit '4d593896aaa81356def8993e8c52294bd8bb2797'

* commit '4d593896aaa81356def8993e8c52294bd8bb2797':
  vc1_pred: Always initialize px and py in ff_vc1_pred_mv_intfr()

Conflicts:
libavcodec/vc1_pred.c

See: 6c5bd7d785ffb796b8cfbae677ab54755b26a22b
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '9286de045968ad456d4e752651eec22de5e89060'
Michael Niedermayer [Mon, 20 Apr 2015 09:03:32 +0000 (11:03 +0200)]
Merge commit '9286de045968ad456d4e752651eec22de5e89060'

* commit '9286de045968ad456d4e752651eec22de5e89060':
  mov: Double-check that alias path is not an absolute path

Conflicts:
libavformat/mov.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '376589e5dd72aa2dd42500f456fca303fcdcad85'
Michael Niedermayer [Mon, 20 Apr 2015 03:51:36 +0000 (05:51 +0200)]
Merge commit '376589e5dd72aa2dd42500f456fca303fcdcad85'

* commit '376589e5dd72aa2dd42500f456fca303fcdcad85':
  mov: Read alternate absolute path in dref alis

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '22526c1f557a72b3285d295bd8b30c40eb65d437'
Michael Niedermayer [Mon, 20 Apr 2015 03:28:13 +0000 (05:28 +0200)]
Merge commit '22526c1f557a72b3285d295bd8b30c40eb65d437'

* commit '22526c1f557a72b3285d295bd8b30c40eb65d437':
  Canopus HQ/HQA decoder

Conflicts:
Changelog
libavcodec/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'e6fb844f7b736e72da364032d251283bce9e63ad'
Michael Niedermayer [Mon, 20 Apr 2015 03:19:19 +0000 (05:19 +0200)]
Merge commit 'e6fb844f7b736e72da364032d251283bce9e63ad'

* commit 'e6fb844f7b736e72da364032d251283bce9e63ad':
  Implement shared parsing of INFO tag in Canopus family

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'fcda30f2dcb744d89df9d5d1ec89ba55279cb83c'
Michael Niedermayer [Mon, 20 Apr 2015 03:19:03 +0000 (05:19 +0200)]
Merge commit 'fcda30f2dcb744d89df9d5d1ec89ba55279cb83c'

* commit 'fcda30f2dcb744d89df9d5d1ec89ba55279cb83c':
  fate: Prefix cllc tests with canopus

Conflicts:
tests/fate/lossless-video.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '5b5338f6d1272526d2634501555cbaff4cdfb87b'
Michael Niedermayer [Mon, 20 Apr 2015 03:09:47 +0000 (05:09 +0200)]
Merge commit '5b5338f6d1272526d2634501555cbaff4cdfb87b'

* commit '5b5338f6d1272526d2634501555cbaff4cdfb87b':
  hqx: Implement slice-threaded decoding

Conflicts:
libavcodec/hqx.c
libavcodec/hqx.h

See: eff72a6c7375587a3280ddf59e6e26a4907823b7
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '453642f8afe9f979fcc813a246b1ec656ec36a93'
Michael Niedermayer [Mon, 20 Apr 2015 02:57:06 +0000 (04:57 +0200)]
Merge commit '453642f8afe9f979fcc813a246b1ec656ec36a93'

* commit '453642f8afe9f979fcc813a246b1ec656ec36a93':
  hqx: Store shareable data in main decoder context

Conflicts:
libavcodec/hqx.c
libavcodec/hqx.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'ea031b75fb50c59196ccb654c9d143fb75365da9'
Michael Niedermayer [Mon, 20 Apr 2015 02:33:06 +0000 (04:33 +0200)]
Merge commit 'ea031b75fb50c59196ccb654c9d143fb75365da9'

* commit 'ea031b75fb50c59196ccb654c9d143fb75365da9':
  hqx: Move DSP related code to a separate file

Conflicts:
libavcodec/hqx.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '17aa81d94781c6f62dc7d1dbd1f8891c020c9905'
Michael Niedermayer [Mon, 20 Apr 2015 02:29:58 +0000 (04:29 +0200)]
Merge commit '17aa81d94781c6f62dc7d1dbd1f8891c020c9905'

* commit '17aa81d94781c6f62dc7d1dbd1f8891c020c9905':
  hqx: Merge invalid format check within switch block

Conflicts:
libavcodec/hqx.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/internal: Fix ff_dlog() define like av_dlog()
Michael Niedermayer [Mon, 20 Apr 2015 02:12:45 +0000 (04:12 +0200)]
avcodec/internal: Fix ff_dlog() define like av_dlog()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec: fix build with DEBUG/TRACE
Michael Niedermayer [Mon, 20 Apr 2015 02:11:23 +0000 (04:11 +0200)]
avcodec: fix build with DEBUG/TRACE

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '6a85dfc830f51f1f5c2d36d4182d265c1ea3ba25'
Michael Niedermayer [Mon, 20 Apr 2015 01:34:22 +0000 (03:34 +0200)]
Merge commit '6a85dfc830f51f1f5c2d36d4182d265c1ea3ba25'

* commit '6a85dfc830f51f1f5c2d36d4182d265c1ea3ba25':
  lavc: Replace av_dlog and tprintf with internal macros

Conflicts:
libavcodec/aacdec.c
libavcodec/audio_frame_queue.c
libavcodec/bitstream.c
libavcodec/dcadec.c
libavcodec/dnxhddec.c
libavcodec/dvbsubdec.c
libavcodec/dvdec.c
libavcodec/dvdsubdec.c
libavcodec/get_bits.h
libavcodec/gifdec.c
libavcodec/h264.h
libavcodec/h264_cabac.c
libavcodec/h264_cavlc.c
libavcodec/h264_loopfilter.c
libavcodec/h264_refs.c
libavcodec/imc.c
libavcodec/interplayvideo.c
libavcodec/jpeglsdec.c
libavcodec/libopencore-amr.c
libavcodec/mjpegdec.c
libavcodec/mpeg12dec.c
libavcodec/mpegvideo_enc.c
libavcodec/mpegvideo_parser.c
libavcodec/pngdec.c
libavcodec/ratecontrol.c
libavcodec/rv10.c
libavcodec/svq1dec.c
libavcodec/vqavideo.c
libavcodec/wmadec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '1a3eb042c704dea190c644def5b32c9cee8832b8'
Michael Niedermayer [Mon, 20 Apr 2015 01:19:29 +0000 (03:19 +0200)]
Merge commit '1a3eb042c704dea190c644def5b32c9cee8832b8'

* commit '1a3eb042c704dea190c644def5b32c9cee8832b8':
  Replace av_dlog with normal av_log at trace level

Conflicts:
ffplay.c
libavdevice/fbdev_dec.c
libavfilter/avfilter.c
libavfilter/internal.h
libavfilter/setpts.c
libavfilter/src_movie.c
libavfilter/vf_crop.c
libavfilter/vf_drawtext.c
libavfilter/vf_fieldorder.c
libavformat/assdec.c
libavformat/avidec.c
libavformat/flvdec.c
libavformat/http.c
libavformat/ipmovie.c
libavformat/isom.c
libavformat/mov.c
libavformat/mpegenc.c
libavformat/mpegts.c
libavformat/mpegtsenc.c
libavformat/mux.c
libavformat/mxfdec.c
libavformat/nsvdec.c
libavformat/oggdec.c
libavformat/r3d.c
libavformat/rtspdec.c
libavformat/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'c253340ae6f74ffd8798bbd476e46d1b33a2d56e'
Michael Niedermayer [Mon, 20 Apr 2015 00:48:19 +0000 (02:48 +0200)]
Merge commit 'c253340ae6f74ffd8798bbd476e46d1b33a2d56e'

* commit 'c253340ae6f74ffd8798bbd476e46d1b33a2d56e':
  log: Introduce a more verbose debug level

Conflicts:
doc/APIchanges
doc/fftools-common-opts.texi
libavutil/log.c
libavutil/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agofiltfmts: Avoid null pointer dereference
Himangi Saraogi [Fri, 3 Apr 2015 14:12:11 +0000 (19:42 +0530)]
filtfmts: Avoid null pointer dereference

9 years agoavutil: remove pointless bmi1 define
James Almer [Sat, 18 Apr 2015 23:12:54 +0000 (20:12 -0300)]
avutil: remove pointless bmi1 define

Signed-off-by: James Almer <jamrial@gmail.com>
9 years agoaacdec: consistently use avctx for logging in decode_eld_specific_config
Andreas Cadhalpun [Thu, 16 Apr 2015 14:58:32 +0000 (16:58 +0200)]
aacdec: consistently use avctx for logging in decode_eld_specific_config

ac may be NULL and then accessing ac->avctx results in a segmentation fault.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
9 years agompegvideo_enc: Simplify picture allocation
Vittorio Giovara [Wed, 15 Apr 2015 14:16:13 +0000 (15:16 +0100)]
mpegvideo_enc: Simplify picture allocation

9 years agomotion_est: Fix warning from zero_cmp() assignment
Vittorio Giovara [Tue, 14 Apr 2015 11:32:06 +0000 (13:32 +0200)]
motion_est: Fix warning from zero_cmp() assignment

warning: incompatible
      pointer types assigning to 'me_cmp_func' (aka 'int (*)(struct
      MpegEncContext *, uint8_t *, uint8_t *, ptrdiff_t, int)') from 'int
      (MpegEncContext *, uint8_t *, uint8_t *, int, int)'
      [-Wincompatible-pointer-types]

9 years agovc1_pred: Always initialize px and py in ff_vc1_pred_mv_intfr()
Vittorio Giovara [Sun, 19 Apr 2015 22:10:07 +0000 (23:10 +0100)]
vc1_pred: Always initialize px and py in ff_vc1_pred_mv_intfr()

Fix a rather lengthy initialization warning from clang.

9 years agomov: Double-check that alias path is not an absolute path
Vittorio Giovara [Tue, 7 Apr 2015 13:06:05 +0000 (15:06 +0200)]
mov: Double-check that alias path is not an absolute path

nlvl_to and nlvl_from can be set to 1 if both alias and target files
are in the same directory, so actually check the first character of the
string. We can do this because MacOS filepaths (alis type 2) are always
converted to UNIX filepaths (alis type 18).

9 years agomov: Read alternate absolute path in dref alis
Vittorio Giovara [Tue, 7 Apr 2015 13:06:04 +0000 (15:06 +0200)]
mov: Read alternate absolute path in dref alis

Absolute paths can be stored in alis type 2 and 18 according to my research:
the first is the canonical MacOS filepath, with path level separated by
colons, and the volume name within the filepath, while the second should be the
absolute filesystem path from the mount point.

9 years agoffmpeg: Fix null pointer dereference in do_video_out()
Michael Niedermayer [Sun, 19 Apr 2015 20:42:54 +0000 (22:42 +0200)]
ffmpeg: Fix null pointer dereference in do_video_out()

Fixes: CID1295087
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoCanopus HQ/HQA decoder
Vittorio Giovara [Thu, 9 Apr 2015 16:12:30 +0000 (18:12 +0200)]
Canopus HQ/HQA decoder

Based on work by Kostya Shishkov <kostya.shishkov@gmail.com>.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years agoImplement shared parsing of INFO tag in Canopus family
Vittorio Giovara [Thu, 9 Apr 2015 16:11:10 +0000 (18:11 +0200)]
Implement shared parsing of INFO tag in Canopus family

Add some bounds checking to CLLC; reduce HQX variable scoping,
add an error message.

9 years agofate: Prefix cllc tests with canopus
Vittorio Giovara [Thu, 9 Apr 2015 16:09:01 +0000 (18:09 +0200)]
fate: Prefix cllc tests with canopus

They belong to the same family of codecs.

9 years agohqx: Implement slice-threaded decoding
Vittorio Giovara [Thu, 9 Apr 2015 17:10:45 +0000 (19:10 +0200)]
hqx: Implement slice-threaded decoding

Inspired by a patch from Ferdinand Oeinck <ferdo@demon.nl>.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years agohqx: Store shareable data in main decoder context
Vittorio Giovara [Thu, 9 Apr 2015 17:06:33 +0000 (19:06 +0200)]
hqx: Store shareable data in main decoder context

In preparation for multithreaded decoding.

9 years agoavformat/matroskadec: remove now duplicate doctype check
Michael Niedermayer [Sun, 19 Apr 2015 14:45:24 +0000 (16:45 +0200)]
avformat/matroskadec: remove now duplicate  doctype check

See: b8d7f3186e86234f6255f5e8ee9e98573b4d9a6e
See: d9fe6b926cd619c311e45e0ae352cf09713c482c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/mpeg4videodec: Use check_marker()
Michael Niedermayer [Sun, 19 Apr 2015 13:34:43 +0000 (15:34 +0200)]
avcodec/mpeg4videodec: Use check_marker()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat/http: Fix 2 typos
Michael Niedermayer [Sun, 19 Apr 2015 12:26:40 +0000 (14:26 +0200)]
avformat/http: Fix 2 typos

Found-by: wm4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agohqx: Move DSP related code to a separate file
Vittorio Giovara [Thu, 9 Apr 2015 16:09:32 +0000 (18:09 +0200)]
hqx: Move DSP related code to a separate file

9 years agohqx: Merge invalid format check within switch block
Vittorio Giovara [Thu, 9 Apr 2015 16:09:31 +0000 (18:09 +0200)]
hqx: Merge invalid format check within switch block

9 years agolavc: Replace av_dlog and tprintf with internal macros
Vittorio Giovara [Mon, 16 Mar 2015 08:57:36 +0000 (08:57 +0000)]
lavc: Replace av_dlog and tprintf with internal macros

9 years agoReplace av_dlog with normal av_log at trace level
Vittorio Giovara [Mon, 16 Mar 2015 08:57:35 +0000 (08:57 +0000)]
Replace av_dlog with normal av_log at trace level

This applies to every library where performance is not critical.

9 years agolog: Introduce a more verbose debug level
Vittorio Giovara [Mon, 16 Mar 2015 08:57:34 +0000 (08:57 +0000)]
log: Introduce a more verbose debug level

And deprecate av_dlog macro.

9 years agoavformat/http: Return an error in case of prematurely ending data
Michael Niedermayer [Sat, 28 Mar 2015 23:33:35 +0000 (00:33 +0100)]
avformat/http: Return an error in case of prematurely ending data

Fixes Ticket 4039

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavutil: remove pointless bmi1 define
James Almer [Sat, 18 Apr 2015 23:06:21 +0000 (20:06 -0300)]
avutil: remove pointless bmi1 define

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agocmdutils: indent protocols listing
Lou Logan [Sat, 18 Apr 2015 22:31:23 +0000 (14:31 -0800)]
cmdutils: indent protocols listing

For readability.

Signed-off-by: Lou Logan <lou@lrcd.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoalsdec: validate time diff index
Andreas Cadhalpun [Sat, 18 Apr 2015 18:09:28 +0000 (20:09 +0200)]
alsdec: validate time diff index

If begin is smaller than t, the subtraction 'begin -= t' wraps around,
because begin is unsigned. The same applies for end < t.

This causes segmentation faults.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agowavpackenc: use put_sbits()
James Almer [Sat, 18 Apr 2015 21:06:27 +0000 (18:06 -0300)]
wavpackenc: use put_sbits()

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agomatroskadec: fix crash when parsing invalid mkv
Thomas Guillem [Fri, 10 Apr 2015 17:04:51 +0000 (19:04 +0200)]
matroskadec: fix crash when parsing invalid mkv

CC: libav-stable@libav.org
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agoavformat/riff: support G729A
Paul B Mahol [Fri, 17 Apr 2015 14:30:21 +0000 (14:30 +0000)]
avformat/riff: support G729A

Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years agoavcodec/g729dec: support decoding packets with multiple frames
Paul B Mahol [Fri, 17 Apr 2015 14:29:06 +0000 (14:29 +0000)]
avcodec/g729dec: support decoding packets with multiple frames

Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years agoMerge commit 'b8d7f3186e86234f6255f5e8ee9e98573b4d9a6e'
Michael Niedermayer [Sat, 18 Apr 2015 19:12:05 +0000 (21:12 +0200)]
Merge commit 'b8d7f3186e86234f6255f5e8ee9e98573b4d9a6e'

* commit 'b8d7f3186e86234f6255f5e8ee9e98573b4d9a6e':
  matroskadec: fix crash when parsing invalid mkv

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoalsdec: limit avctx->bits_per_raw_sample to 32
Andreas Cadhalpun [Sat, 18 Apr 2015 18:29:13 +0000 (20:29 +0200)]
alsdec: limit avctx->bits_per_raw_sample to 32

avctx->bits_per_raw_sample is used in get_sbits_long, which only
supports up to 32 bits.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/alsdec: Use av_mallocz_array() for chan_data to ensure the arrays never conta...
Michael Niedermayer [Sat, 18 Apr 2015 18:50:23 +0000 (20:50 +0200)]
avcodec/alsdec: Use av_mallocz_array() for chan_data to ensure the arrays never contain random data

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoalsdec: ensure channel reordering is reversible
Andreas Cadhalpun [Sat, 18 Apr 2015 16:31:36 +0000 (18:31 +0200)]
alsdec: ensure channel reordering is reversible

If the same idx is used for more than one i, at least one entry in
sconf->chan_pos remains uninitialized.

This can cause segmentation faults.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoproresenc_anatoliy: use put_sbits()
James Almer [Sat, 18 Apr 2015 07:31:30 +0000 (04:31 -0300)]
proresenc_anatoliy: use put_sbits()

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agoadpcm: use av_clip_intp2()
James Almer [Sat, 18 Apr 2015 06:40:48 +0000 (03:40 -0300)]
adpcm: use av_clip_intp2()

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agodca_xll: use av_clip_intp2()
James Almer [Sat, 18 Apr 2015 06:40:17 +0000 (03:40 -0300)]
dca_xll: use av_clip_intp2()

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agodcaenc: use put_sbits()
James Almer [Sat, 18 Apr 2015 02:25:40 +0000 (23:25 -0300)]
dcaenc: use put_sbits()

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agoaaccoder: use put_sbits()
James Almer [Sat, 18 Apr 2015 02:23:44 +0000 (23:23 -0300)]
aaccoder: use put_sbits()

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agolavf: add documentation on directory listing API
Mariusz SzczepaƄczyk [Sat, 18 Apr 2015 02:31:14 +0000 (04:31 +0200)]
lavf: add documentation on directory listing API

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/cabac: remove START/STOP_TIMER debug/benchmark code
Michael Niedermayer [Sat, 18 Apr 2015 15:31:29 +0000 (17:31 +0200)]
avcodec/cabac: remove START/STOP_TIMER debug/benchmark code

Found-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat/utils: Add HEVC to unreliable_tb()
Michael Niedermayer [Fri, 17 Apr 2015 22:59:58 +0000 (00:59 +0200)]
avformat/utils: Add HEVC to unreliable_tb()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat/utils: Use codec_info_duration_fields in fps calculation end decission when...
Michael Niedermayer [Fri, 17 Apr 2015 22:58:51 +0000 (00:58 +0200)]
avformat/utils: Use codec_info_duration_fields in fps calculation end decission when no timestamps and thus no duration_count is available

This avoids waiting for a count to increase which will always be 0 and may
reduce the startup delay for affected streams (rare)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agohls: skip to next segment if the current is unavailable
wm4 [Thu, 16 Apr 2015 11:47:20 +0000 (13:47 +0200)]
hls: skip to next segment if the current is unavailable

Apparently, some live streams can delete segments too early, maybe
because the client is too far behind. In this case, it's better to skip
the segment, instead of returning EOF. (Yes, the HLS demuxer actually
returns AVERROR_EOF if opening the segment returns a 404 HTTP error.)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agotests/tiny_psnr: Make the search range extend both sides from the specified shift...
Michael Niedermayer [Sun, 12 Apr 2015 13:28:15 +0000 (15:28 +0200)]
tests/tiny_psnr: Make the search range extend both sides from the specified shift value

This is what one would expect from the help text

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '1336bb06c9fbf9a14765e9f78616f2aad4f3a45a'
Michael Niedermayer [Fri, 17 Apr 2015 18:23:28 +0000 (20:23 +0200)]
Merge commit '1336bb06c9fbf9a14765e9f78616f2aad4f3a45a'

* commit '1336bb06c9fbf9a14765e9f78616f2aad4f3a45a':
  configure: Simplify avisynth check

Conflicts:
configure

No change as check_lib2 was already used

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '247aa7af7d8197247c181e3fbfe8d93d75e41b29'
Michael Niedermayer [Fri, 17 Apr 2015 18:03:16 +0000 (20:03 +0200)]
Merge commit '247aa7af7d8197247c181e3fbfe8d93d75e41b29'

* commit '247aa7af7d8197247c181e3fbfe8d93d75e41b29':
  avisynth: Simplify shared library name construction

Conflicts:
libavformat/avisynth.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agofate: gapless: test mp3 both with and without TOC
wm4 [Fri, 17 Apr 2015 15:27:03 +0000 (17:27 +0200)]
fate: gapless: test mp3 both with and without TOC

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agofate: gapless: test seeking to a specific position
wm4 [Fri, 17 Apr 2015 15:27:02 +0000 (17:27 +0200)]
fate: gapless: test seeking to a specific position

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agofate: gapless: fix a typo in comment
wm4 [Fri, 17 Apr 2015 15:27:01 +0000 (17:27 +0200)]
fate: gapless: fix a typo in comment

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat/mp3dec: fix gapless audio when seeking in CBR mode
wm4 [Fri, 17 Apr 2015 15:27:00 +0000 (17:27 +0200)]
avformat/mp3dec: fix gapless audio when seeking in CBR mode

Removing a bunch of questionable hacks makes it work. These hacks
apparently try to make concatenated mp3s with Lame headers seekable,
which doesn't make too much sense anyway. The main change is that we
trust the Xing header file size field now (the same field is used for
seeking with Xing TOC). Note that a mp3 might contain an unknown number
of unsupported additional tags, so we can't reliably compute this size
manually.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC horizontal and vertical...
Shivraj Patil [Fri, 17 Apr 2015 13:12:28 +0000 (18:42 +0530)]
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC horizontal and vertical mc functions

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Reviewed-by: Nedeljko Babic <Nedeljko.Babic@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMakefile: Add support for MSA (MIPS-SIMD-Arch)
Shivraj Patil [Fri, 17 Apr 2015 13:12:27 +0000 (18:42 +0530)]
Makefile: Add support for MSA (MIPS-SIMD-Arch)

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Reviewed-by: Nedeljko Babic <Nedeljko.Babic@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/mpegaudiodec_template: use double to build csa tables
Michael Niedermayer [Fri, 17 Apr 2015 11:36:14 +0000 (13:36 +0200)]
avcodec/mpegaudiodec_template: use double to build csa tables

Fixes rounding difference between 32bit x86 and 64bit
Fixes fate failure with gapless mp3

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/atrac3plusdsp: fix on stack alignment
Michael Niedermayer [Fri, 17 Apr 2015 09:58:41 +0000 (11:58 +0200)]
avcodec/atrac3plusdsp: fix on stack alignment

Fixes fate failure on ARM

9 years agowebmdashenc: Add better error handling
Vignesh Venkatasubramanian [Fri, 17 Apr 2015 00:32:21 +0000 (17:32 -0700)]
webmdashenc: Add better error handling

Return appropriate error codes and propagate the error codes from
helper functions to the outer calls. Also fix a potential leak in
call to av_realloc.

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoconfigure: remove old libdcadec check
James Almer [Thu, 16 Apr 2015 23:04:57 +0000 (20:04 -0300)]
configure: remove old libdcadec check

It's obsolete after the addition of the pkg-config check.
See http://comments.gmane.org/gmane.comp.video.ffmpeg.devel/191983 for the
relevant discussion

Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agofate: add mp3 gapless test
wm4 [Wed, 15 Apr 2015 19:10:49 +0000 (21:10 +0200)]
fate: add mp3 gapless test

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoac3: validate end in ff_ac3_bit_alloc_calc_mask
Andreas Cadhalpun [Thu, 16 Apr 2015 19:25:26 +0000 (21:25 +0200)]
ac3: validate end in ff_ac3_bit_alloc_calc_mask

This fixes an invalid read if end is 0:
     band_end   = ff_ac3_bin_to_band_tab[end-1] + 1;

Depending on what is before the array, this can cause stack smashing,
when band_end becomes too large.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolavf/assenc: handle extra sections after Events
Rodger Combs [Sat, 4 Apr 2015 10:31:22 +0000 (05:31 -0500)]
lavf/assenc: handle extra sections after Events

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoaacpsy: avoid psy_band->threshold becoming NaN
Andreas Cadhalpun [Thu, 16 Apr 2015 18:04:54 +0000 (20:04 +0200)]
aacpsy: avoid psy_band->threshold becoming NaN

If band->thr is 0.0f, the division is undefined, making norm_fac not a
number or infinity, which causes psy_band->threshold to become NaN.

This is passed on to other variables until it finally reaches
sce->sf_idx and is converted to an integer (-2147483648).

This causes a segmentation fault when it is used as array index.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Reviewed-by: Claudio Freire <klaussfreire@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoaasc: return correct buffer size from aasc_decode_frame
Andreas Cadhalpun [Thu, 16 Apr 2015 17:12:02 +0000 (19:12 +0200)]
aasc: return correct buffer size from aasc_decode_frame

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoaacdec: consistently use avctx for logging in decode_eld_specific_config
Andreas Cadhalpun [Thu, 16 Apr 2015 14:58:32 +0000 (16:58 +0200)]
aacdec: consistently use avctx for logging in decode_eld_specific_config

ac may be NULL and then accessing ac->avctx results in a segmentation fault.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoconfigure: add missing dependencies for MIPS and PPC features
James Almer [Thu, 16 Apr 2015 05:59:17 +0000 (02:59 -0300)]
configure: add missing dependencies for MIPS and PPC features

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agomsrledec: use signed pixel_ptr in msrle_decode_pal4
Andreas Cadhalpun [Thu, 16 Apr 2015 12:49:08 +0000 (14:49 +0200)]
msrledec: use signed pixel_ptr in msrle_decode_pal4

This fixes segmentation faults, when pic->linesize[0] is negative.
In that case 'line * pic->linesize[0] + pixel_ptr' is treated as
unsigned and wraps around.

This reverts commit 7d78a964.
The problem was introduced in commit f7e1367f, which should obsolete
that commit.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoconfigure: add pkg-config support for libdcadec
Simon Thelen [Wed, 15 Apr 2015 15:18:58 +0000 (17:18 +0200)]
configure: add pkg-config support for libdcadec

Signed-off-by: Simon Thelen <ffmpeg-dev@c-14.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoivfenc: incorrect fourcc for VP9 video
Victor Anjin [Wed, 15 Apr 2015 16:51:59 +0000 (23:51 +0700)]
ivfenc: incorrect fourcc for VP9 video

VP80 fourcc are writed for all contexts (without ctx->codec_tag)
how to reproduce the issue:
1) Get any vp9 video (for example  http://base-n.de/webm/out9.webm)
2) ffmpeg  -i out9.webm -vcodec copy out9.ivf
3) out9.ivf have VP80 fourcc at ivf header
The proposed fix solves this issue

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolavfi/avf_showcqt: fix error code.
Nicolas George [Thu, 16 Apr 2015 09:31:23 +0000 (11:31 +0200)]
lavfi/avf_showcqt: fix error code.

Signed-off-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat/utils: Preserve packet duration when parsing is done only for headers
Michael Niedermayer [Tue, 14 Apr 2015 22:06:17 +0000 (00:06 +0200)]
avformat/utils: Preserve packet duration when parsing is done only for headers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/h264_ps: Validate num_units_in_tick/time_scale before setting them in the...
Michael Niedermayer [Wed, 15 Apr 2015 23:59:19 +0000 (01:59 +0200)]
avcodec/h264_ps: Validate num_units_in_tick/time_scale before setting them in the context

This probably makes no big difference but it is more correct

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoh264: Do not fail on unsupported timing info
Vittorio Giovara [Wed, 15 Apr 2015 12:27:01 +0000 (13:27 +0100)]
h264: Do not fail on unsupported timing info

The spec madandate both time_scale and num_units_in_tick greater than 0,
however since they are not essential for decoding, just ignore the whole
block and try to finish parsing the VUI.

Related to Ticket4445.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years agoaaccoder: Implement Perceptual Noise Substitution for AAC
Rostislav Pehlivanov [Wed, 15 Apr 2015 11:18:42 +0000 (12:18 +0100)]
aaccoder: Implement Perceptual Noise Substitution for AAC

This commit implements the perceptual noise substitution AAC extension. This is a proof of concept
implementation, and as such, is not enabled by default. This is the fourth revision of this patch,
made after some problems were noted out. Any changes made since the previous revisions have been indicated.

In order to extend the encoder to use an additional codebook, the array holding each codebook has been
modified with two additional entries - 13 for the NOISE_BT codebook and 12 which has a placeholder function.
The cost system was modified to skip the 12th entry using an array to map the input and outputs it has. It
also does not accept using the 13th codebook for any band which is not marked as containing noise, thereby
restricting its ability to arbitrarily choose it for bands. The use of arrays allows the system to be easily
extended to allow for intensity stereo encoding, which uses additional codebooks.

The 12th entry in the codebook function array points to a function which stops the execution of the program
by calling an assert with an always 'false' argument. It was pointed out in an email discussion with
Claudio Freire that having a 'NULL' entry can result in unexpected behaviour and could be used as
a security hole. There is no danger of this function being called during encoding due to the codebook maps introduced.

Another change from version 1 of the patch is the addition of an argument to the encoder, '-aac_pns' to
enable and disable the PNS. This currently defaults to disable the PNS, as it is experimental.
The switch will be removed in the future, when the algorithm to select noise bands has been improved.
The current algorithm simply compares the energy to the threshold (multiplied by a constant) to determine
noise, however the FFPsyBand structure contains other useful figures to determine which bands carry noise more accurately.

Some of the sample files provided triggered an assertion when the parameter to tune the threshold was set to
a value of '2.2'. Claudio Freire reported the problem's source could be in the range of the scalefactor
indices for noise and advised to measure the minimal index and clip anything above the maximum allowed
value. This has been implemented and all the files which used to trigger the asserion now encode without error.

The third revision of the problem also removes unneded variabes and comparisons. All of them were
redundant and were of little use for when the PNS implementation would be extended.

The fourth revision moved the clipping of the noise scalefactors outside the second loop of the two-loop
algorithm in order to prevent their redundant calculations. Also, freq_mult has been changed to a float
variable due to the fact that rounding errors can prove to be a problem at low frequencies.
Considerations were taken whether the entire expression could be evaluated inside the expression
, but in the end it was decided that it would be for the best if just the type of the variable were
to change. Claudio Freire reported the two problems. There is no change of functionality
(except for low sampling frequencies) so the spectral demonstrations at the end of this commit's message were not updated.

Finally, the way energy values are converted to scalefactor indices has changed since the first commit,
as per the suggestion of Claudio Freire. This may still have some drawbacks, but unlike the first commit
it works without having redundant offsets and outputs what the decoder expects to have, in terms of the
ranges of the scalefactor indices.

Some spectral comparisons: https://trac.ffmpeg.org/attachment/wiki/Encode/AAC/Original.png (original),
https://trac.ffmpeg.org/attachment/wiki/Encode/AAC/PNS_NO.png (encoded without PNS),
https://trac.ffmpeg.org/attachment/wiki/Encode/AAC/PNS1.2.png (encoded with PNS, const = 1.2),
https://trac.ffmpeg.org/attachment/wiki/Encode/AAC/Difference1.png (spectral difference).
The constant is the value which multiplies the threshold when it gets compared to the energy, larger
values means more noise will be substituded by PNS values. Example when const = 2.2:
https://trac.ffmpeg.org/attachment/wiki/Encode/AAC/PNS_2.2.png

Reviewed-by: Claudio Freire <klaussfreire@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolibavutil/softfloat: Change order of fields in SoftFloat structure.
Nedeljko Babic [Wed, 15 Apr 2015 13:14:06 +0000 (15:14 +0200)]
libavutil/softfloat: Change order of fields in SoftFloat structure.

Softfloat will be used in implementation of AAC fixed point decoder.
This change is needed in order to more easily integrate ffmpegs softfloat in
already developed algorithm for AAC.

Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/intelh263dec: Use check_marker()
Michael Niedermayer [Wed, 15 Apr 2015 12:36:03 +0000 (14:36 +0200)]
avcodec/intelh263dec: Use check_marker()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoconfigure: Simplify avisynth check
Diego Biurrun [Tue, 17 Mar 2015 12:31:41 +0000 (13:31 +0100)]
configure: Simplify avisynth check

9 years agoavisynth: Simplify shared library name construction
Diego Biurrun [Tue, 17 Mar 2015 12:32:06 +0000 (13:32 +0100)]
avisynth: Simplify shared library name construction

9 years agoavformat/mp3dec: offset seek index to end of vbr headers
wm4 [Tue, 14 Apr 2015 19:24:36 +0000 (21:24 +0200)]
avformat/mp3dec: offset seek index to end of vbr headers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoRevert "avformat/mp3dec: offset seek index to end of id3v2 tag"
wm4 [Tue, 14 Apr 2015 19:24:35 +0000 (21:24 +0200)]
Revert "avformat/mp3dec: offset seek index to end of id3v2 tag"

This reverts commit 8b76c0eb561b0313e2a27950fe9d2bc5e4780dd8.

It was slightly incorrect; the next commit fixes it.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat/mp3dec: Allow forcing the use of the xing TOC for CBR files
Michael Niedermayer [Wed, 15 Apr 2015 11:24:19 +0000 (13:24 +0200)]
avformat/mp3dec: Allow forcing the use of the xing TOC for CBR files

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'ec89f35e3e5eb9ec5221266e801efeee7ecab4df'
Michael Niedermayer [Wed, 15 Apr 2015 09:57:00 +0000 (11:57 +0200)]
Merge commit 'ec89f35e3e5eb9ec5221266e801efeee7ecab4df'

* commit 'ec89f35e3e5eb9ec5221266e801efeee7ecab4df':
  x265: Map color parameters

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