ffmpeg.git
7 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>
7 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>
7 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.

7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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.

7 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.

7 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

7 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()

7 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

7 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

7 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

7 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

7 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.

7 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

7 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>
7 years agocws2fws: check lseek() return
Michael Niedermayer [Fri, 26 Oct 2012 15:30:15 +0000 (17:30 +0200)]
cws2fws: check lseek() return

Fixes: CID733721
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocws2fws: check inflateInit return value
Michael Niedermayer [Fri, 26 Oct 2012 15:27:53 +0000 (17:27 +0200)]
cws2fws: check inflateInit return value

Fixes CID733722
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh263: avoid memcpys over array bound in motion vector caching for obmc
Janne Grunau [Wed, 10 Oct 2012 12:25:44 +0000 (14:25 +0200)]
h263: avoid memcpys over array bound in motion vector caching for obmc

Fixes CID602232.

7 years agobit: check av_new_packet() return value
Paul B Mahol [Fri, 26 Oct 2012 15:31:00 +0000 (15:31 +0000)]
bit: check av_new_packet() return value

Fixes CID703626.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoexamples: fix doxy so they appear on the example page
Michael Niedermayer [Fri, 26 Oct 2012 14:32:32 +0000 (16:32 +0200)]
examples: fix doxy so they appear on the example page

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agormdec: fix null derefercne
Michael Niedermayer [Fri, 26 Oct 2012 14:18:09 +0000 (16:18 +0200)]
rmdec: fix null derefercne

Fixes CID733714
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agormdec: use av_assert for audio_pkt_cnt
Michael Niedermayer [Fri, 26 Oct 2012 14:04:30 +0000 (16:04 +0200)]
rmdec: use av_assert for audio_pkt_cnt

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 26 Oct 2012 12:55:15 +0000 (14:55 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  configure: sanitise sparc vis check
  configure: recognise more sparc variants as --cpu argument
  build: Include HEADERS-yes in the HEADERS variable
  pcm: change references to raw to pcm
  ffv1: set the range coder state in decode_slice_header
  pcmdec: change default of channels parameter to 1

Conflicts:
libavformat/pcmdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoconfigure: sanitise sparc vis check
Mans Rullgard [Thu, 25 Oct 2012 14:56:16 +0000 (15:56 +0100)]
configure: sanitise sparc vis check

It is wrong to force -mcpu=ultrasparc when checking for vis.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoconfigure: recognise more sparc variants as --cpu argument
Michael Kostylev [Thu, 25 Oct 2012 10:38:51 +0000 (11:38 +0100)]
configure: recognise more sparc variants as --cpu argument

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agocaf muxer: write metadata
Paul B Mahol [Thu, 25 Oct 2012 23:33:34 +0000 (23:33 +0000)]
caf muxer: write metadata

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoMerge commit '1b891d17c531e8a63c2974aab4bf997ce70746f3'
Michael Niedermayer [Fri, 26 Oct 2012 12:07:04 +0000 (14:07 +0200)]
Merge commit '1b891d17c531e8a63c2974aab4bf997ce70746f3'

* commit '1b891d17c531e8a63c2974aab4bf997ce70746f3':
  avconv: fix bitrate report when writing to /dev/null
  avfilter: fix graphparser memleaks on error paths
  rawdec: remove ff_raw_read_header
  pcmdec: remove dependency from rawdec
  g722: refactor out of rawdec.c
  rawvideo: use a specific read_header

Conflicts:
ffmpeg.c
libavformat/Makefile
libavformat/rawdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoaacps: fix order of operands of ipdopd_reset().
Michael Niedermayer [Fri, 26 Oct 2012 00:18:31 +0000 (02:18 +0200)]
aacps: fix order of operands of ipdopd_reset().

With the current implementation this is purely cosmetic

Fixes CID732285
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoaacps: loose self assignment
Michael Niedermayer [Fri, 26 Oct 2012 00:15:43 +0000 (02:15 +0200)]
aacps: loose self assignment

Fixes CID604123
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoaacenc: replace scale factor warning by assert
Michael Niedermayer [Fri, 26 Oct 2012 00:11:20 +0000 (02:11 +0200)]
aacenc: replace scale factor warning by assert

The code would crash after printing the warning

Fixes CID717903, CID717904
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoaiffdec: read ID3 attached pictures
Matthieu Bouron [Thu, 25 Oct 2012 20:45:33 +0000 (22:45 +0200)]
aiffdec: read ID3 attached pictures

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocafenc: make .long_name match demuxer
Paul B Mahol [Thu, 25 Oct 2012 23:04:13 +0000 (23:04 +0000)]
cafenc: make .long_name match demuxer

While here reindent .codec_tag .

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agotools: add ffescape utility
Stefano Sabatini [Mon, 15 Oct 2012 10:17:15 +0000 (12:17 +0200)]
tools: add ffescape utility

7 years agofraps: use meaningful error codes
Paul B Mahol [Thu, 25 Oct 2012 19:47:54 +0000 (19:47 +0000)]
fraps: use meaningful error codes

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolvfdec: cosmetics: fix identation
Paul B Mahol [Thu, 25 Oct 2012 20:56:20 +0000 (20:56 +0000)]
lvfdec: cosmetics: fix identation

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolavfi/showspectrum: add sliding mode.
Clément Bœsch [Sun, 21 Oct 2012 19:01:18 +0000 (21:01 +0200)]
lavfi/showspectrum: add sliding mode.

7 years agolavd/lavfi: fix leak in case of failure
Stefano Sabatini [Thu, 25 Oct 2012 19:33:45 +0000 (21:33 +0200)]
lavd/lavfi: fix leak in case of failure

Jump to the common release code in case of failure.

7 years agolavfi/af_volumedetect: print stats in uninit().
Nicolas George [Wed, 17 Oct 2012 17:42:20 +0000 (19:42 +0200)]
lavfi/af_volumedetect: print stats in uninit().

If the stats are printed when request_frame on the input
returns EOF, then they are never printed if the filter is
not flushed, in particular when using the -t ffmpeg option.

Fix trac ticket #1727.

7 years agoRestore installation of libavutil/lzo.h after 2a91ada8282f18d2807abee5188225bba1b19bda
Alexis Ballier [Thu, 25 Oct 2012 12:54:45 +0000 (09:54 -0300)]
Restore installation of libavutil/lzo.h after 2a91ada8282f18d2807abee5188225bba1b19bda

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavfi/vf_fps: allow to set the rounding method.
Nicolas George [Thu, 25 Oct 2012 15:58:08 +0000 (17:58 +0200)]
lavfi/vf_fps: allow to set the rounding method.

By default, fps selects frames near PTS 0, 0.5, 1.5, 2.5, etc.
With round=down, it selects the frames near PTS 0, 1, 2, 3, etc.

7 years agoffserver: fix printf argument type
Martin Ettl [Thu, 25 Oct 2012 16:34:32 +0000 (16:34 +0000)]
ffserver: fix printf argument type

7 years agobuild: Include HEADERS-yes in the HEADERS variable
Martin Storsjö [Thu, 25 Oct 2012 14:13:06 +0000 (17:13 +0300)]
build: Include HEADERS-yes in the HEADERS variable

This makes sure the previously always installed public header
lzo.h is installed if the LZO functionality is enabled.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agopcm: change references to raw to pcm
Luca Barbato [Mon, 1 Jan 2001 00:08:20 +0000 (01:08 +0100)]
pcm: change references to raw to pcm

7 years agodsicinav: return proper error code in case of malloc failure
Paul B Mahol [Thu, 25 Oct 2012 13:46:19 +0000 (13:46 +0000)]
dsicinav: return proper error code in case of malloc failure

Fixes null pointer dereference.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agodsicinav: return meaningful error code
Paul B Mahol [Thu, 25 Oct 2012 12:59:34 +0000 (12:59 +0000)]
dsicinav: return meaningful error code

While here remove redundant references in error message.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavconv: fix bitrate report when writing to /dev/null
Janne Grunau [Tue, 9 Oct 2012 21:22:49 +0000 (23:22 +0200)]
avconv: fix bitrate report when writing to /dev/null

avio_size() reports the filesize which returns 0 for /dev/null.
avio_tell() reports the current position.

Also handle errors from avio_tell().

7 years agoavfilter: fix graphparser memleaks on error paths
Janne Grunau [Tue, 9 Oct 2012 19:28:32 +0000 (21:28 +0200)]
avfilter: fix graphparser memleaks on error paths

Fixes CID700635, CID700636 and CID732274.

7 years agorawdec: remove ff_raw_read_header
Luca Barbato [Wed, 24 Oct 2012 17:53:32 +0000 (19:53 +0200)]
rawdec: remove ff_raw_read_header

It is not used anymore and is a kludge.

7 years agopcmdec: remove dependency from rawdec
Luca Barbato [Wed, 24 Oct 2012 17:15:50 +0000 (19:15 +0200)]
pcmdec: remove dependency from rawdec

The code shared is not actually shared with anything else.

7 years agog722: refactor out of rawdec.c
Luca Barbato [Wed, 24 Oct 2012 16:18:18 +0000 (18:18 +0200)]
g722: refactor out of rawdec.c

7 years agorawvideo: use a specific read_header
Luca Barbato [Wed, 24 Oct 2012 12:18:49 +0000 (14:18 +0200)]
rawvideo: use a specific read_header

ff_raw_read_header is used only for this demuxer for video.

7 years agomxfenc: Write MultipleDescriptor ref in Preface
Tomas Härdin [Thu, 25 Oct 2012 08:23:59 +0000 (10:23 +0200)]
mxfenc: Write MultipleDescriptor ref in Preface

Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoaacdec: reorder multiuplications to make code safer against too large input values.
Michael Niedermayer [Thu, 25 Oct 2012 11:42:02 +0000 (13:42 +0200)]
aacdec: reorder multiuplications to make code safer against too large input values.

Fixes CID700697
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 25 Oct 2012 11:15:58 +0000 (13:15 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  avutil: Make LZO decoder code configure-time selectable
  avutil: Move memcpy_backptr() to mem.c
  configure: detect parisc64 automatically
  configure: detect ppc64 automatically
  configure: detect mips64 automatically
  configure: generalise 64-bit test
  smoothstreamingenc: Don't assume streams start from timestamp 0

Conflicts:
configure
libavutil/Makefile
libavutil/lzo.c
libavutil/lzo.h
libavutil/mem.c
libavutil/mem.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavutil: Make LZO decoder code configure-time selectable
Diego Biurrun [Thu, 18 Oct 2012 17:48:27 +0000 (19:48 +0200)]
avutil: Make LZO decoder code configure-time selectable

7 years agoavutil: Move memcpy_backptr() to mem.c
Diego Biurrun [Thu, 18 Oct 2012 17:27:51 +0000 (19:27 +0200)]
avutil: Move memcpy_backptr() to mem.c

The function is used elsewhere and does not belong with the LZO code.

7 years agompegvideo: fix lowres on field pictures
Michael Niedermayer [Thu, 25 Oct 2012 02:03:58 +0000 (04:03 +0200)]
mpegvideo: fix lowres on field pictures

Fixes Ticket1846

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agofate: reenable some recently lost audio tests
Michael Niedermayer [Thu, 25 Oct 2012 01:13:32 +0000 (03:13 +0200)]
fate: reenable some recently lost audio tests

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffmpeg: fix null ptr deref in psnr printing code
Michael Niedermayer [Wed, 24 Oct 2012 23:16:34 +0000 (01:16 +0200)]
ffmpeg: fix null ptr deref in psnr printing code

Fixes CID205005
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoroqaudioenc: remove dead code
Michael Niedermayer [Wed, 24 Oct 2012 23:01:17 +0000 (01:01 +0200)]
roqaudioenc: remove dead code

Fixes CID703669
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoqt-faststart: check return of ftello()
Michael Niedermayer [Wed, 24 Oct 2012 22:39:33 +0000 (00:39 +0200)]
qt-faststart: check return of ftello()

Fixes CID739863
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoasfdec: fixed signedness in comparission
Michael Niedermayer [Wed, 24 Oct 2012 22:35:55 +0000 (00:35 +0200)]
asfdec: fixed signedness in comparission

Fixes CID739864
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocmdutils: fix unclosed file on error
Michael Niedermayer [Wed, 24 Oct 2012 22:32:34 +0000 (00:32 +0200)]
cmdutils: fix unclosed file on error

Fixes CID739865
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomov_probe: use correct variable
Michael Niedermayer [Wed, 24 Oct 2012 22:23:29 +0000 (00:23 +0200)]
mov_probe: use correct variable

Fixes CID739867
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocmdutils: remove writes in never read variable
Michael Niedermayer [Wed, 24 Oct 2012 22:19:59 +0000 (00:19 +0200)]
cmdutils: remove writes in never read variable

Fixes CID739868
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavf/srtenc: set codec to subrip by default.
Clément Bœsch [Sun, 21 Oct 2012 01:12:04 +0000 (03:12 +0200)]
lavf/srtenc: set codec to subrip by default.

We don't have a text encoder yet, so this commit makes automatic
encoding working with srt output.

7 years agolavf/srtenc: simplify timing printing.
Clément Bœsch [Sun, 21 Oct 2012 00:49:01 +0000 (02:49 +0200)]
lavf/srtenc: simplify timing printing.

7 years agosrt: make the demuxer output SubRip packets.
Clément Bœsch [Wed, 24 Oct 2012 22:01:42 +0000 (00:01 +0200)]
srt: make the demuxer output SubRip packets.

The SRT format should never have outputted CODEC_ID_SRT packets in the
first place: SRT is a subtitle format containing SubRip text markup
events. The timing information is part of the format, not the codec, and
thus CODEC_ID_SRT should not exist.

Creating packets with the timing information within the payload only
leads to problem (such as remuxing with timing alteration not working),
especially when the SubRip markup is being used in container like
Matroska in addition to this standalone SRT format.

The main reason the timing line was included in those CODEC_ID_SRT
packets is likely because it contained extra information (the event
position) the codec actually needs. This issue is solved by using the
AV_PKT_DATA_SUBTITLE_POSITION side data type.

7 years agolavc: add AV_PKT_DATA_SUBTITLE_POSITION side data type.
Clément Bœsch [Wed, 24 Oct 2012 21:58:15 +0000 (23:58 +0200)]
lavc: add AV_PKT_DATA_SUBTITLE_POSITION side data type.

This commit introduces a new packet side data type for the subtitle
position information. This is meant to be used by the SRT format where
that information is stored along with the timing, which is not part of
the subrip packets.

7 years agolavc/utils: make sub decode consistent with A/V.
Clément Bœsch [Sat, 20 Oct 2012 22:16:11 +0000 (00:16 +0200)]
lavc/utils: make sub decode consistent with A/V.

This allows side data to be transmitted properly with subtitles.

7 years agolavf/srtdec: simplify start/end computation.
Clément Bœsch [Sat, 20 Oct 2012 19:21:34 +0000 (21:21 +0200)]
lavf/srtdec: simplify start/end computation.

Also fix potential overflow (CID733778)

7 years agoffprobe: add an array of section print buffers to the WriterContext
Stefano Sabatini [Wed, 24 Oct 2012 10:06:21 +0000 (12:06 +0200)]
ffprobe: add an array of section print buffers to the WriterContext

Allow to factorize buffers initialization/release, for all the writers
which use it. Simplify.

7 years agoDoxyfile: update examples path and patterns
Stefano Sabatini [Wed, 24 Oct 2012 14:51:19 +0000 (16:51 +0200)]
Doxyfile: update examples path and patterns

7 years agodoc/texi2pod.pl: drop unnecessary rule, which was converting "\," to ","
Stefano Sabatini [Wed, 24 Oct 2012 14:39:32 +0000 (16:39 +0200)]
doc/texi2pod.pl: drop unnecessary rule, which was converting "\," to ","

I cannot find a reason for such a rule, which was resulting in badly
escaped filtergraph snippets.

Fix trac ticket #1610.

7 years agofourcc2pixfmt: fix compilation
Michael Niedermayer [Wed, 24 Oct 2012 20:19:46 +0000 (22:19 +0200)]
fourcc2pixfmt: fix compilation

If someone finds a cleaner fix, dont hesitate to revert this!

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolibavfilter: include needed header for AVDictionary
Michael Niedermayer [Wed, 24 Oct 2012 19:54:24 +0000 (21:54 +0200)]
libavfilter: include needed header for AVDictionary

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agohttp: add -content_type user option.
Clément Bœsch [Tue, 23 Oct 2012 09:13:42 +0000 (11:13 +0200)]
http: add -content_type user option.

7 years agopgmyuvenc: do not create files which are not supported
Paul B Mahol [Wed, 24 Oct 2012 18:38:31 +0000 (18:38 +0000)]
pgmyuvenc: do not create files which are not supported

It is possible to support files with odd width and/or height
if real width and height are stored in header.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolavf: const correctness for avformat_new_stream
Paul B Mahol [Wed, 24 Oct 2012 14:29:05 +0000 (14:29 +0000)]
lavf: const correctness for avformat_new_stream

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agomxfenc: Fix possible integer overflows
Tomas Härdin [Wed, 24 Oct 2012 15:06:49 +0000 (17:06 +0200)]
mxfenc: Fix possible integer overflows

None of these are likely unless the user is writing a file with two billion
streams or a duration of around two months.

This fixes CIDs 700568, 700569, 700570, 700571, 700572 and 700573.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomxfdec: Fix potential leak in mxf_read_local_tags()
Tomas Härdin [Wed, 24 Oct 2012 14:54:25 +0000 (16:54 +0200)]
mxfdec: Fix potential leak in mxf_read_local_tags()

This fixes CID 733800.

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