]> git.sesse.net Git - ffmpeg/log
ffmpeg
9 years agofate: add test for vp90-2-trac3849.webm
James Almer [Sun, 12 Oct 2014 20:18:47 +0000 (17:18 -0300)]
fate: add test for vp90-2-trac3849.webm

Regression test for the bug from trac ticket #3849 fixed in commit 14e30255

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agoMerge commit '95ee4e2ce774e0339632d067161596bf3dadfc72'
Michael Niedermayer [Sun, 12 Oct 2014 20:48:17 +0000 (22:48 +0200)]
Merge commit '95ee4e2ce774e0339632d067161596bf3dadfc72'

* commit '95ee4e2ce774e0339632d067161596bf3dadfc72':
  movenc: Add some comments explaining subtle details in writing the edit lists

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '72f801619a1ae91969fee9a7d72519422433c998'
Michael Niedermayer [Sun, 12 Oct 2014 20:37:33 +0000 (22:37 +0200)]
Merge commit '72f801619a1ae91969fee9a7d72519422433c998'

* commit '72f801619a1ae91969fee9a7d72519422433c998':
  movenc: Adjust edit lists to trim out parts of tracks with negative pts

Conflicts:
libavformat/movenc.c

See: 66b45d8f7a1bfba1065286361ab571cb9cfd87c6
See: 14fd34d73bb0bcb227b62506fb51d63751c9b190
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '8bef43388132b53f59a6e90add18900a3bb4cc60'
Michael Niedermayer [Sun, 12 Oct 2014 20:29:10 +0000 (22:29 +0200)]
Merge commit '8bef43388132b53f59a6e90add18900a3bb4cc60'

* commit '8bef43388132b53f59a6e90add18900a3bb4cc60':
  smoothstreamingenc: Simplify code by removing a redundant variable

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agopostproc/postprocess: fix quant store for fq mode
Michael Niedermayer [Sun, 12 Oct 2014 18:26:27 +0000 (20:26 +0200)]
postproc/postprocess: fix quant store for fq mode

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavfilter/vf_pp: add yuv 4:4:0 support
Michael Niedermayer [Sun, 12 Oct 2014 17:13:20 +0000 (19:13 +0200)]
avfilter/vf_pp: add yuv 4:4:0 support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agopostprocess: add YUV 4:4:0 support
Michael Niedermayer [Sun, 12 Oct 2014 17:11:53 +0000 (19:11 +0200)]
postprocess: add YUV 4:4:0 support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavfilter: remove obsolete FF_API_DRAWTEXT_OLD_TIMELINE cruft
James Almer [Sun, 12 Oct 2014 18:54:58 +0000 (15:54 -0300)]
avfilter: remove obsolete FF_API_DRAWTEXT_OLD_TIMELINE cruft

9 years agomovenc: Add some comments explaining subtle details in writing the edit lists
Martin Storsjö [Sat, 11 Oct 2014 20:56:24 +0000 (23:56 +0300)]
movenc: Add some comments explaining subtle details in writing the edit lists

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agomovenc: Adjust edit lists to trim out parts of tracks with negative pts
Michael Niedermayer [Sat, 29 Sep 2012 04:31:18 +0000 (06:31 +0200)]
movenc: Adjust edit lists to trim out parts of tracks with negative pts

This makes sure that audio preroll for e.g. AAC is signaled correctly.

Previously we only wrote the edit list correctly if we had negative
dts but started with pts == 0 (e.g. for video with B-frames).

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agosmoothstreamingenc: Simplify code by removing a redundant variable
Martin Storsjö [Mon, 6 Oct 2014 07:06:37 +0000 (10:06 +0300)]
smoothstreamingenc: Simplify code by removing a redundant variable

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agoavcodec/eatgv: use av_freep(), do not leave stale pointers in memory
Michael Niedermayer [Sun, 12 Oct 2014 10:22:00 +0000 (12:22 +0200)]
avcodec/eatgv: use av_freep(), do not leave stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/eatqi: use av_freep(), do not leave stale pointers in memory
Michael Niedermayer [Sun, 12 Oct 2014 10:22:00 +0000 (12:22 +0200)]
avcodec/eatqi: use av_freep(), do not leave stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/error_resilience: avoid pointer arithmetic with NULL
Michael Niedermayer [Sun, 12 Oct 2014 02:46:55 +0000 (04:46 +0200)]
avcodec/error_resilience: avoid pointer arithmetic with NULL

move the code after the existing NULL check
Fixes: signal_sigsegv_844d59_10_signal_sigsegv_a17bb7_366_mpegts_mpeg2video_mp2_dvbsub_topfield.rec
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'bd239c9a2e151c0aeeb653a571f130aae7320894'
Michael Niedermayer [Sat, 11 Oct 2014 22:52:46 +0000 (00:52 +0200)]
Merge commit 'bd239c9a2e151c0aeeb653a571f130aae7320894'

* commit 'bd239c9a2e151c0aeeb653a571f130aae7320894':
  lavf: Don't drop both pts and dts if timestamps are invalid

Conflicts:
libavformat/utils.c
tests/ref/fate/vc1-ism

See: cd6851c5ef281e44af7028e08597c4dfb73d880f
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolavf: Don't drop both pts and dts if timestamps are invalid
Michael Niedermayer [Wed, 16 Nov 2011 00:19:35 +0000 (01:19 +0100)]
lavf: Don't drop both pts and dts if timestamps are invalid

In these cases, only drop dts. Because if we drop both we have no
timestamps at all for some files.

This improves playback of HLS streams from GoPro cameras.

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agoavcodec/mjpegdec: sanity check bits
Michael Niedermayer [Sat, 11 Oct 2014 22:25:47 +0000 (00:25 +0200)]
avcodec/mjpegdec: sanity check bits

Fixes undefined shift
Fixes: asan_heap-oob_16668e9_2_asan_heap-oob_16668e9_346_miss_congeniality_pegasus_mjpg.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agovf_drawtext: add missing clear of pointers after av_expr_free()
Karl Kiniger [Sat, 11 Oct 2014 20:34:11 +0000 (22:34 +0200)]
vf_drawtext: add missing clear of pointers after av_expr_free()

Fixes segfault when using sendcmd with drawtext.

Since LIBAVFILTER_VERSION_MAJOR 5 FF_API_DRAWTEXT_OLD_TIMELINE
evaluates to 0.

Signed-off-by: Karl Kiniger <karl.kiniger@med.ge.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/dct: use av_freep(), do not leave stale pointers in memory
Michael Niedermayer [Sat, 11 Oct 2014 20:50:51 +0000 (22:50 +0200)]
avcodec/dct: use av_freep(), do not leave stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/dirac_parser: use av_freep(), do not leave stale pointers in memory
Michael Niedermayer [Sat, 11 Oct 2014 20:50:51 +0000 (22:50 +0200)]
avcodec/dirac_parser: use av_freep(), do not leave stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/eamad: use av_freep(), do not leave stale pointers in memory
Michael Niedermayer [Sat, 11 Oct 2014 20:50:51 +0000 (22:50 +0200)]
avcodec/eamad: use av_freep(), do not leave stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoffmpeg_opt: abort if -to <= -ss
Simon Thelen [Fri, 10 Oct 2014 21:04:01 +0000 (23:04 +0200)]
ffmpeg_opt: abort if -to <= -ss

Makes ffmpeg abort instead of continuing when stop_time <= start_time.

Closes ticket #4015.

Signed-off-by: Simon Thelen <ffmpeg-dev@c-14.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoproresenc_ks: use chroma sampling in autoselection
Christophe Gisquet [Sat, 30 Aug 2014 13:04:03 +0000 (15:04 +0200)]
proresenc_ks: use chroma sampling in autoselection

If the chroma planes aren't subsampled, automatically select
the 4:4:4:4 profile.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavutil/lzo: fix resource leak
Ruoyu [Sat, 11 Oct 2014 03:50:20 +0000 (11:50 +0800)]
avutil/lzo: fix resource leak

Signed-off-by: Ruoyu <liangry@ucweb.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoswscale: support internal scaler cascades
Michael Niedermayer [Wed, 8 Oct 2014 00:05:54 +0000 (02:05 +0200)]
swscale: support internal scaler cascades

Fixes Ticket3170

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/mpeg12dec: print aspect_ratio_info in debug output
Michael Niedermayer [Sat, 11 Oct 2014 01:22:16 +0000 (03:22 +0200)]
avcodec/mpeg12dec: print aspect_ratio_info in debug output

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '1d4579e38ecad578c86516fad2837a273d11b320'
Michael Niedermayer [Fri, 10 Oct 2014 21:35:41 +0000 (23:35 +0200)]
Merge commit '1d4579e38ecad578c86516fad2837a273d11b320'

* commit '1d4579e38ecad578c86516fad2837a273d11b320':
  tcp: Add AVOption support

Conflicts:
libavformat/tcp.c

See: 2e009c6042bde419599ebed9165e597bbef23b2f
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat/assenc: make sure we crawl extradata only if it's non-null
Clément Bœsch [Fri, 10 Oct 2014 21:49:38 +0000 (23:49 +0200)]
avformat/assenc: make sure we crawl extradata only if it's non-null

9 years agoMerge commit 'cd9d6399fd00f5aeacaa90cdc0b74c3570024119'
Michael Niedermayer [Fri, 10 Oct 2014 19:44:17 +0000 (21:44 +0200)]
Merge commit 'cd9d6399fd00f5aeacaa90cdc0b74c3570024119'

* commit 'cd9d6399fd00f5aeacaa90cdc0b74c3570024119':
  tls: Support passing old-style tcp options

See: 4f4eb380f0f96dbb7cdd2b812fa92b8b47a0f27c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '3df8d52fcdc9036b4074fdc612d487ece8bb5b7f'
Michael Niedermayer [Fri, 10 Oct 2014 19:36:08 +0000 (21:36 +0200)]
Merge commit '3df8d52fcdc9036b4074fdc612d487ece8bb5b7f'

* commit '3df8d52fcdc9036b4074fdc612d487ece8bb5b7f':
  rtsp: Add rtsps to the probe

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'c839b0439f0b01c72a6d253920d2e342b30f8bcb'
Michael Niedermayer [Fri, 10 Oct 2014 19:28:50 +0000 (21:28 +0200)]
Merge commit 'c839b0439f0b01c72a6d253920d2e342b30f8bcb'

* commit 'c839b0439f0b01c72a6d253920d2e342b30f8bcb':
  rtsp: Support tls when in listen mode

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '8b2e9636c57b22582143467a8a06b509b47b92f9'
Michael Niedermayer [Fri, 10 Oct 2014 19:18:41 +0000 (21:18 +0200)]
Merge commit '8b2e9636c57b22582143467a8a06b509b47b92f9'

* commit '8b2e9636c57b22582143467a8a06b509b47b92f9':
  rtsp: Support tls-encapsulated RTSP

Conflicts:
libavformat/rtsp.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'c27328e749ff3be648411765cd17362fee017341'
Michael Niedermayer [Fri, 10 Oct 2014 19:05:49 +0000 (21:05 +0200)]
Merge commit 'c27328e749ff3be648411765cd17362fee017341'

* commit 'c27328e749ff3be648411765cd17362fee017341':
  rtsp: Check for command strings without spaces

Conflicts:
libavformat/rtspdec.c

See: a0568ed2544025de3c66dd500811f5ba43f38af4
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '09e1ccc8cddc946da5e10841f10dc5ebdd187d9d'
Michael Niedermayer [Fri, 10 Oct 2014 18:51:52 +0000 (20:51 +0200)]
Merge commit '09e1ccc8cddc946da5e10841f10dc5ebdd187d9d'

* commit '09e1ccc8cddc946da5e10841f10dc5ebdd187d9d':
  sctp: Use AVERROR_BUG instead of abort()

Conflicts:
libavformat/sctp.c

See: 2e59142fa9a0db5fab8aa2e676ba524f61280b83
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'eb4f9069002e73648f6640cd054fc814cfda75b8'
Michael Niedermayer [Fri, 10 Oct 2014 18:34:14 +0000 (20:34 +0200)]
Merge commit 'eb4f9069002e73648f6640cd054fc814cfda75b8'

* commit 'eb4f9069002e73648f6640cd054fc814cfda75b8':
  lavf: More informative error message

Conflicts:
libavformat/mux.c

See: 30ced7e69f434bd49b39fb7c8ce02d9ba71babfc
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoutvideoenc: properly set slice height/last line
Christophe Gisquet [Thu, 9 Oct 2014 21:27:38 +0000 (23:27 +0200)]
utvideoenc: properly set slice height/last line

Mimic decoder and obey sampling.

Does not affect fate tests for utvideo.
Fixes ticket #3949.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavutil/softfloat: Fix undefined shift in av_add_sf()
Michael Niedermayer [Fri, 10 Oct 2014 17:36:12 +0000 (19:36 +0200)]
avutil/softfloat: Fix undefined shift in av_add_sf()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat/movenc: add EAC3 muxing support.
Benoit Fouet [Tue, 7 Oct 2014 12:57:19 +0000 (14:57 +0200)]
avformat/movenc: add EAC3 muxing support.

Support only one independent substream right now, and only syncframes
containing 6 blocks.

Fixes part of ticket #3074

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agofloat_dsp-test: allow forcing cpuflags
James Almer [Fri, 10 Oct 2014 05:18:14 +0000 (02:18 -0300)]
float_dsp-test: allow forcing cpuflags

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agoavcodec/atrac3: use av_freep(), do not leave stale pointers in memory
Michael Niedermayer [Fri, 10 Oct 2014 15:09:46 +0000 (17:09 +0200)]
avcodec/atrac3: use av_freep(), do not leave stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/cavs: use av_freep(), do not leave stale pointers in memory
Michael Niedermayer [Fri, 10 Oct 2014 15:09:46 +0000 (17:09 +0200)]
avcodec/cavs: use av_freep(), do not leave stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agotcp: Add AVOption support
Luca Barbato [Thu, 9 Oct 2014 20:05:27 +0000 (22:05 +0200)]
tcp: Add AVOption support

9 years agotls: Support passing old-style tcp options
Luca Barbato [Thu, 9 Oct 2014 19:34:54 +0000 (21:34 +0200)]
tls: Support passing old-style tcp options

Make tcp and tls urls near-interchangeable.

9 years agortsp: Add rtsps to the probe
Luca Barbato [Thu, 9 Oct 2014 20:07:35 +0000 (22:07 +0200)]
rtsp: Add rtsps to the probe

9 years agortsp: Support tls when in listen mode
Luca Barbato [Thu, 9 Oct 2014 20:07:12 +0000 (22:07 +0200)]
rtsp: Support tls when in listen mode

9 years agortsp: Support tls-encapsulated RTSP
Luca Barbato [Thu, 9 Oct 2014 17:35:34 +0000 (19:35 +0200)]
rtsp: Support tls-encapsulated RTSP

9 years agortsp: Check for command strings without spaces
Luca Barbato [Thu, 9 Oct 2014 18:13:54 +0000 (20:13 +0200)]
rtsp: Check for command strings without spaces

Prevent a NULL-pointer dereference.

CC: libav-stable@libav.org
9 years agosctp: Use AVERROR_BUG instead of abort()
Luca Barbato [Thu, 9 Oct 2014 15:57:14 +0000 (17:57 +0200)]
sctp: Use AVERROR_BUG instead of abort()

Trying to write to a stream id larger the the maximum requested is
a programming error, still there is no reason to leave a
reachable abort() in the codebase.

CC: libav-stable@libav.org
9 years agolavf: More informative error message
Luca Barbato [Thu, 9 Oct 2014 15:18:03 +0000 (17:18 +0200)]
lavf: More informative error message

Print the timestamp values and not just the stream index.

9 years agolibavcodec/ppc/hpeldsp_altivec.c : fix ff_put_pixels16_altivec() for POWER LE
Rong Yan [Fri, 10 Oct 2014 08:29:58 +0000 (08:29 +0000)]
libavcodec/ppc/hpeldsp_altivec.c : fix ff_put_pixels16_altivec() for POWER LE

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolibavcodec/ppc/me_cmp.c : fix sad16_altivec() sse16_altivec() sad16_xy2_altivec(...
Rong Yan [Fri, 10 Oct 2014 08:28:19 +0000 (08:28 +0000)]
libavcodec/ppc/me_cmp.c : fix sad16_altivec() sse16_altivec() sad16_xy2_altivec() sad16_x2_altivec() sad16_y2_altivec() sad8_altivec() for POWER LE

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agovp9: enable multi-thread decoding when refreshctx is equal to 0
Di Wu [Sat, 11 Oct 2014 17:20:18 +0000 (01:20 +0800)]
vp9: enable multi-thread decoding when refreshctx is equal to 0

In vp9_decode_frame function, ff_thread_finish_setup is not called
when refreshctx is equal to 0, and the next decoding thread can not
start work until the cunrrent frame has been decoded completely. So
ff_thread_finish_setup needs to be called to enable Multi-thread
decoding in this condition.

Signed-off-by: Di Wu <di1028.wu@samsung.com>
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
9 years agolibavcodec/ppc/mpegvideoencdsp.c : fix pix_norm1_altivec() and pix_sum_altivec()...
Rong Yan [Fri, 10 Oct 2014 08:27:16 +0000 (08:27 +0000)]
libavcodec/ppc/mpegvideoencdsp.c : fix pix_norm1_altivec() and pix_sum_altivec() for POWER LE

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolibavcodec/ppc/pixblockdsp.c : fix get_pixels_altivec() and diff_pixels_altivec(...
Rong Yan [Fri, 10 Oct 2014 08:25:44 +0000 (08:25 +0000)]
libavcodec/ppc/pixblockdsp.c : fix get_pixels_altivec() and diff_pixels_altivec() for POWER LE

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'b7c3bfd5eb3153f7de8039f96e7911b2a1d46cae'
Michael Niedermayer [Fri, 10 Oct 2014 10:25:50 +0000 (12:25 +0200)]
Merge commit 'b7c3bfd5eb3153f7de8039f96e7911b2a1d46cae'

* commit 'b7c3bfd5eb3153f7de8039f96e7911b2a1d46cae':
  w32pthreads: use the condition variable API directly when targeting newer versions of Windows

Conflicts:
compat/w32pthreads.h

See: 8c6992bf0cc24542a5ae245cd037a23638b76d75
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '73ea3ffcd55b0b1d23ba4769d65996a8d58ffa11'
Michael Niedermayer [Fri, 10 Oct 2014 10:08:48 +0000 (12:08 +0200)]
Merge commit '73ea3ffcd55b0b1d23ba4769d65996a8d58ffa11'

* commit '73ea3ffcd55b0b1d23ba4769d65996a8d58ffa11':
  w32pthreads: use the CONDITION_VARIABLE typedef if available

Conflicts:
compat/w32pthreads.h
configure

See: 0c0694931442ef9ea91eace120e0629e0ac01b76
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agow32pthreads: use the condition variable API directly when targeting newer versions...
James Almer [Thu, 9 Oct 2014 16:13:06 +0000 (13:13 -0300)]
w32pthreads: use the condition variable API directly when targeting newer versions of Windows

Wrap the function calls in a similar fashion to how it's being done
with the critical section API.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agow32pthreads: use the CONDITION_VARIABLE typedef if available
James Almer [Thu, 9 Oct 2014 16:13:05 +0000 (13:13 -0300)]
w32pthreads: use the CONDITION_VARIABLE typedef if available

This silences warnings about passing arguments from incompatible pointer type
when targeting Windows Vista or newer.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agoffprobe: Simplify by using av_color_range_name()
Michael Niedermayer [Fri, 10 Oct 2014 02:24:05 +0000 (04:24 +0200)]
ffprobe: Simplify by using av_color_range_name()

Idea from: a2c00d22e71d13b72828147be86aa9e961c6cae6
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat/format: move mime_type_opt declaration to where its used
Michael Niedermayer [Fri, 10 Oct 2014 01:08:11 +0000 (03:08 +0200)]
avformat/format: move mime_type_opt declaration to where its used

also remove a related dead store

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat/os_support: include unistd.h before defining lseek to lseek64 on android
Michael Niedermayer [Fri, 10 Oct 2014 00:30:39 +0000 (02:30 +0200)]
avformat/os_support: include unistd.h before defining lseek to lseek64 on android

fixes build failure

Found-by: James Almer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavutil/error: Add AVERROR_INPUT_CHANGED & AVERROR_OUTPUT_CHANGED to error_entries[]
Michael Niedermayer [Thu, 9 Oct 2014 23:45:34 +0000 (01:45 +0200)]
avutil/error: Add AVERROR_INPUT_CHANGED & AVERROR_OUTPUT_CHANGED to error_entries[]

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolavf/webm_dash: Allow filenames without directories
Vignesh Venkatasubramanian [Thu, 9 Oct 2014 21:56:47 +0000 (14:56 -0700)]
lavf/webm_dash: Allow filenames without directories

Fix basename computation code to allow just file names without any
directories in the path.

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoffplay: dont leave swresampler in half initialized state
Marton Balint [Wed, 8 Oct 2014 21:36:11 +0000 (23:36 +0200)]
ffplay: dont leave swresampler in half initialized state

On init failure, let's just free it, so next time it will be recreated from
start.

Also fixes Coverity CID 1241515.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years agocompat/w32pthreads: use the condition variable API directly when targeting newer...
James Almer [Thu, 9 Oct 2014 20:49:22 +0000 (17:49 -0300)]
compat/w32pthreads: use the condition variable API directly when targeting newer versions of Windows

Wrap the function calls in a similar fashion to how it's being done
with the critical section API.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agoFix writing first audio Cues in dash mode.
Frank Galligan [Thu, 9 Oct 2014 15:28:00 +0000 (08:28 -0700)]
Fix writing first audio Cues in dash mode.

In dahsmode Matroska is not writing the first Cluster for every
audio stream in the Cues element.

Signed-off-by: Frank Galligan <frankgalligan@gmail.com>
Reviewed-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agocompat/w32pthreads: use the CONDITION_VARIABLE typedef if available
James Almer [Thu, 9 Oct 2014 16:20:00 +0000 (13:20 -0300)]
compat/w32pthreads: use the CONDITION_VARIABLE typedef if available

This silences warnings about passing arguments from incompatible pointer type
when targeting Windows Vista or newer.

Tested-by: Matt Oliver <protogonoi@gmail.com>
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agoavutil/softfloat: add some asserts
Michael Niedermayer [Thu, 9 Oct 2014 15:02:59 +0000 (17:02 +0200)]
avutil/softfloat: add some asserts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavutil/softfloat: Fix dependence on signed overflow in av_normalize1_sf()
Michael Niedermayer [Thu, 9 Oct 2014 14:37:26 +0000 (16:37 +0200)]
avutil/softfloat: Fix dependence on signed overflow in av_normalize1_sf()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavutil/Makefile: add softfloat to TESTPROGS
Michael Niedermayer [Thu, 9 Oct 2014 14:02:14 +0000 (16:02 +0200)]
avutil/Makefile: add softfloat to TESTPROGS

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat/mov: E-AC-3 streams need parsing too.
Benoit Fouet [Thu, 9 Oct 2014 07:17:49 +0000 (09:17 +0200)]
avformat/mov: E-AC-3 streams need parsing too.

syncframes in E-AC-3 can be combined to provide 6 audio blocks per
sample, thus requiring parsing for proper decoding.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolavf: fix 2GB file seek limit on Android
Yu Xiaolei [Thu, 9 Oct 2014 02:49:43 +0000 (10:49 +0800)]
lavf: fix 2GB file seek limit on Android

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '2bc220958c7570020d87ee353db65460b518998a'
Michael Niedermayer [Thu, 9 Oct 2014 10:25:52 +0000 (12:25 +0200)]
Merge commit '2bc220958c7570020d87ee353db65460b518998a'

* commit '2bc220958c7570020d87ee353db65460b518998a':
  ismindex: handle discontinuous streams better

Conflicts:
tools/ismindex.c

See: d3834f290138cb8c48fd404081ac5b9a2ca14564
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoismindex: handle discontinuous streams better
Mika Raento [Wed, 8 Oct 2014 06:39:26 +0000 (09:39 +0300)]
ismindex: handle discontinuous streams better

Reads the fragment duration from the trun sample data, rather than
assuming that there are no gaps. Creates much better playlists for our
inputs.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoismindex: handle discontinuous streams better
Mika Raento [Wed, 8 Oct 2014 06:39:26 +0000 (09:39 +0300)]
ismindex: handle discontinuous streams better

Read the fragment duration from the trun sample data, rather than
assuming that there are no gaps.

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agoavformat/mov: Fix 'warning: format specifies type unsigned short but the argument...
Michael Niedermayer [Thu, 9 Oct 2014 03:49:25 +0000 (05:49 +0200)]
avformat/mov: Fix 'warning: format specifies type unsigned short but the argument has type int'

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/utils: Fix "warning: pointer type mismatch in conditional expression"
Michael Niedermayer [Thu, 9 Oct 2014 03:46:13 +0000 (05:46 +0200)]
avcodec/utils: Fix "warning: pointer type mismatch in conditional expression"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat/dump: use format dump_separator if the codec one is not set
Michael Niedermayer [Thu, 9 Oct 2014 02:29:42 +0000 (04:29 +0200)]
avformat/dump: use format dump_separator if the codec one is not set

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec/utils: Add missing AV_PIX_FMT_YUVJ411P to color_range override code.
Michael Niedermayer [Thu, 9 Oct 2014 03:16:45 +0000 (05:16 +0200)]
avcodec/utils: Add missing AV_PIX_FMT_YUVJ411P to color_range override code.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agofix seperator typo
Michael Niedermayer [Thu, 9 Oct 2014 02:19:13 +0000 (04:19 +0200)]
fix seperator typo

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '1a02e78653a5c7674e6c43b6e6f2748dbd2091d7'
Michael Niedermayer [Thu, 9 Oct 2014 00:54:48 +0000 (02:54 +0200)]
Merge commit '1a02e78653a5c7674e6c43b6e6f2748dbd2091d7'

* commit '1a02e78653a5c7674e6c43b6e6f2748dbd2091d7':
  vc1: initialize color properties

See: ddabecbbf5509325c6c695ccc60d67c0af2065f3
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'eddf95283fbba1b469b76e7518bc3941f671b193'
Michael Niedermayer [Thu, 9 Oct 2014 00:45:38 +0000 (02:45 +0200)]
Merge commit 'eddf95283fbba1b469b76e7518bc3941f671b193'

* commit 'eddf95283fbba1b469b76e7518bc3941f671b193':
  vp9: initialize color space and range properties

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '65875a8b3b079752da25a61ec188d2e3d90a569f'
Michael Niedermayer [Thu, 9 Oct 2014 00:36:16 +0000 (02:36 +0200)]
Merge commit '65875a8b3b079752da25a61ec188d2e3d90a569f'

* commit '65875a8b3b079752da25a61ec188d2e3d90a569f':
  vp8: initialize color space and range properties

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '0d8a3656ba4c0ae8e4e0c91ff6b07d72a317f9f6'
Michael Niedermayer [Thu, 9 Oct 2014 00:23:32 +0000 (02:23 +0200)]
Merge commit '0d8a3656ba4c0ae8e4e0c91ff6b07d72a317f9f6'

* commit '0d8a3656ba4c0ae8e4e0c91ff6b07d72a317f9f6':
  mov: support the Color Parameter Atoms 'colr'

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '586ea0379c207a942c1f2d61e0b3a63c458cc598'
Michael Niedermayer [Thu, 9 Oct 2014 00:22:56 +0000 (02:22 +0200)]
Merge commit '586ea0379c207a942c1f2d61e0b3a63c458cc598'

* commit '586ea0379c207a942c1f2d61e0b3a63c458cc598':
  avcodec: fix colorspace option description

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '91eef402037ae5a51d89ade6cb71cdd70b291c8b'
Michael Niedermayer [Thu, 9 Oct 2014 00:14:54 +0000 (02:14 +0200)]
Merge commit '91eef402037ae5a51d89ade6cb71cdd70b291c8b'

* commit '91eef402037ae5a51d89ade6cb71cdd70b291c8b':
  avcodec: add enum values on chroma sample location

Conflicts:
libavcodec/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '9d5fed6dc4cccb0689f694112f5026988bebc472'
Michael Niedermayer [Thu, 9 Oct 2014 00:13:37 +0000 (02:13 +0200)]
Merge commit '9d5fed6dc4cccb0689f694112f5026988bebc472'

* commit '9d5fed6dc4cccb0689f694112f5026988bebc472':
  avcodec: fix descriptions on color transfer options

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '167e6f1489368a4693145da61cb022c113a285bc'
Michael Niedermayer [Wed, 8 Oct 2014 23:56:30 +0000 (01:56 +0200)]
Merge commit '167e6f1489368a4693145da61cb022c113a285bc'

* commit '167e6f1489368a4693145da61cb022c113a285bc':
  dump: Update streams and chapters printout format

See: cab2860c8a49756daccde3111eb27271209495cd
Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '9f3a70c44224ed92d91df65bb9470a2649e7d019'
Michael Niedermayer [Wed, 8 Oct 2014 23:45:44 +0000 (01:45 +0200)]
Merge commit '9f3a70c44224ed92d91df65bb9470a2649e7d019'

* commit '9f3a70c44224ed92d91df65bb9470a2649e7d019':
  dump: print the original coded dimensions when available

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '41e86146e7240f9d42e8cdb86a94bb3eb2bbe15f'
Michael Niedermayer [Wed, 8 Oct 2014 23:03:55 +0000 (01:03 +0200)]
Merge commit '41e86146e7240f9d42e8cdb86a94bb3eb2bbe15f'

* commit '41e86146e7240f9d42e8cdb86a94bb3eb2bbe15f':
  dump: print detailed color space information

full color triplets are only printed if they are not all equal, otherwise
they are printed as before

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavformat: Allow choosing the dump format field separator.
Michael Niedermayer [Wed, 8 Oct 2014 21:48:32 +0000 (23:48 +0200)]
avformat: Allow choosing the dump format field separator.

The default is to maintain the previous ", " for now.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoavcodec: Allow choosing the dump format field separator.
Michael Niedermayer [Wed, 8 Oct 2014 21:48:32 +0000 (23:48 +0200)]
avcodec: Allow choosing the dump format field separator.

The default is to maintain the previous ", " for now.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '20a5956b8daeee4cb59d6fa00ec809b02c04d7f8'
Michael Niedermayer [Wed, 8 Oct 2014 21:33:24 +0000 (23:33 +0200)]
Merge commit '20a5956b8daeee4cb59d6fa00ec809b02c04d7f8'

* commit '20a5956b8daeee4cb59d6fa00ec809b02c04d7f8':
  dump: split audio and video probing on multiple lines

Conflicts:
libavcodec/utils.c
libavformat/dump.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '5a419b2dd1881889d436f55741fd3ff3f9f436c4'
Michael Niedermayer [Wed, 8 Oct 2014 20:53:48 +0000 (22:53 +0200)]
Merge commit '5a419b2dd1881889d436f55741fd3ff3f9f436c4'

* commit '5a419b2dd1881889d436f55741fd3ff3f9f436c4':
  pixdesc: return color properties names

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

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '04ccd584a70fad4ebb29ca340d704970ff313cbc'
Michael Niedermayer [Wed, 8 Oct 2014 20:37:59 +0000 (22:37 +0200)]
Merge commit '04ccd584a70fad4ebb29ca340d704970ff313cbc'

* commit '04ccd584a70fad4ebb29ca340d704970ff313cbc':
  pixfmt: mark further reserved values

Conflicts:
libavutil/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'c732c62cee43f651775af5547cff99d418248542'
Michael Niedermayer [Wed, 8 Oct 2014 20:28:23 +0000 (22:28 +0200)]
Merge commit 'c732c62cee43f651775af5547cff99d418248542'

* commit 'c732c62cee43f651775af5547cff99d418248542':
  doc: expand description for some color properties

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'a2c00d22e71d13b72828147be86aa9e961c6cae6'
Michael Niedermayer [Wed, 8 Oct 2014 20:20:33 +0000 (22:20 +0200)]
Merge commit 'a2c00d22e71d13b72828147be86aa9e961c6cae6'

* commit 'a2c00d22e71d13b72828147be86aa9e961c6cae6':
  avprobe: print color properties for show_streams

Conflicts:
avprobe.c

Not merged as this code does not build and is incomplete, some parts only
appear in later commits.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '147f2e91eece6b9021ff5b7f8a3b5ce053566659'
Michael Niedermayer [Wed, 8 Oct 2014 20:06:21 +0000 (22:06 +0200)]
Merge commit '147f2e91eece6b9021ff5b7f8a3b5ce053566659'

* commit '147f2e91eece6b9021ff5b7f8a3b5ce053566659':
  avcodec: make sure color_range is properly initialized

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '04d14c9b68b03e8dbc6e3003c1ee06892dd32576'
Michael Niedermayer [Wed, 8 Oct 2014 19:58:42 +0000 (21:58 +0200)]
Merge commit '04d14c9b68b03e8dbc6e3003c1ee06892dd32576'

* commit '04d14c9b68b03e8dbc6e3003c1ee06892dd32576':
  vc1: Split the decoder in components

Conflicts:
libavcodec/Makefile
libavcodec/vc1dec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit '7ae9791b641d1183910b6e7faca23f7ae08f8579'
Michael Niedermayer [Wed, 8 Oct 2014 19:45:41 +0000 (21:45 +0200)]
Merge commit '7ae9791b641d1183910b6e7faca23f7ae08f8579'

* commit '7ae9791b641d1183910b6e7faca23f7ae08f8579':
  avformat: bump version after mime_type change

Conflicts:
libavformat/version.h

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