ffmpeg.git
7 years agorawdec: check avpicture_get_size() return value
Michael Niedermayer [Tue, 30 Oct 2012 03:35:38 +0000 (04:35 +0100)]
rawdec: check avpicture_get_size() return value

Fixes CID205019
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoPartly revert f174fba: yop decoder does not support direct rendering.
Carl Eugen Hoyos [Tue, 30 Oct 2012 11:09:25 +0000 (12:09 +0100)]
Partly revert f174fba: yop decoder does not support direct rendering.

7 years agoPartly revert f174fba: indeo3 decoder does not support direct rendering.
Carl Eugen Hoyos [Tue, 30 Oct 2012 10:51:58 +0000 (11:51 +0100)]
Partly revert f174fba: indeo3 decoder does not support direct rendering.

7 years agovqavideo: return more meaningful error codes
Paul B Mahol [Tue, 30 Oct 2012 03:28:05 +0000 (03:28 +0000)]
vqavideo: return more meaningful error codes

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agompeg12videodec: dont pass mpeg1 VBR special case value on as bitrate.
Michael Niedermayer [Tue, 30 Oct 2012 01:27:50 +0000 (02:27 +0100)]
mpeg12videodec: dont pass mpeg1 VBR special case value on as bitrate.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompeg12video_parser: Wrong bit rate in MPEG2 video file (Ticket #1862)
Heesuk Jung [Tue, 30 Oct 2012 01:07:40 +0000 (02:07 +0100)]
mpeg12video_parser: Wrong bit rate in MPEG2 video file (Ticket #1862)

mpegvideo parser sometime get wrong stream bit rate which is 0x3FFFF*400.
But maximum bit rate of MPEG2 video is up to 80 Mbps in case 1920x1080 resolution.
When bit rate is 0x3FFFF*400, set bit rate zero.

* Problematic link
https://docs.google.com/open?id=0B6r7ZfWFIypCUkhPa0dyTGdFSE0

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompeg12parser: cleanup bitrate parsing.
Michael Niedermayer [Tue, 30 Oct 2012 01:05:56 +0000 (02:05 +0100)]
mpeg12parser: cleanup bitrate parsing.

This fixes several bugs in the code.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agox11grab: fix mixed declaration and code
Michael Niedermayer [Mon, 29 Oct 2012 21:24:10 +0000 (22:24 +0100)]
x11grab: fix mixed declaration and code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agotree: fix type used for testing the tree
Michael Niedermayer [Mon, 29 Oct 2012 21:21:25 +0000 (22:21 +0100)]
tree: fix type used for testing the tree

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoqt-faststart: fix signedness of variable used to hold return code
Michael Niedermayer [Mon, 29 Oct 2012 21:05:33 +0000 (22:05 +0100)]
qt-faststart: fix signedness of variable used to hold return code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomp3dec: remove unused variable
Michael Niedermayer [Mon, 29 Oct 2012 20:59:32 +0000 (21:59 +0100)]
mp3dec: remove unused variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agotruemotion2: remove unused variable
Michael Niedermayer [Mon, 29 Oct 2012 21:01:22 +0000 (22:01 +0100)]
truemotion2: remove unused variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agopictordec: decode 1bpp / 4bpp images when extra header marker is missing
Piotr Bandurski [Mon, 29 Oct 2012 17:43:42 +0000 (18:43 +0100)]
pictordec: decode 1bpp / 4bpp images when extra header marker is missing

based on 56f6628bca66ef3b6a1028fcf0f52dbe01115d89

samples:

http://www.datafilehost.com/download-94b5bc1b.html

Reviewed-and-Tested-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavuidec: correct long_name
Piotr Bandurski [Mon, 29 Oct 2012 17:53:58 +0000 (18:53 +0100)]
avuidec: correct long_name

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavc: remove duplicated .capabilities
Paul B Mahol [Mon, 29 Oct 2012 20:06:52 +0000 (20:06 +0000)]
lavc: remove duplicated .capabilities

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolavfi/frei0r: allow for Windows style paths
rogerdpack [Wed, 10 Oct 2012 23:28:55 +0000 (17:28 -0600)]
lavfi/frei0r: allow for Windows style paths

Update path handling against the latest Frei0r specification changes.

Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
7 years agolavfi/frei0r: update link to spec
Stefano Sabatini [Mon, 29 Oct 2012 17:07:19 +0000 (18:07 +0100)]
lavfi/frei0r: update link to spec

Fri0r project moved from piksel.org to frei0r.dyne.org.

7 years agolavfi/scale: implement clever/insane parsing heuristic, and add a size option
Stefano Sabatini [Mon, 29 Oct 2012 10:48:53 +0000 (11:48 +0100)]
lavfi/scale: implement clever/insane parsing heuristic, and add a size option

If the first argument can be read as a video size, set that output size
in the scale. This allows to specify in a filtergraph scale=qcif or
scale=320x240.

This is not completely safe, for example in case of a typo in the video
size string the first argument will be read as the input width
expression, giving rise to a confusing comment.

7 years agolavu/parseutils: add trailing characters check in av_parse_video_size()
Stefano Sabatini [Mon, 29 Oct 2012 15:39:13 +0000 (16:39 +0100)]
lavu/parseutils: add trailing characters check in av_parse_video_size()

Return an error in case the video size specifications contains spurious
trailing chars, like in "320x240foobar".

7 years agodoc/filters: itemize scale examples, and create a dedicated subsection for them
Stefano Sabatini [Sat, 6 Oct 2012 10:39:11 +0000 (12:39 +0200)]
doc/filters: itemize scale examples, and create a dedicated subsection for them

7 years agolavfi/scale: return error code in case of failed reconfiguration in start_frame()
Stefano Sabatini [Mon, 15 Oct 2012 07:21:15 +0000 (09:21 +0200)]
lavfi/scale: return error code in case of failed reconfiguration in start_frame()

Avoid an assert, since now the function supports error code return.

7 years agolavfi/scale: accept named options, make parsing more robust
Stefano Sabatini [Sat, 6 Oct 2012 10:30:26 +0000 (12:30 +0200)]
lavfi/scale: accept named options, make parsing more robust

Also update documentation accordingly.

7 years agomovenc: Add required 'prof' atom to 'tapt' atom set.
Tim Nicholson [Mon, 29 Oct 2012 13:56:57 +0000 (13:56 +0000)]
movenc: Add required 'prof' atom to 'tapt' atom set.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 29 Oct 2012 12:15:16 +0000 (13:15 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  lavc: add CODEC_CAP_DR1 to all video decoders missing them
  rtpdec: Cosmetic cleanup

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodoc/syntax: add a "Quoting and escaping" section
Stefano Sabatini [Mon, 15 Oct 2012 09:13:13 +0000 (11:13 +0200)]
doc/syntax: add a "Quoting and escaping" section

7 years agolavc: add CODEC_CAP_DR1 to all video decoders missing them
Anton Khirnov [Wed, 17 Oct 2012 19:39:04 +0000 (21:39 +0200)]
lavc: add CODEC_CAP_DR1 to all video decoders missing them

7 years agodcadec: skip QMF on unused channels
Michael Niedermayer [Mon, 29 Oct 2012 04:21:47 +0000 (05:21 +0100)]
dcadec: skip QMF on unused channels

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosmoothstreamingenc: check return value of mkdir()
Michael Niedermayer [Mon, 29 Oct 2012 02:34:17 +0000 (03:34 +0100)]
smoothstreamingenc: check return value of mkdir()

Fixes CID732188
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosmoothstreamingenc: fix integer overflow
Michael Niedermayer [Mon, 29 Oct 2012 02:17:08 +0000 (03:17 +0100)]
smoothstreamingenc: fix integer overflow

Fixes CID732248
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoismindex: check return value of avio_open_dyn_buf()
Michael Niedermayer [Mon, 29 Oct 2012 01:53:43 +0000 (02:53 +0100)]
ismindex: check return value of avio_open_dyn_buf()

Fixes CID733723
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocmdutils: avoid using cpp directives within printf macro arguments
Leon van Stuivenberg [Sun, 28 Oct 2012 22:37:17 +0000 (23:37 +0100)]
cmdutils: avoid using cpp directives within printf macro arguments

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
It appears such construct has undefined behavior

7 years agocafdec: fix parsing of chunks which may have unused data
Paul B Mahol [Fri, 26 Oct 2012 14:01:51 +0000 (14:01 +0000)]
cafdec: fix parsing of chunks which may have unused data

Specification mentions 'strg', 'mark', 'regn', 'info', .. chunks
to have data section size larger than chunk's current meaningful
content in order to reserve room for additional data.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolavf/srtenc: add AVFMT_TS_NONSTRICT flag.
Clément Bœsch [Fri, 26 Oct 2012 22:01:49 +0000 (00:01 +0200)]
lavf/srtenc: add AVFMT_TS_NONSTRICT flag.

There is not really a problem in having two events at the same time.
Even if it's not perfectly correct, it helps remuxing more files
(typically our FATE sample).

7 years agortpdec: Cosmetic cleanup
Martin Storsjö [Mon, 22 Oct 2012 12:54:25 +0000 (15:54 +0300)]
rtpdec: Cosmetic cleanup

Mainly clean up the RTP statistics code, plus a few other obviously
misindentend lines.

Remove some useless comments, de-doxygenize some comments,
add spacing around operators and fix a typo.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agofate/scalenorm: unbreak fate
Michael Niedermayer [Sun, 28 Oct 2012 17:26:11 +0000 (18:26 +0100)]
fate/scalenorm: unbreak fate

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agotests: do not set bogus scale sws_flags option in the scalenorm test
Stefano Sabatini [Sun, 28 Oct 2012 16:15:15 +0000 (17:15 +0100)]
tests: do not set bogus scale sws_flags option in the scalenorm test

sws_flags is not a valid scale option, and thus is ignored.

8 years agoframe_thread_encode: fix context memleak
Michael Niedermayer [Sun, 28 Oct 2012 16:04:11 +0000 (17:04 +0100)]
frame_thread_encode: fix context memleak

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoframe_thread_encoder: fix packet memleak
Michael Niedermayer [Sun, 28 Oct 2012 15:47:23 +0000 (16:47 +0100)]
frame_thread_encoder: fix packet memleak

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovc1dec: mark by assert that the default path cannot occur
Michael Niedermayer [Sun, 28 Oct 2012 15:07:01 +0000 (16:07 +0100)]
vc1dec: mark by assert that the default path cannot occur

Fixes CID703827, CID703828
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoparse ID3v2 chapters
Paul B Mahol [Sat, 27 Oct 2012 22:00:09 +0000 (22:00 +0000)]
parse ID3v2 chapters

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoSynchronize libmpcodecs: Support 16bit yuv in telecine filter.
Carl Eugen Hoyos [Sun, 28 Oct 2012 14:46:35 +0000 (15:46 +0100)]
Synchronize libmpcodecs: Support 16bit yuv in telecine filter.

Fixes ticket 1782.

8 years agoAdd an additional AAC TwoCC.
Carl Eugen Hoyos [Sun, 28 Oct 2012 13:50:11 +0000 (14:50 +0100)]
Add an additional AAC TwoCC.

Mentioned on http://msdn.microsoft.com/en-us/library/dd341376%28prot.20%29.aspx
Originally committed to vlc by Jean-Baptiste.

8 years agomovenc: add more metadata types
bbraun [Tue, 21 Aug 2012 01:21:39 +0000 (03:21 +0200)]
movenc: add more metadata types

Fixes Ticket1052

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolavu: keep context size variables
Michael Niedermayer [Fri, 12 Oct 2012 16:58:55 +0000 (18:58 +0200)]
lavu: keep context size variables

They are essential to be able to use the utils without av_malloc()
That is for example use with malloc(), memalign(), some other
private allocation function, on the stack or others.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 28 Oct 2012 13:04:43 +0000 (14:04 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  yuv4mpeg: reject unsupported codecs
  nutenc: K&R formatting cosmetics
  assdec: fix qsort() callback signature
  configure: detect sparc64 automatically
  vp8: fix memset() crossing array boundary
  h264: fix invalid pointer arithmetic
  amrwbdec: fix invalid pointer arithmetic

Conflicts:
libavformat/nutenc.c
libavformat/yuv4mpeg.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge commit '4521645b1aee9e9ad8f5cea7b2392cd5f6ffcd26'
Michael Niedermayer [Sun, 28 Oct 2012 12:19:11 +0000 (13:19 +0100)]
Merge commit '4521645b1aee9e9ad8f5cea7b2392cd5f6ffcd26'

* commit '4521645b1aee9e9ad8f5cea7b2392cd5f6ffcd26':
  avio: fix pointer type mismatches in avio_enum_protocols()
  avserver: use socklen_t where appropriate
  udp: use socklen_t where appropriate
  network: use HAVE_THREADS instead of local hack
  af_channelmap: remove stray enum declaration
  buffersink: remove stray semicolon after function definition

Conflicts:
libavformat/avio.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agofate: make sure the global sws flags are set to be bitexact for scalenorm
Michael Niedermayer [Sun, 28 Oct 2012 12:05:35 +0000 (13:05 +0100)]
fate: make sure the global sws flags are set to be bitexact for scalenorm

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agofate: add a test for scale with variable input format.
Nicolas George [Thu, 25 Oct 2012 19:28:11 +0000 (21:28 +0200)]
fate: add a test for scale with variable input format.

8 years agolavfi/concat: implement unsafe mode.
Nicolas George [Thu, 25 Oct 2012 19:27:41 +0000 (21:27 +0200)]
lavfi/concat: implement unsafe mode.

8 years agoyuv4mpeg: reject unsupported codecs
Luca Barbato [Fri, 26 Oct 2012 20:55:04 +0000 (22:55 +0200)]
yuv4mpeg: reject unsupported codecs

The muxer already rejects unsupported pixel formats, reject also
unsupported codecs to prevent dangerous misuses.

8 years agonutenc: K&R formatting cosmetics
Luca Barbato [Fri, 26 Oct 2012 22:41:02 +0000 (00:41 +0200)]
nutenc: K&R formatting cosmetics

8 years agolpc: check that lpc_type is valid in ff_lpc_calc_coefs
Michael Niedermayer [Sun, 28 Oct 2012 02:27:16 +0000 (03:27 +0100)]
lpc: check that lpc_type is valid in ff_lpc_calc_coefs

Fixes CID700759
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agosws: rgb has no range, avoid random results if the user tries to mess with it anyway.
Michael Niedermayer [Sun, 28 Oct 2012 00:46:56 +0000 (02:46 +0200)]
sws: rgb has no range, avoid random results if the user tries to mess with it anyway.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoswr: use 64bit index/len for x86_64 mix
Michael Niedermayer [Sun, 28 Oct 2012 00:09:08 +0000 (02:09 +0200)]
swr: use 64bit index/len for x86_64 mix

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovf_showinfo: check return code of av_image_get_linesize()
Michael Niedermayer [Sat, 27 Oct 2012 22:40:28 +0000 (00:40 +0200)]
vf_showinfo: check return code of av_image_get_linesize()

Fixes CID703716
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoswfenc: zero fifo after freeing
Michael Niedermayer [Sat, 27 Oct 2012 21:02:17 +0000 (23:02 +0200)]
swfenc: zero fifo after freeing

Fixes CID602000
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agotak_parser: check ff_combine_frame() return code
Michael Niedermayer [Sat, 27 Oct 2012 20:45:51 +0000 (22:45 +0200)]
tak_parser: check ff_combine_frame() return code

Fixes CID733706
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolavf/showspectrum: fix unaligned rdft data.
Clément Bœsch [Fri, 26 Oct 2012 16:42:54 +0000 (18:42 +0200)]
lavf/showspectrum: fix unaligned rdft data.

8 years agoriff: support 0xa100 TwoCC
Piotr Bandurski [Sat, 27 Oct 2012 19:32:40 +0000 (21:32 +0200)]
riff: support 0xa100 TwoCC

fixes decoding of file "4790b7f1c44f98e35f3b806468fa615f5930a5b3.wav" from ticket #1856
(0xa100 = Comverse Infosys Ltd. G723 1)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomsmpeg4dec: fix init code to not fail when called from 2 threads at the same time.
Michael Niedermayer [Sat, 27 Oct 2012 19:30:01 +0000 (21:30 +0200)]
msmpeg4dec: fix init code to not fail when called from 2 threads at the same time.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoff_h263_decode_init_vlc: fix order of operations to avoid failure with 2 threads
Michael Niedermayer [Sat, 27 Oct 2012 19:28:59 +0000 (21:28 +0200)]
ff_h263_decode_init_vlc: fix order of operations to avoid failure with 2 threads

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoassdec: fix qsort() callback signature
Mans Rullgard [Fri, 26 Oct 2012 16:59:50 +0000 (17:59 +0100)]
assdec: fix qsort() callback signature

This changes the event_cmp() function to the correct signature,
avoiding an ugly cast.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoconfigure: detect sparc64 automatically
Mans Rullgard [Wed, 24 Oct 2012 17:34:21 +0000 (18:34 +0100)]
configure: detect sparc64 automatically

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agovp8: fix memset() crossing array boundary
Mans Rullgard [Fri, 26 Oct 2012 20:43:55 +0000 (21:43 +0100)]
vp8: fix memset() crossing array boundary

Indexing across array boundaries is not allowed by C99.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoh264: fix invalid pointer arithmetic
Mans Rullgard [Fri, 26 Oct 2012 20:18:33 +0000 (21:18 +0100)]
h264: fix invalid pointer arithmetic

Subtracting a (positive) value from the address of an array violates
C99 section 6.5.6:

  If both the pointer operand and the result point to elements of the
  same array object, or one past the last element of the array object,
  the evaluation shall not produce an overflow; otherwise, the
  behavior is undefined.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoamrwbdec: fix invalid pointer arithmetic
Mans Rullgard [Fri, 26 Oct 2012 21:44:38 +0000 (22:44 +0100)]
amrwbdec: fix invalid pointer arithmetic

Subtracting a (positive) value from the address of an array violates
C99 section 6.5.6:

  If both the pointer operand and the result point to elements of the
  same array object, or one past the last element of the array object,
  the evaluation shall not produce an overflow; otherwise, the
  behavior is undefined.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoPort MPlayer fixes for coverity issues in libmpcodecs.
Reimar Döffinger [Fri, 26 Oct 2012 19:13:18 +0000 (21:13 +0200)]
Port MPlayer fixes for coverity issues in libmpcodecs.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
8 years agosws: loose the minimum dimension checks
Michael Niedermayer [Sat, 27 Oct 2012 14:54:31 +0000 (16:54 +0200)]
sws: loose the minimum dimension checks

A few quick tests show no fundamental problem with such diemnsions

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agosws: improve error messages
Michael Niedermayer [Sat, 27 Oct 2012 14:54:05 +0000 (16:54 +0200)]
sws: improve error messages

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agosws: fix extreem downscaling
Michael Niedermayer [Sat, 27 Oct 2012 14:26:39 +0000 (16:26 +0200)]
sws: fix extreem downscaling

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 27 Oct 2012 13:02:35 +0000 (15:02 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  configure: fix tests for 2-arg math functions
  doc: git-howto: Clarify comment about pushing series of commits
  ivi_common: Drop unused function parameter from decode_band()
  cook: Remove some silly Doxygen comments
  cook: Remove senseless maybe_reformat_buffer32() function
  cook: cosmetics: Better names for joint_decode() function parameters
  cook: cosmetics: Better name for ccpl COOKSubpacket member
  doxygen: Add av_alloc_size to list of predefined macros
  doxygen: Drop some pointless entries from PREDEFINED macros list
  h263: avoid memcpys over array bound in motion vector caching for obmc

Conflicts:
configure
doc/git-howto.texi
libavcodec/cook.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoavio: fix pointer type mismatches in avio_enum_protocols()
Mans Rullgard [Fri, 26 Oct 2012 17:42:29 +0000 (18:42 +0100)]
avio: fix pointer type mismatches in avio_enum_protocols()

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoavserver: use socklen_t where appropriate
Mans Rullgard [Fri, 26 Oct 2012 20:53:31 +0000 (21:53 +0100)]
avserver: use socklen_t where appropriate

Various socket functions expect a pointer to socklen_t which is not
necessarily int.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoudp: use socklen_t where appropriate
Mans Rullgard [Fri, 26 Oct 2012 18:46:37 +0000 (19:46 +0100)]
udp: use socklen_t where appropriate

getsockname() takes a pointer to socklen_t which is not necessarily
int.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agonetwork: use HAVE_THREADS instead of local hack
Mans Rullgard [Fri, 26 Oct 2012 18:33:59 +0000 (19:33 +0100)]
network: use HAVE_THREADS instead of local hack

HAVE_THREADS is set in config.h if pthreads or w32threads is
available, which presumably the proper condition here.

Also fixes undefined behaviour in preprocessor directives.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoaf_channelmap: remove stray enum declaration
Mans Rullgard [Fri, 26 Oct 2012 21:25:37 +0000 (22:25 +0100)]
af_channelmap: remove stray enum declaration

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agobuffersink: remove stray semicolon after function definition
Mans Rullgard [Fri, 26 Oct 2012 16:58:19 +0000 (17:58 +0100)]
buffersink: remove stray semicolon after function definition

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agofix a compiling error with llvm-gcc
Xidorn Quan [Fri, 26 Oct 2012 06:40:04 +0000 (14:40 +0800)]
fix a compiling error with llvm-gcc

Move some #include in vda.h down to prevent libavutil headers
from interfering with system headers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffmpeg: use av_rescale_delta() for audio stream copy
Michael Niedermayer [Sat, 27 Oct 2012 01:18:09 +0000 (03:18 +0200)]
ffmpeg: use av_rescale_delta() for audio stream copy

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolavu: add more doxy to av_rescale_delta
Michael Niedermayer [Sat, 27 Oct 2012 00:58:09 +0000 (02:58 +0200)]
lavu: add more doxy to av_rescale_delta

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoUpdate my email address
Michael Bradshaw [Fri, 26 Oct 2012 19:57:41 +0000 (13:57 -0600)]
Update my email address

Signed-off-by: Michael Bradshaw <mjbshaw@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agosws_getGaussianVec: check variance and quality
Michael Niedermayer [Fri, 26 Oct 2012 23:19:53 +0000 (01:19 +0200)]
sws_getGaussianVec: check variance and quality

Found-by: Reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agosws_allocVec: check length validity
Michael Niedermayer [Fri, 26 Oct 2012 23:18:52 +0000 (01:18 +0200)]
sws_allocVec: check length validity

Found-by: Reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffmpeg: use av_rescale_delta() on the audio filter input
Michael Niedermayer [Fri, 26 Oct 2012 19:55:37 +0000 (21:55 +0200)]
ffmpeg: use av_rescale_delta() on the audio filter input

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolavu: add av_rescale_delta()
Michael Niedermayer [Fri, 26 Oct 2012 19:23:19 +0000 (21:23 +0200)]
lavu: add av_rescale_delta()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffmpeg: trivial simplification
Michael Niedermayer [Fri, 26 Oct 2012 19:21:29 +0000 (21:21 +0200)]
ffmpeg: trivial simplification

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomathemathics: update copyright years
Michael Niedermayer [Fri, 26 Oct 2012 17:46:41 +0000 (19:46 +0200)]
mathemathics: update copyright years

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolavu: add av_clip64()
Michael Niedermayer [Fri, 26 Oct 2012 17:37:43 +0000 (19:37 +0200)]
lavu: add av_clip64()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoconfigure: fix tests for 2-arg math functions
Mans Rullgard [Fri, 26 Oct 2012 13:42:47 +0000 (14:42 +0100)]
configure: fix tests for 2-arg math functions

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agolavf/srtenc: allow zero duration events.
Clément Bœsch [Wed, 24 Oct 2012 22:26:13 +0000 (00:26 +0200)]
lavf/srtenc: allow zero duration events.

This is useful when you want to remux events with zero (or too small)
durations.

8 years agolavc/srtenc: fix invalid read in case of SubRip.
Clément Bœsch [Thu, 25 Oct 2012 16:50:26 +0000 (18:50 +0200)]
lavc/srtenc: fix invalid read in case of SubRip.

Regression since 6057de19b. The ptr-2 is used to eat the \r\n and add
the position information on the timing line. This can't be done in case
of SubRip where the timing isn't present in the payload.

Note that we can't use yet the side data to transmit the position
information since the encode subtitles API is still using buffer+size
instead AVPacket as input.

8 years agodoc: git-howto: Clarify comment about pushing series of commits
Diego Biurrun [Thu, 25 Oct 2012 16:25:25 +0000 (18:25 +0200)]
doc: git-howto: Clarify comment about pushing series of commits

8 years agoivi_common: Drop unused function parameter from decode_band()
Diego Biurrun [Wed, 24 Oct 2012 09:54:03 +0000 (11:54 +0200)]
ivi_common: Drop unused function parameter from decode_band()

8 years agocook: Remove some silly Doxygen comments
Diego Biurrun [Wed, 24 Oct 2012 17:00:33 +0000 (19:00 +0200)]
cook: Remove some silly Doxygen comments

8 years agocook: Remove senseless maybe_reformat_buffer32() function
Diego Biurrun [Wed, 24 Oct 2012 14:03:31 +0000 (16:03 +0200)]
cook: Remove senseless maybe_reformat_buffer32() function

8 years agocook: cosmetics: Better names for joint_decode() function parameters
Diego Biurrun [Tue, 23 Oct 2012 23:08:19 +0000 (01:08 +0200)]
cook: cosmetics: Better names for joint_decode() function parameters

8 years agocook: cosmetics: Better name for ccpl COOKSubpacket member
Diego Biurrun [Tue, 23 Oct 2012 23:05:04 +0000 (01:05 +0200)]
cook: cosmetics: Better name for ccpl COOKSubpacket member

8 years agodoxygen: Add av_alloc_size to list of predefined macros
Diego Biurrun [Mon, 22 Oct 2012 14:16:07 +0000 (16:16 +0200)]
doxygen: Add av_alloc_size to list of predefined macros

This avoids Doxygen believing the attribute is the function name.

8 years agodoxygen: Drop some pointless entries from PREDEFINED macros list
Diego Biurrun [Tue, 23 Oct 2012 19:12:48 +0000 (21:12 +0200)]
doxygen: Drop some pointless entries from PREDEFINED macros list

8 years agocws2fws: check fstat return code.
Michael Niedermayer [Fri, 26 Oct 2012 15:57:42 +0000 (17:57 +0200)]
cws2fws: check fstat return code.

Fixes CID733720
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>