OSDN Git Service

android-x86/external-ffmpeg.git
12 years agoexamples/muxing: remove misleading comment about pending API change
Stefano Sabatini [Wed, 17 Oct 2012 08:46:55 +0000 (10:46 +0200)]
examples/muxing: remove misleading comment about pending API change

The API was never changed since 2003. Replace with a comment about the
performed operation.

12 years agoexamples/muxing: remove video_outbuf unused and useless code
Stefano Sabatini [Wed, 17 Oct 2012 08:45:22 +0000 (10:45 +0200)]
examples/muxing: remove video_outbuf unused and useless code

12 years agolavfi/avf_concat: fix invalid exclusive test.
Nicolas George [Wed, 17 Oct 2012 17:54:22 +0000 (19:54 +0200)]
lavfi/avf_concat: fix invalid exclusive test.

The invalid test did not cause any actual problem since
the first branch is only possible with bogus filters.

Fix coverity issue CID 733850.

12 years agotiff: run strlen() after setting the pointer
Michael Niedermayer [Wed, 17 Oct 2012 18:58:08 +0000 (20:58 +0200)]
tiff: run strlen() after setting the pointer

Fixes CID733803
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoffmdec: check av_new_packet() return value
Michael Niedermayer [Wed, 17 Oct 2012 18:45:59 +0000 (20:45 +0200)]
ffmdec: check av_new_packet() return value

Fixes CID733711
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoffmdec: fix hypothetical overflows
Michael Niedermayer [Wed, 17 Oct 2012 18:36:30 +0000 (20:36 +0200)]
ffmdec: fix hypothetical overflows

Fixes CID703739
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoffm_read_write_index: check lseek return code
Michael Niedermayer [Wed, 17 Oct 2012 18:24:47 +0000 (20:24 +0200)]
ffm_read_write_index: check lseek return code

Fixes CID732184
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoffm_write_write_index: check lseek() return code
Michael Niedermayer [Wed, 17 Oct 2012 18:23:16 +0000 (20:23 +0200)]
ffm_write_write_index: check lseek() return code

Fixes CID732185
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoffm_seek: fix division by zero
Michael Niedermayer [Wed, 17 Oct 2012 18:14:43 +0000 (20:14 +0200)]
ffm_seek: fix division by zero

Fixes CID732202
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolibavfilter/lavfutils: remove useless NULL check on format context
Michael Niedermayer [Wed, 17 Oct 2012 18:00:31 +0000 (20:00 +0200)]
libavfilter/lavfutils: remove useless NULL check on format context

Fixes: CID733804
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolibavfilter/lavfutils: remove useless NULL check on codec context
Michael Niedermayer [Wed, 17 Oct 2012 17:55:13 +0000 (19:55 +0200)]
libavfilter/lavfutils: remove useless NULL check on codec context

The code would crash before if it was NULL

Fixes CID733804
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agomov_probe: fix integer overflows
Michael Niedermayer [Wed, 17 Oct 2012 15:20:12 +0000 (17:20 +0200)]
mov_probe: fix integer overflows

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoidcinvideo: remove redundant " id CIN Video: " from av_log()
Paul B Mahol [Wed, 17 Oct 2012 14:06:35 +0000 (14:06 +0000)]
idcinvideo: remove redundant "  id CIN Video: " from av_log()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 17 Oct 2012 13:53:42 +0000 (15:53 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  configure: Add support for Tilera processors
  wavdec: check size before reading the data, not after.

Conflicts:
configure

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge commit '79922d7237aba2b8c6abbd2e06a0c08e4f498ad4'
Michael Niedermayer [Wed, 17 Oct 2012 13:50:45 +0000 (15:50 +0200)]
Merge commit '79922d7237aba2b8c6abbd2e06a0c08e4f498ad4'

* commit '79922d7237aba2b8c6abbd2e06a0c08e4f498ad4':
  wav: do not fail on empty INFO tags

Conflicts:
libavformat/wavdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge commit '31c54711cc3f1484af101d629bbb805820d37ad1'
Michael Niedermayer [Wed, 17 Oct 2012 13:36:36 +0000 (15:36 +0200)]
Merge commit '31c54711cc3f1484af101d629bbb805820d37ad1'

* commit '31c54711cc3f1484af101d629bbb805820d37ad1':
  lavf: split wav muxer and demuxer into separate files.

Conflicts:
libavformat/wavdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge commit '58b619c8a226cc4564ad5af291bc99a04f89ee56'
Michael Niedermayer [Wed, 17 Oct 2012 13:01:05 +0000 (15:01 +0200)]
Merge commit '58b619c8a226cc4564ad5af291bc99a04f89ee56'

* commit '58b619c8a226cc4564ad5af291bc99a04f89ee56':
  wav muxer: write metadata

Conflicts:
Changelog
libavformat/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge commit '0bca0283ccded5e32da143a462168ad1988a58fd'
Michael Niedermayer [Wed, 17 Oct 2012 12:43:26 +0000 (14:43 +0200)]
Merge commit '0bca0283ccded5e32da143a462168ad1988a58fd'

* commit '0bca0283ccded5e32da143a462168ad1988a58fd':
  riff: do not write empty INFO tags

Conflicts:
tests/ref/fate/vsynth1-cljr
tests/ref/fate/vsynth1-ffvhuff
tests/ref/fate/vsynth1-h261
tests/ref/fate/vsynth1-h263
tests/ref/fate/vsynth1-h263-obmc
tests/ref/fate/vsynth1-h263p
tests/ref/fate/vsynth1-huffyuv
tests/ref/fate/vsynth1-jpegls
tests/ref/fate/vsynth1-mjpeg
tests/ref/fate/vsynth1-mpeg4-adap
tests/ref/fate/vsynth1-mpeg4-adv
tests/ref/fate/vsynth1-mpeg4-error
tests/ref/fate/vsynth1-mpeg4-nr
tests/ref/fate/vsynth1-mpeg4-qpel
tests/ref/fate/vsynth1-mpeg4-qprd
tests/ref/fate/vsynth1-mpeg4-rc
tests/ref/fate/vsynth1-mpeg4-thread
tests/ref/fate/vsynth1-msmpeg4
tests/ref/fate/vsynth1-msmpeg4v2
tests/ref/fate/vsynth1-rgb
tests/ref/fate/vsynth1-wmv1
tests/ref/fate/vsynth1-wmv2
tests/ref/fate/vsynth1-yuv
tests/ref/fate/vsynth2-cljr
tests/ref/fate/vsynth2-ffvhuff
tests/ref/fate/vsynth2-h261
tests/ref/fate/vsynth2-h263
tests/ref/fate/vsynth2-h263-obmc
tests/ref/fate/vsynth2-h263p
tests/ref/fate/vsynth2-huffyuv
tests/ref/fate/vsynth2-jpegls
tests/ref/fate/vsynth2-mjpeg
tests/ref/fate/vsynth2-mpeg4-adap
tests/ref/fate/vsynth2-mpeg4-error
tests/ref/fate/vsynth2-mpeg4-nr
tests/ref/fate/vsynth2-mpeg4-qpel
tests/ref/fate/vsynth2-mpeg4-qprd
tests/ref/fate/vsynth2-mpeg4-rc
tests/ref/fate/vsynth2-mpeg4-thread
tests/ref/fate/vsynth2-msmpeg4
tests/ref/fate/vsynth2-msmpeg4v2
tests/ref/fate/vsynth2-rgb
tests/ref/fate/vsynth2-wmv1
tests/ref/fate/vsynth2-wmv2
tests/ref/fate/vsynth2-yuv
tests/ref/lavf/avi
tests/ref/seek/h261_avi
tests/ref/seek/h263_avi
tests/ref/seek/h263p_avi
tests/ref/seek/lavf_avi
tests/ref/seek/mjpeg_avi
tests/ref/seek/mpeg4_adap_avi
tests/ref/seek/mpeg4_error_avi
tests/ref/seek/mpeg4_nr_avi
tests/ref/seek/mpeg4_qpel_avi
tests/ref/seek/mpeg4_qprd_avi
tests/ref/seek/mpeg4_rc_avi
tests/ref/seek/mpeg4_thread_avi
tests/ref/seek/msmpeg4_avi
tests/ref/seek/msmpeg4v2_avi
tests/ref/seek/wmv1_avi
tests/ref/seek/wmv2_avi

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge commit '71e92414bfd79e56ea6fff174a665ff7b9b86e68'
Michael Niedermayer [Wed, 17 Oct 2012 12:30:25 +0000 (14:30 +0200)]
Merge commit '71e92414bfd79e56ea6fff174a665ff7b9b86e68'

* commit '71e92414bfd79e56ea6fff174a665ff7b9b86e68':
  lavf: move RIFF INFO tag writing from avienc to riff
  avconv: fix disabling auto mappings with -map_metadata

Conflicts:
ffmpeg_opt.c
libavformat/riff.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge commit 'a25d912dca9cd553440167e0476c47581359c0fc'
Michael Niedermayer [Wed, 17 Oct 2012 12:17:55 +0000 (14:17 +0200)]
Merge commit 'a25d912dca9cd553440167e0476c47581359c0fc'

* commit 'a25d912dca9cd553440167e0476c47581359c0fc':
  avcodec_encode_audio(): fix invalid free
  pcm-mpeg: correct bitrate calculation
  ffv1: K&R formatting cosmetics
  fate: Add rangecoder test
  network: #include stdint.h in network.h
  nut: export codec_tag provided by rawvideo
  avserver: move avserver-specific code from ffmdec.c to avserver.c

Conflicts:
ffserver.c
libavcodec/ffv1.c
libavformat/ffmdec.c
libavformat/nutenc.c
tests/ref/lavfi/crop
tests/ref/lavfi/crop_scale
tests/ref/lavfi/crop_scale_vflip
tests/ref/lavfi/crop_vflip
tests/ref/lavfi/null
tests/ref/lavfi/pixdesc
tests/ref/lavfi/pixfmts_copy
tests/ref/lavfi/pixfmts_crop
tests/ref/lavfi/pixfmts_hflip
tests/ref/lavfi/pixfmts_null
tests/ref/lavfi/pixfmts_pad
tests/ref/lavfi/pixfmts_scale
tests/ref/lavfi/pixfmts_vflip
tests/ref/lavfi/scale200
tests/ref/lavfi/scale500
tests/ref/lavfi/vflip
tests/ref/lavfi/vflip_crop
tests/ref/lavfi/vflip_vflip

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavc/tta: use meaningful error codes
Paul B Mahol [Wed, 17 Oct 2012 12:10:42 +0000 (12:10 +0000)]
lavc/tta: use meaningful error codes

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agotta: datalen is unsigned integer per reference library
Paul B Mahol [Wed, 17 Oct 2012 09:12:18 +0000 (09:12 +0000)]
tta: datalen is unsigned integer per reference library

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agosws-test: parse command line args before initing contexts
Michael Niedermayer [Tue, 16 Oct 2012 20:10:35 +0000 (22:10 +0200)]
sws-test: parse command line args before initing contexts

This fixes parsing comand line args after ref

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavf/swfdec: support DefineBitsLossless{,2} tag.
Clément Bœsch [Fri, 12 Oct 2012 21:20:31 +0000 (23:20 +0200)]
lavf/swfdec: support DefineBitsLossless{,2} tag.

12 years agoffv1: fix packed rgb with 1.3
Michael Niedermayer [Wed, 17 Oct 2012 01:19:11 +0000 (03:19 +0200)]
ffv1: fix packed rgb with 1.3

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agomov: fix time types related to mov_metadata_creation_time
Michael Niedermayer [Wed, 17 Oct 2012 00:48:30 +0000 (02:48 +0200)]
mov: fix time types related to mov_metadata_creation_time

Fixes Ticket1817
Based on patch by: Przemyslaw Wesolek <przemyslaw.wesolek@go.art.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoexamples/muxing: fix video pts
Michael Niedermayer [Wed, 17 Oct 2012 00:32:43 +0000 (02:32 +0200)]
examples/muxing: fix video pts

Fixes Ticket1801
Based on suggestion from AztecC
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoconfigure: Add support for Tilera processors
Derek Buitenhuis [Tue, 16 Oct 2012 18:21:06 +0000 (18:21 +0000)]
configure: Add support for Tilera processors

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
12 years agolavfi: limit matching w/h/fmt asserts to non scale filters
Michael Niedermayer [Tue, 16 Oct 2012 21:58:26 +0000 (23:58 +0200)]
lavfi: limit matching w/h/fmt asserts to non scale filters

This fixes a regression with the scale filters input changing.
In the long run filters should get a flag to indicate support of this
and then this flag be used here.
But the regression should not be left standing until thats done.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolibavfilter/buffersrc: Do not fail hard on changes of input parameters.
Michael Niedermayer [Tue, 16 Oct 2012 21:52:53 +0000 (23:52 +0200)]
libavfilter/buffersrc: Do not fail hard on changes of input parameters.

Several filters support this already.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoffmpeg: Make video filter graph reinit user selectable
Michael Niedermayer [Tue, 16 Oct 2012 21:50:06 +0000 (23:50 +0200)]
ffmpeg: Make video filter graph reinit user selectable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoyuvPlanartouyvy_c: fix sign extension
Michael Niedermayer [Tue, 16 Oct 2012 19:06:24 +0000 (21:06 +0200)]
yuvPlanartouyvy_c: fix sign extension

Fixes CID732281
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoyuvPlanartoyuy2_c: fix sign extension
Michael Niedermayer [Tue, 16 Oct 2012 18:50:53 +0000 (20:50 +0200)]
yuvPlanartoyuy2_c: fix sign extension

Fixes CID732282
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agomp3enc: remove unneeded null ptr check
Michael Niedermayer [Tue, 16 Oct 2012 18:27:16 +0000 (20:27 +0200)]
mp3enc: remove unneeded null ptr check

Fixes: CID733746
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agomov: print warning if ff_get_wav_header() fails
Michael Niedermayer [Tue, 16 Oct 2012 18:21:31 +0000 (20:21 +0200)]
mov: print warning if ff_get_wav_header() fails

Fixes CID717497
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agosierravmd: flip reduce arg order.
Michael Niedermayer [Tue, 16 Oct 2012 18:03:37 +0000 (20:03 +0200)]
sierravmd: flip reduce arg order.

This should make no difference but might help static analyzers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agonut: fix int32 overflow
Michael Niedermayer [Tue, 16 Oct 2012 17:59:01 +0000 (19:59 +0200)]
nut: fix int32 overflow

Fixes CID700574
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoriff: fix division by zero for G726
Michael Niedermayer [Tue, 16 Oct 2012 17:56:05 +0000 (19:56 +0200)]
riff: fix division by zero for G726

Fixes CID717752
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoswr-test: fix division by 0
Michael Niedermayer [Tue, 16 Oct 2012 17:40:57 +0000 (19:40 +0200)]
swr-test: fix division by 0

Fixes CID733739
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoswr-test: check pointers before use
Michael Niedermayer [Tue, 16 Oct 2012 17:38:08 +0000 (19:38 +0200)]
swr-test: check pointers before use

Fixes: CID733807, CID733806
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agowavdec: check size before reading the data, not after.
Anton Khirnov [Tue, 16 Oct 2012 08:37:29 +0000 (10:37 +0200)]
wavdec: check size before reading the data, not after.

12 years agowav: do not fail on empty INFO tags
Anton Khirnov [Tue, 16 Oct 2012 08:33:52 +0000 (10:33 +0200)]
wav: do not fail on empty INFO tags

Fixes Bug 379

CC: libav-stable@libav.org
12 years agolavf: split wav muxer and demuxer into separate files.
Anton Khirnov [Tue, 16 Oct 2012 08:23:29 +0000 (10:23 +0200)]
lavf: split wav muxer and demuxer into separate files.

12 years agowav muxer: write metadata
Victor Vasiliev [Tue, 16 Oct 2012 08:10:16 +0000 (10:10 +0200)]
wav muxer: write metadata

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoriff: do not write empty INFO tags
Victor Vasiliev [Tue, 16 Oct 2012 08:31:22 +0000 (10:31 +0200)]
riff: do not write empty INFO tags

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agolavf: move RIFF INFO tag writing from avienc to riff
Victor Vasiliev [Fri, 25 Nov 2011 19:29:12 +0000 (23:29 +0400)]
lavf: move RIFF INFO tag writing from avienc to riff

It will be useful in the wav muxer.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoavconv: fix disabling auto mappings with -map_metadata
Anton Khirnov [Tue, 16 Oct 2012 07:53:39 +0000 (09:53 +0200)]
avconv: fix disabling auto mappings with -map_metadata

CC: libav-stable@libav.org
12 years agoavcodec_encode_audio(): fix invalid free
Rafaël Carré [Mon, 15 Oct 2012 16:41:55 +0000 (18:41 +0200)]
avcodec_encode_audio(): fix invalid free

Since 2bc0de385, AVFrame needs to be initialized
before calling avcodec_get_frame_defaults().

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agopcm-mpeg: correct bitrate calculation
Christian Schmidt [Tue, 16 Oct 2012 13:40:58 +0000 (15:40 +0200)]
pcm-mpeg: correct bitrate calculation

Bitrate calculation is off since the bluray spec always specifies
an even number of coded channels. This was honored in the decoder,
but not for bitrate calculation.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agoffv1: K&R formatting cosmetics
Luca Barbato [Thu, 11 Oct 2012 16:55:53 +0000 (18:55 +0200)]
ffv1: K&R formatting cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agofate: Add rangecoder test
Diego Biurrun [Fri, 5 Oct 2012 17:02:42 +0000 (19:02 +0200)]
fate: Add rangecoder test

12 years agonetwork: #include stdint.h in network.h
Mans Rullgard [Sat, 13 Oct 2012 21:57:23 +0000 (22:57 +0100)]
network: #include stdint.h in network.h

This header uses various types provided by stdint.h without
explicitly including it.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agonut: export codec_tag provided by rawvideo
Luca Barbato [Sat, 13 Oct 2012 17:10:57 +0000 (19:10 +0200)]
nut: export codec_tag provided by rawvideo

Raw audio does not provide valid audio tags while rawvideo does.
The fate refs have to be updated because it undoes the previous tag
change.

12 years agoavserver: move avserver-specific code from ffmdec.c to avserver.c
Mans Rullgard [Mon, 15 Oct 2012 21:24:41 +0000 (22:24 +0100)]
avserver: move avserver-specific code from ffmdec.c to avserver.c

This way avserver only depends on the data structures of the ffm
demuxer, which it already does, and not also on private functions
being exported by the library.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 16 Oct 2012 12:15:16 +0000 (14:15 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  build: simplify linking tools with cmdutils.o
  tiny_psnr: fix range calculation for sample size of 32 bits

Conflicts:
Makefile
tests/tiny_psnr.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge commit '3dc06b6972cf389269e9c36ff0a4373f80f7149b'
Michael Niedermayer [Tue, 16 Oct 2012 12:04:14 +0000 (14:04 +0200)]
Merge commit '3dc06b6972cf389269e9c36ff0a4373f80f7149b'

* commit '3dc06b6972cf389269e9c36ff0a4373f80f7149b':
  tiny_psnr: check for specified sample size less than 1
  fate: improve md5sum utility selection
  rangecoder-test: Drop timer output that clutters stderr

Conflicts:
tests/tiny_psnr.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge commit 'c1fcfdec75468009dc7de29a5d1c6adf3b2ef77d'
Michael Niedermayer [Tue, 16 Oct 2012 11:57:10 +0000 (13:57 +0200)]
Merge commit 'c1fcfdec75468009dc7de29a5d1c6adf3b2ef77d'

* commit 'c1fcfdec75468009dc7de29a5d1c6adf3b2ef77d':
  rangecoder-test: Return in case of an error
  build: simplify enabling of compat objects

Conflicts:
configure
libavutil/Makefile

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agotools/ffeval: do not use UNIX-specific /dev/std{in,out} files
Stefano Sabatini [Mon, 15 Oct 2012 19:53:35 +0000 (21:53 +0200)]
tools/ffeval: do not use UNIX-specific /dev/std{in,out} files

Should fix behavior when the /dev/ directory is not defined (e.g. on
Windows).

12 years agoexamples: add README file with simple compilation instructions
Stefano Sabatini [Thu, 13 Sep 2012 19:12:56 +0000 (21:12 +0200)]
examples: add README file with simple compilation instructions

12 years agoMerge commit '66a1ccd7467ab1913cd8877114c6d4c2588bb12f'
Michael Niedermayer [Tue, 16 Oct 2012 11:27:19 +0000 (13:27 +0200)]
Merge commit '66a1ccd7467ab1913cd8877114c6d4c2588bb12f'

* commit '66a1ccd7467ab1913cd8877114c6d4c2588bb12f':
  configure: simplify argument handling in check_ld

Conflicts:
configure

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge commit '4c995fafd861f537360b3717901cdbed6a6844e7'
Michael Niedermayer [Tue, 16 Oct 2012 11:19:11 +0000 (13:19 +0200)]
Merge commit '4c995fafd861f537360b3717901cdbed6a6844e7'

* commit '4c995fafd861f537360b3717901cdbed6a6844e7':
  configure: simplify get_version() function
  build: support asan and tsan toolchain shortcuts
  rmdec: Move SIPR code shared with Matroska demuxer to a separate file

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agogitignore: add *.dylib for those of us on Darwin/OS X systems.
Andrew Euell [Tue, 16 Oct 2012 02:14:09 +0000 (04:14 +0200)]
gitignore: add *.dylib for those of us on Darwin/OS X systems.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agomandelbrot: fix inner=period coloring routine
Michael Niedermayer [Tue, 16 Oct 2012 02:00:55 +0000 (04:00 +0200)]
mandelbrot: fix inner=period coloring routine

Fixes CID717571
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agox86/motion_est: widen before multiply.
Michael Niedermayer [Tue, 16 Oct 2012 01:09:28 +0000 (03:09 +0200)]
x86/motion_est: widen before multiply.

This fixes CID700558, CID700557, CID700556
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agomxfenc: explicitly truncate continuity count.
Michael Niedermayer [Mon, 15 Oct 2012 13:58:44 +0000 (15:58 +0200)]
mxfenc: explicitly truncate continuity count.

The field is intended to overflow and have only its low 16bits stored.
This commit avoids the implicit truncation and clarifies that its
intended and not a bug

S326m section 7.6 ("Continuity count"):
> The continuity count word consists of 2 bytes allow-
> ing a number to be created by a modulo 65536
> counter (bits C15 to C0 in figure 7). The continuity
> count shall increment by 1 for each newly transmit-
> ted content package with the same SDTI source and
> destination addresses. The continuity count may
> be used to detect whether the content package
> sequence has been broken by an operation such as
> a routing switch.

Approved-by: Tjoppen
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agomsvideo1enc: fix interframe encoding
Michael Niedermayer [Tue, 16 Oct 2012 00:21:35 +0000 (02:21 +0200)]
msvideo1enc: fix interframe encoding

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoffmpeg: Override r_frame_rate by corrected timebase only for interlaced streams
Michael Niedermayer [Mon, 15 Oct 2012 23:04:42 +0000 (01:04 +0200)]
ffmpeg: Override r_frame_rate by corrected timebase only for interlaced streams

Fixes Ticket1664

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoutils: consider mpeg4 in mp4/mov to have a unreliable timebase
Michael Niedermayer [Mon, 15 Oct 2012 23:04:02 +0000 (01:04 +0200)]
utils: consider mpeg4 in mp4/mov to have a unreliable timebase

Partly fixes Ticket1664

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agora288: assert order to be withinn supported range in do_hybrid_window()
Michael Niedermayer [Mon, 15 Oct 2012 21:51:38 +0000 (23:51 +0200)]
ra288: assert order to be withinn supported range in do_hybrid_window()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agomsvideo1enc: fix initial keyframe value
Michael Niedermayer [Mon, 15 Oct 2012 21:04:22 +0000 (23:04 +0200)]
msvideo1enc: fix initial keyframe value

keyframe was never set to anything but 1

Fixes CID733730
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agobuild: simplify linking tools with cmdutils.o
Mans Rullgard [Mon, 15 Oct 2012 02:59:16 +0000 (03:59 +0100)]
build: simplify linking tools with cmdutils.o

This avoids repeating cmdutils.o in both the prerequisites and
the link command.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agotiny_psnr: fix range calculation for sample size of 32 bits
Mans Rullgard [Sun, 14 Oct 2012 23:21:53 +0000 (00:21 +0100)]
tiny_psnr: fix range calculation for sample size of 32 bits

For a sample size of 32 bits, the shift would overflow producing
undefined results.  Incidentally, in the only test currently using
32-bit samples, the output matches the reference exactly on most
systems meaning the bad 'max' value is never used.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agotiny_psnr: check for specified sample size less than 1
Mans Rullgard [Sun, 14 Oct 2012 23:11:44 +0000 (00:11 +0100)]
tiny_psnr: check for specified sample size less than 1

A zero or negative sample size is impossible and should be
reported as an error.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agolavfi/ass: extend syntax for ass filter
Stefano Sabatini [Mon, 15 Oct 2012 08:06:52 +0000 (10:06 +0200)]
lavfi/ass: extend syntax for ass filter

Make the filter accept named options for the first argument, and update
documentation accordingly.

12 years agofate: improve md5sum utility selection
Mans Rullgard [Sun, 14 Oct 2012 14:49:25 +0000 (15:49 +0100)]
fate: improve md5sum utility selection

The 'md5sum' command is used with the -b flag so the presence test
must also use this flag.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agotools/ffeval: include compat/getopt.c in case of missing system getopt()
Stefano Sabatini [Mon, 15 Oct 2012 19:46:33 +0000 (21:46 +0200)]
tools/ffeval: include compat/getopt.c in case of missing system getopt()

12 years agoexamples/muxing: extend usage notice
Stefano Sabatini [Mon, 15 Oct 2012 13:42:16 +0000 (15:42 +0200)]
examples/muxing: extend usage notice

12 years agoMerge branch 'docu' of https://github.com/rdp/FFmpeg
Michael Niedermayer [Mon, 15 Oct 2012 19:21:58 +0000 (21:21 +0200)]
Merge branch 'docu' of https://github.com/rdp/FFmpeg

* 'docu' of https://github.com/rdp/FFmpeg:
  docu: add word resize to scale filter, to make searching for the word resize simpler
  docu: change verb flite
  docu: add flite ffmpeg example
  docu: fix flite example

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agorangecoder-test: Drop timer output that clutters stderr
Diego Biurrun [Fri, 5 Oct 2012 16:53:12 +0000 (18:53 +0200)]
rangecoder-test: Drop timer output that clutters stderr

12 years agorangecoder-test: Return in case of an error
Diego Biurrun [Fri, 12 Oct 2012 19:14:56 +0000 (21:14 +0200)]
rangecoder-test: Return in case of an error

12 years agoffmpeg: check timebase validity before using it.
Michael Niedermayer [Mon, 15 Oct 2012 18:35:01 +0000 (20:35 +0200)]
ffmpeg: check timebase validity before using it.

Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agodoc/filters: pad examples should be a @subsection
Nicolas Noirbent [Mon, 15 Oct 2012 10:05:17 +0000 (12:05 +0200)]
doc/filters: pad examples should be a @subsection

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agodocu: add word resize to scale filter, to make searching for the word resize simpler
rogerdpack [Mon, 15 Oct 2012 17:28:45 +0000 (11:28 -0600)]
docu: add word resize to scale filter, to make searching for the word resize simpler

Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
12 years agodocu: change verb flite
rogerdpack [Mon, 15 Oct 2012 17:26:39 +0000 (11:26 -0600)]
docu: change verb flite

Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
12 years agodocu: add flite ffmpeg example
rogerdpack [Mon, 15 Oct 2012 17:26:07 +0000 (11:26 -0600)]
docu: add flite ffmpeg example

Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
12 years agodocu: fix flite example
rogerdpack [Mon, 15 Oct 2012 17:24:08 +0000 (11:24 -0600)]
docu: fix flite example

Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
12 years agolavf/audiointerleave: check return value of av_new_packet()
Paul B Mahol [Mon, 15 Oct 2012 15:11:54 +0000 (15:11 +0000)]
lavf/audiointerleave: check return value of av_new_packet()

Fixes CID733709.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agonutdec: check return value of av_new_packet()
Paul B Mahol [Mon, 15 Oct 2012 15:20:40 +0000 (15:20 +0000)]
nutdec: check return value of av_new_packet()

Fixes CID733173.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agodv: Set FS flag from AVFrame.top_field_first
Tomas Härdin [Mon, 15 Oct 2012 15:15:37 +0000 (17:15 +0200)]
dv: Set FS flag from AVFrame.top_field_first

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agodvdec: Set top_field_first from FS flag
Tomas Härdin [Mon, 15 Oct 2012 14:24:39 +0000 (16:24 +0200)]
dvdec: Set top_field_first from FS flag

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agodvdec: Move the VSC pack parsing to before avctx->execute()
Tomas Härdin [Mon, 15 Oct 2012 14:13:18 +0000 (16:13 +0200)]
dvdec: Move the VSC pack parsing to before avctx->execute()

This allows the next commit to parse the FS flag.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agorawdec.c: Extract interlace information from quicktime flag if it exisits.
Tim Nicholson [Mon, 15 Oct 2012 08:47:38 +0000 (09:47 +0100)]
rawdec.c: Extract interlace information from quicktime flag if it exisits.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agobuild: simplify enabling of compat objects
Mans Rullgard [Sun, 14 Oct 2012 16:56:00 +0000 (17:56 +0100)]
build: simplify enabling of compat objects

Add a configure function to pull in a compat object and set up
redirects in one operation.  This avoids duplicating conditions
across configure and makefiles.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoconfigure: simplify argument handling in check_ld
Mans Rullgard [Sun, 14 Oct 2012 00:35:56 +0000 (01:35 +0100)]
configure: simplify argument handling in check_ld

Use the existing filter functions instead of open-coding the
separation of general flags and libraries.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoconfigure: simplify get_version() function
Mans Rullgard [Sat, 13 Oct 2012 21:56:25 +0000 (22:56 +0100)]
configure: simplify get_version() function

awk alone can do this, no need for grep.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agobuild: support asan and tsan toolchain shortcuts
Luca Barbato [Sun, 14 Oct 2012 05:54:22 +0000 (07:54 +0200)]
build: support asan and tsan toolchain shortcuts

12 years agoflvdec: check return value of create_stream()
Paul B Mahol [Mon, 15 Oct 2012 15:59:53 +0000 (15:59 +0000)]
flvdec: check return value of create_stream()

Fixes null pointer dereference. Fixes CID732242.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agoidcin: check chunk_size value before using it
Paul B Mahol [Mon, 15 Oct 2012 15:48:13 +0000 (15:48 +0000)]
idcin: check chunk_size value before using it

Fixes integer overflow. Fixes CID732223.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agoimg2dec: check return value of av_new_packet()
Paul B Mahol [Mon, 15 Oct 2012 14:53:56 +0000 (14:53 +0000)]
img2dec: check return value of av_new_packet()

Fixes CID703626.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agoh264: use designated initializers for AVClass
Paul B Mahol [Mon, 15 Oct 2012 13:43:33 +0000 (13:43 +0000)]
h264: use designated initializers for AVClass

Signed-off-by: Paul B Mahol <onemda@gmail.com>