]> git.sesse.net Git - ffmpeg/log
ffmpeg
10 years agoavutil/tree: allow adjusting the log level
Michael Niedermayer [Tue, 30 Jul 2013 09:04:48 +0000 (11:04 +0200)]
avutil/tree: allow adjusting the log level

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavutil/tree: change debug output to AV_LOG_DEBUG level
Michael Niedermayer [Tue, 30 Jul 2013 09:03:52 +0000 (11:03 +0200)]
avutil/tree: change debug output to AV_LOG_DEBUG level

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '10db1a9bca46b0f760a1263d47142b2f57e195d7'
Michael Niedermayer [Tue, 30 Jul 2013 08:42:40 +0000 (10:42 +0200)]
Merge commit '10db1a9bca46b0f760a1263d47142b2f57e195d7'

* commit '10db1a9bca46b0f760a1263d47142b2f57e195d7':
  avutil/tree: K&R formatting cosmetics

Conflicts:
libavutil/tree.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'c47037c7a17e4026d38dfa41da27b9f91506725b'
Michael Niedermayer [Tue, 30 Jul 2013 08:30:42 +0000 (10:30 +0200)]
Merge commit 'c47037c7a17e4026d38dfa41da27b9f91506725b'

* commit 'c47037c7a17e4026d38dfa41da27b9f91506725b':
  fate: Add timefilter test

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '06205b5efdcf0bc4c5463bfdd02f09b5f79fc4cd'
Michael Niedermayer [Tue, 30 Jul 2013 08:25:02 +0000 (10:25 +0200)]
Merge commit '06205b5efdcf0bc4c5463bfdd02f09b5f79fc4cd'

* commit '06205b5efdcf0bc4c5463bfdd02f09b5f79fc4cd':
  hls: Free packets when skipping packets when seeking

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'a2b7eeeb06471979ee39fd3075a04633222678a6'
Michael Niedermayer [Tue, 30 Jul 2013 08:19:20 +0000 (10:19 +0200)]
Merge commit 'a2b7eeeb06471979ee39fd3075a04633222678a6'

* commit 'a2b7eeeb06471979ee39fd3075a04633222678a6':
  hlsproto: Store all durations in AV_TIME_BASE

Conflicts:
libavformat/hlsproto.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'c44191039944526dd7eb6e536990b555837961f5'
Michael Niedermayer [Tue, 30 Jul 2013 08:12:48 +0000 (10:12 +0200)]
Merge commit 'c44191039944526dd7eb6e536990b555837961f5'

* commit 'c44191039944526dd7eb6e536990b555837961f5':
  hls: Store all durations in AV_TIME_BASE

Conflicts:
libavformat/hls.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'e1d5b244761cf69db655ad7ece1dbf2c13dd4fce'
Michael Niedermayer [Tue, 30 Jul 2013 08:03:02 +0000 (10:03 +0200)]
Merge commit 'e1d5b244761cf69db655ad7ece1dbf2c13dd4fce'

* commit 'e1d5b244761cf69db655ad7ece1dbf2c13dd4fce':
  hls: Store first_timestamp in units of AV_TIME_BASE

Conflicts:
libavformat/hls.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '55c4cba2a7037161ea56b2d55b347c8381df7f1e'
Michael Niedermayer [Tue, 30 Jul 2013 07:50:26 +0000 (09:50 +0200)]
Merge commit '55c4cba2a7037161ea56b2d55b347c8381df7f1e'

* commit '55c4cba2a7037161ea56b2d55b347c8381df7f1e':
  huffyuvenc: BGRA support

Conflicts:
libavcodec/huffyuvenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoasfdec: remove "ignoring invalid packet_obj_size" code
Michael Niedermayer [Tue, 30 Jul 2013 01:13:30 +0000 (03:13 +0200)]
asfdec: remove "ignoring invalid packet_obj_size" code

The code is no longer needed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoasfdec: move packet_obj_size to ASFStream
Michael Niedermayer [Tue, 30 Jul 2013 01:12:28 +0000 (03:12 +0200)]
asfdec: move packet_obj_size to ASFStream

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoasfdec: avoid using AVStream->priv_data
Michael Niedermayer [Tue, 30 Jul 2013 00:52:17 +0000 (02:52 +0200)]
asfdec: avoid using AVStream->priv_data

This ensures that we dont write into one struct and read the other without
realizing that they arent identical.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agodoc/filters: fix typo
Paul B Mahol [Mon, 29 Jul 2013 20:05:21 +0000 (20:05 +0000)]
doc/filters: fix typo

Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years agolavfi: add compand filter
Paul B Mahol [Tue, 16 Jul 2013 21:39:06 +0000 (21:39 +0000)]
lavfi: add compand filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years agoavcodec/kmvc: fix MV checks
Michael Niedermayer [Mon, 29 Jul 2013 18:43:45 +0000 (20:43 +0200)]
avcodec/kmvc: fix MV checks

Fixes Ticket2813
Fixes regression since 70b5583

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavutil/tree: K&R formatting cosmetics
Diego Biurrun [Tue, 16 Oct 2012 14:08:05 +0000 (16:08 +0200)]
avutil/tree: K&R formatting cosmetics

10 years agofate: Add timefilter test
Diego Biurrun [Fri, 5 Oct 2012 17:37:10 +0000 (19:37 +0200)]
fate: Add timefilter test

10 years agohls: Free packets when skipping packets when seeking
Martin Storsjö [Mon, 29 Jul 2013 08:27:44 +0000 (11:27 +0300)]
hls: Free packets when skipping packets when seeking

This fixes memory leaks present since 2b3d041cdc.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agohlsproto: Store all durations in AV_TIME_BASE
Martin Storsjö [Mon, 29 Jul 2013 07:27:09 +0000 (10:27 +0300)]
hlsproto: Store all durations in AV_TIME_BASE

Also parse segment durations as floating point, which is allowed
since HLS version 3.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agohls: Store all durations in AV_TIME_BASE
Martin Storsjö [Mon, 29 Jul 2013 07:26:02 +0000 (10:26 +0300)]
hls: Store all durations in AV_TIME_BASE

Also parse segment durations as floating point, which is allowed
since HLS version 3.

This is based on a patch by Zhang Rui.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agohls: Store first_timestamp in units of AV_TIME_BASE
Martin Storsjö [Mon, 29 Jul 2013 07:09:02 +0000 (10:09 +0300)]
hls: Store first_timestamp in units of AV_TIME_BASE

When first_timestamp was stored as-is, its actual time base
wasn't known later in the seek function.

Additionally, the logic (from 795d9594cfa) for scaling it
based on stream_index is flawed - stream_index in the seek
function only specifies which stream the seek timestamp refers
to, but obviously doesn't say anything about which stream
first_timestamp belongs to.

In the cases where stream_index was >= 0 and all streams had the
same time base, this didn't matter in practice.

Seeking taking first_timestamp into account is problematic
when one variant is mpegts (with real timestamps) and one variant
is raw ADTS (with timestamps only being accumulated packet
duration), where the variants start at totally different timestamps.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agohuffyuvenc: BGRA support
Michael Niedermayer [Sun, 10 Mar 2013 10:16:33 +0000 (11:16 +0100)]
huffyuvenc: BGRA support

Bug-Id: 452

Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years agoFix compilation with --disable-everything --enable-shared.
Carl Eugen Hoyos [Mon, 29 Jul 2013 15:52:40 +0000 (17:52 +0200)]
Fix compilation with --disable-everything --enable-shared.

Compilation with --disable-everything --enable-shared failed
on systems with VAAPI support with the following undefined
symbol in libavcodec/vaapi.o:
libavcodec/libavcodec.so: undefined reference to `ff_mpeg_draw_horiz_band'

10 years agoavcodec/ff_init_vlc_sparse: use a local array for static vlcs avoiding malloc()
Michael Niedermayer [Sat, 13 Jul 2013 11:33:49 +0000 (13:33 +0200)]
avcodec/ff_init_vlc_sparse: use a local array for static vlcs avoiding malloc()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/ff_init_vlc_sparse: use a spinlock for thread sync
Michael Niedermayer [Sat, 13 Jul 2013 11:32:39 +0000 (13:32 +0200)]
avcodec/ff_init_vlc_sparse: use a spinlock for thread sync

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoRevert "bitstream: make vlc init of static tables thread safe."
Michael Niedermayer [Sat, 13 Jul 2013 00:53:26 +0000 (02:53 +0200)]
Revert "bitstream: make vlc init of static tables thread safe."

This reverts commit 4b6869d6e0120c92253d525921f0e04361888e10.

Conflicts:

libavcodec/bitstream.c

This code can cause assertion failures on artificial OOM situations
It will be replaced by a solution that doesnt have this issue in the
following commits.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agozmbv: use av_image_copy_plane()
Paul B Mahol [Mon, 29 Jul 2013 09:59:03 +0000 (09:59 +0000)]
zmbv: use av_image_copy_plane()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 29 Jul 2013 12:31:38 +0000 (14:31 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  hls: Create an AVProgram for each variant

Conflicts:
libavformat/hls.c

See: 23db5418ed2ebaddbbc57a45b81caa6e94724587
Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '9d64f236292ba28018dd9afd2d57f8f944b33f81'
Michael Niedermayer [Mon, 29 Jul 2013 12:18:37 +0000 (14:18 +0200)]
Merge commit '9d64f236292ba28018dd9afd2d57f8f944b33f81'

* commit '9d64f236292ba28018dd9afd2d57f8f944b33f81':
  hls: Respect the different stream time bases when comparing dts

Conflicts:
libavformat/hls.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'c11e33a3d9665dd1fc5dbdecdd03a4860ac6a622'
Michael Niedermayer [Mon, 29 Jul 2013 12:11:21 +0000 (14:11 +0200)]
Merge commit 'c11e33a3d9665dd1fc5dbdecdd03a4860ac6a622'

* commit 'c11e33a3d9665dd1fc5dbdecdd03a4860ac6a622':
  hls: Set stream offset before opening a chained demuxer

Conflicts:
libavformat/hls.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'cdd2d73d315ecaf19ff49e64c91923275f1bda68'
Michael Niedermayer [Mon, 29 Jul 2013 12:04:27 +0000 (14:04 +0200)]
Merge commit 'cdd2d73d315ecaf19ff49e64c91923275f1bda68'

* commit 'cdd2d73d315ecaf19ff49e64c91923275f1bda68':
  hls: Don't check discard flags until the parent demuxer's streams actually exist
  hls: Copy the time base from the chained demuxer

Conflicts:
libavformat/hls.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'eb33ba04e03d9f36e23fffd442510c824be709c3'
Michael Niedermayer [Mon, 29 Jul 2013 11:58:21 +0000 (13:58 +0200)]
Merge commit 'eb33ba04e03d9f36e23fffd442510c824be709c3'

* commit 'eb33ba04e03d9f36e23fffd442510c824be709c3':
  hls: Return all packets from a previous variant before moving on to the next one

Conflicts:
libavformat/hls.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'c5b46a064d9991f2cd045c90179fccf35ecffc34'
Michael Niedermayer [Mon, 29 Jul 2013 11:14:29 +0000 (13:14 +0200)]
Merge commit 'c5b46a064d9991f2cd045c90179fccf35ecffc34'

* commit 'c5b46a064d9991f2cd045c90179fccf35ecffc34':
  lavf: Don't interpret just slightly broken timestamps as wraparound

Conflicts:
libavformat/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '2219e27b5b17d146e4ab71a3ed86dfc013fb7a93'
Michael Niedermayer [Mon, 29 Jul 2013 10:53:57 +0000 (12:53 +0200)]
Merge commit '2219e27b5b17d146e4ab71a3ed86dfc013fb7a93'

* commit '2219e27b5b17d146e4ab71a3ed86dfc013fb7a93':
  oma: correctly mark and decrypt partial packets

Conflicts:
libavformat/omadec.c

See: dcd013a535bccbb163b740b72bbedde67dc8e633
Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '9d0b45ade864f3d2ccd8610149fe1fff53c4e937'
Michael Niedermayer [Mon, 29 Jul 2013 10:41:32 +0000 (12:41 +0200)]
Merge commit '9d0b45ade864f3d2ccd8610149fe1fff53c4e937'

* commit '9d0b45ade864f3d2ccd8610149fe1fff53c4e937':
  oma: check geob tag boundary

Conflicts:
libavformat/omadec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '4f03a77e52596cbe9ec179666ddb3e0345a8133a'
Michael Niedermayer [Mon, 29 Jul 2013 10:21:08 +0000 (12:21 +0200)]
Merge commit '4f03a77e52596cbe9ec179666ddb3e0345a8133a'

* commit '4f03a77e52596cbe9ec179666ddb3e0345a8133a':
  oma: refactor seek function

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '3ca1dd2502a860989ee5289316af6b9816cee78f'
Michael Niedermayer [Mon, 29 Jul 2013 10:07:11 +0000 (12:07 +0200)]
Merge commit '3ca1dd2502a860989ee5289316af6b9816cee78f'

* commit '3ca1dd2502a860989ee5289316af6b9816cee78f':
  xl: Make sure the width is valid

Conflicts:
libavcodec/xl.c

See: 94b42da6963a88c9518039e0b8ca42b6aab8bfb3
Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '0f51c398beac87682b2249662b97e30512f7868c'
Michael Niedermayer [Mon, 29 Jul 2013 09:57:30 +0000 (11:57 +0200)]
Merge commit '0f51c398beac87682b2249662b97e30512f7868c'

* commit '0f51c398beac87682b2249662b97e30512f7868c':
  http: Support reading gzip/deflate compressed data
  utvideoenc: use av_image_copy_plane()

Conflicts:
libavformat/http.c
See: b09d86c6366f2933d7bec430486d9d56bf98f7b6
See: 6bab3430a775183f2f9acbd91d1376c71e87c026
Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '62b1e3b1031e901105d78e831120de8e4c3e0013'
Michael Niedermayer [Mon, 29 Jul 2013 09:42:47 +0000 (11:42 +0200)]
Merge commit '62b1e3b1031e901105d78e831120de8e4c3e0013'

* commit '62b1e3b1031e901105d78e831120de8e4c3e0013':
  aasc: Check minimum buffer size

Conflicts:
libavcodec/aasc.c

See: e1631f8ebe9a8f2a9cca85d60160b9be94eb63f3
See: 8a57ca5c6a1c0ad28afa7ea6f824981e6761cce1
Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '45ee556d51ef04d79d52bf6b0b7f28a4d231cb0c'
Michael Niedermayer [Mon, 29 Jul 2013 09:34:07 +0000 (11:34 +0200)]
Merge commit '45ee556d51ef04d79d52bf6b0b7f28a4d231cb0c'

* commit '45ee556d51ef04d79d52bf6b0b7f28a4d231cb0c':
  qdm2: Whitespace cosmetics
  flac: use meaningful return values

Conflicts:
libavcodec/flacdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'f1cb490d6d7391ff7e28cc376908cc98a652228d'
Michael Niedermayer [Mon, 29 Jul 2013 09:20:57 +0000 (11:20 +0200)]
Merge commit 'f1cb490d6d7391ff7e28cc376908cc98a652228d'

* commit 'f1cb490d6d7391ff7e28cc376908cc98a652228d':
  xl: Fix the buffer size check

Conflicts:
libavcodec/xl.c

See: 8c59e0c362b948a746392b65932dd1cfeab8076c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'e13a929314e4a9a09d3146648f876f162f46cc32'
Michael Niedermayer [Mon, 29 Jul 2013 09:08:02 +0000 (11:08 +0200)]
Merge commit 'e13a929314e4a9a09d3146648f876f162f46cc32'

* commit 'e13a929314e4a9a09d3146648f876f162f46cc32':
  xl: K&R formatting cosmetics

Conflicts:
libavcodec/xl.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agohls: Create an AVProgram for each variant
LYF [Fri, 16 Nov 2012 06:12:27 +0000 (14:12 +0800)]
hls: Create an AVProgram for each variant

Without the information, an application may choose audio from one
variant and video from another variant, which leads to fetching two
variants from the network. This enables av_find_best_stream() to find
matching audio and video streams, so that only one variant is fetched.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agohls: Respect the different stream time bases when comparing dts
Michael Niedermayer [Mon, 20 Aug 2012 23:00:05 +0000 (01:00 +0200)]
hls: Respect the different stream time bases when comparing dts

Also adjust the streams timestamps according to their start
timestamp when comparing. This helps getting correctly interleaved
packets if one stream lacks timestamps (such as a plain ADTS
stream when the other variants are full mpegts) when the others
have timestamps that don't start from zero.

This probably doesn't work properly if such a stream is
temporarily disabled (via the discard flags) and then reenabled,
and such streams are hard to correctly sync against the other
streams as well - but this works better than before at least.

The segment number restriction makes sure all variants advance
roughly at the same pace as well.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agohls: Set stream offset before opening a chained demuxer
Martin Storsjö [Sun, 28 Jul 2013 17:33:26 +0000 (20:33 +0300)]
hls: Set stream offset before opening a chained demuxer

This makes sure we don't accidentally check discard flags
for the wrong stream.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agohls: Don't check discard flags until the parent demuxer's streams actually exist
Michael Niedermayer [Mon, 13 Aug 2012 18:37:04 +0000 (20:37 +0200)]
hls: Don't check discard flags until the parent demuxer's streams actually exist

If passing the end of one segment while initializing the
chained demuxer, the parent demuxer's streams aren't set up
yet, so we can't recheck the discard flags.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agohls: Copy the time base from the chained demuxer
Michael Niedermayer [Thu, 7 Mar 2013 12:42:12 +0000 (13:42 +0100)]
hls: Copy the time base from the chained demuxer

When a variant stream isn't mpegts but e.g. raw adts, the
default time base (90k) isn't correct.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agohls: Return all packets from a previous variant before moving on to the next one
Martin Storsjö [Sun, 28 Jul 2013 17:09:31 +0000 (20:09 +0300)]
hls: Return all packets from a previous variant before moving on to the next one

This serves as a safeguard; normally we want to use the dts
comparison to interleave packets from all active variants. If that
dts comparison for some reason doesn't work as intended, make sure
that all packets in all variants for a certain sequence number have
been returned before moving on to the next one.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agolavf: Don't interpret just slightly broken timestamps as wraparound
Michael Niedermayer [Sun, 28 Jul 2013 17:04:05 +0000 (20:04 +0300)]
lavf: Don't interpret just slightly broken timestamps as wraparound

This avoids breaking some slightly incorrect (dts > pts) timestamps
in sample HLS streams from Apple.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agotargaenc: remove unused TargaContext
Paul B Mahol [Fri, 26 Jul 2013 21:35:48 +0000 (21:35 +0000)]
targaenc: remove unused TargaContext

Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years agotruemotion2: make code independent of sizeof(AVFrame)
Paul B Mahol [Fri, 26 Jul 2013 14:49:12 +0000 (14:49 +0000)]
truemotion2: make code independent of sizeof(AVFrame)

Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years agopnm: do not set avctx->coded_frame
Paul B Mahol [Sun, 28 Jul 2013 21:16:07 +0000 (21:16 +0000)]
pnm: do not set avctx->coded_frame

Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years agopnm: fix 255 < maxval < 65535 for pam with depth 1
Paul B Mahol [Sun, 28 Jul 2013 21:18:51 +0000 (21:18 +0000)]
pnm: fix 255 < maxval < 65535 for pam with depth 1

Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years agoRevert "Avoid overflows when reading pgm files with maxval != 255 and != 65535."
Carl Eugen Hoyos [Sun, 28 Jul 2013 22:05:43 +0000 (00:05 +0200)]
Revert "Avoid overflows when reading pgm files with maxval != 255 and != 65535."

The patch worked on little endian because pgm decoding was broken
but it was not correct in any way.

This reverts commit 7651c0e49b1f6e66120ef32570a87e3f09224574.

10 years agoRevert "pnm: remove nonsense code"
Paul B Mahol [Sun, 28 Jul 2013 21:42:47 +0000 (21:42 +0000)]
Revert "pnm: remove nonsense code"

Breaks decoding pgms with 256 < maxval < 65535.

Found-by: Carl Eugen Hoyos <cehoyos@ag.or.at>.
This reverts commit a0348d0966a81a66f3a1bf061576b24d5296b933.

10 years agooma: correctly mark and decrypt partial packets
Luca Barbato [Wed, 17 Apr 2013 19:19:23 +0000 (21:19 +0200)]
oma: correctly mark and decrypt partial packets

Incomplete crypted files would lead to a read after buffer boundary
otherwise.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
10 years agooma: check geob tag boundary
Luca Barbato [Wed, 17 Apr 2013 19:07:09 +0000 (21:07 +0200)]
oma: check geob tag boundary

Prevent read after buffer boundary on corrupted tag.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
10 years agooma: refactor seek function
Luca Barbato [Sat, 4 May 2013 05:40:09 +0000 (07:40 +0200)]
oma: refactor seek function

Properly propagate seek errors from avio and the generic pcm seek.

10 years agooggenc: Write stream metadata if available
James Almer [Thu, 18 Jul 2013 07:18:24 +0000 (04:18 -0300)]
oggenc: Write stream metadata if available

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoxl: Make sure the width is valid
Luca Barbato [Sun, 28 Jul 2013 16:24:15 +0000 (18:24 +0200)]
xl: Make sure the width is valid

And undo the wrong commit f1cb490d6d7391ff7e28cc376908cc98a652228d

CC: libav-stable@libav.org
10 years agoAvoid overflows when reading pgm files with maxval != 255 and != 65535.
Carl Eugen Hoyos [Sun, 28 Jul 2013 17:07:06 +0000 (19:07 +0200)]
Avoid overflows when reading pgm files with maxval != 255 and != 65535.

libjpeg v6b apparently does not initialize the most significant bits
to zero when writing 12bit pgm's with maxval 4095.

10 years agoAssume gray8 if 1 < maxval <= 255 in pgm.
Carl Eugen Hoyos [Sun, 28 Jul 2013 16:12:23 +0000 (18:12 +0200)]
Assume gray8 if 1 < maxval <= 255 in pgm.

10 years agohttp: Support reading gzip/deflate compressed data
Zhang Rui [Mon, 22 Jul 2013 20:07:10 +0000 (04:07 +0800)]
http: Support reading gzip/deflate compressed data

Derived from VLC's http module.
Original authors:
  Antoine Cellerier <dionoea@videolan.org>
  Sébastien Escudier <sebastien-devel@celeos.eu>
  Rémi Duraffort <ivoire@videolan.org>
  Rémi Denis-Courmont <remi@remlab.net>
  Francois Cartegnie <fcvlcdev@free.fr>

Normally, http servers shouldn't send this to us since we
don't advertise it with an Accept-Encoding header, but some
servers still do it anyway.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agoSet bits_per_raw_sample when decoding mjpeg / ljpeg.
Carl Eugen Hoyos [Sun, 28 Jul 2013 15:02:22 +0000 (17:02 +0200)]
Set bits_per_raw_sample when decoding mjpeg / ljpeg.

The ljpeg decoder also supports gray images with
8 - 15 bits per component.

10 years agolavf/movenc: improve psp check
Matthieu Bouron [Sun, 28 Jul 2013 14:46:05 +0000 (16:46 +0200)]
lavf/movenc: improve psp check

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agolavf/movenc: remove useless checks on AVOutputFormat
Matthieu Bouron [Sun, 28 Jul 2013 14:46:04 +0000 (16:46 +0200)]
lavf/movenc: remove useless checks on AVOutputFormat

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoutvideoenc: use av_image_copy_plane()
Paul B Mahol [Sat, 27 Jul 2013 13:51:36 +0000 (13:51 +0000)]
utvideoenc: use av_image_copy_plane()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agoffprobe: add -show_programs option
Florent Tribouilloy [Thu, 25 Jul 2013 10:55:40 +0000 (12:55 +0200)]
ffprobe: add -show_programs option

The option is used to sort the streams by program.

Signed-off-by: Florent Tribouilloy <florent.tribouilloy@smartjog.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
10 years agoffprobe: do not treat array elements as nested in the compact writer
Stefano Sabatini [Sat, 27 Jul 2013 12:09:05 +0000 (14:09 +0200)]
ffprobe: do not treat array elements as nested in the compact writer

This fixes rendering of sections containing nested elements followed by
an array, for example as in the case:
programs->streams->stream

enabled by the -show_programs option.

10 years agodoc/ffprobe.xsd: specify tag elements in stream after disposition element
Stefano Sabatini [Sun, 28 Jul 2013 13:54:35 +0000 (15:54 +0200)]
doc/ffprobe.xsd: specify tag elements in stream after disposition element

Fix XML schema validation, since elements must appear in the same order
as specified in the schema.

10 years agoaasc: Check minimum buffer size
Luca Barbato [Sun, 7 Jul 2013 10:31:19 +0000 (12:31 +0200)]
aasc: Check minimum buffer size

Prevent some overreads.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
10 years agoqdm2: Whitespace cosmetics
Luca Barbato [Tue, 9 Jul 2013 11:32:42 +0000 (13:32 +0200)]
qdm2: Whitespace cosmetics

10 years agoflac: use meaningful return values
Luca Barbato [Wed, 10 Jul 2013 14:34:14 +0000 (16:34 +0200)]
flac: use meaningful return values

10 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 28 Jul 2013 12:07:34 +0000 (14:07 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  doc: cosmetics: Consistently format list and table items

Conflicts:
doc/developer.texi
doc/fate.texi

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'bf4b0ed1d5d323050a87c9f0ad1dd40860eb3da2'
Michael Niedermayer [Sun, 28 Jul 2013 11:44:34 +0000 (13:44 +0200)]
Merge commit 'bf4b0ed1d5d323050a87c9f0ad1dd40860eb3da2'

* commit 'bf4b0ed1d5d323050a87c9f0ad1dd40860eb3da2':
  Add missing deprecation attributes

Conflicts:
libavfilter/avfilter.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '5b097399baa2e38cc513939cfab3a9b6fdbc33df'
Michael Niedermayer [Sun, 28 Jul 2013 11:36:46 +0000 (13:36 +0200)]
Merge commit '5b097399baa2e38cc513939cfab3a9b6fdbc33df'

* commit '5b097399baa2e38cc513939cfab3a9b6fdbc33df':
  eval: Explicitly ignore return value of strtod() in parse_db()

Conflicts:
libavutil/eval.c

See: 3cd9849d9c24b0808e6e55cd7568250acaae2b91
Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '6ff15cd569e1345bc3612fb69ad3003b104fe50d'
Michael Niedermayer [Sun, 28 Jul 2013 11:23:33 +0000 (13:23 +0200)]
Merge commit '6ff15cd569e1345bc3612fb69ad3003b104fe50d'

* commit '6ff15cd569e1345bc3612fb69ad3003b104fe50d':
  Remove unreachable returns

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'c8f0b20b4a6bb6691928789d83e4b02896969848'
Michael Niedermayer [Sun, 28 Jul 2013 11:13:47 +0000 (13:13 +0200)]
Merge commit 'c8f0b20b4a6bb6691928789d83e4b02896969848'

* commit 'c8f0b20b4a6bb6691928789d83e4b02896969848':
  avidec: Let the inner dv demuxer take care of discarding

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '10aa44aa675e05067845e3e55fac37642cbbdae4'
Michael Niedermayer [Sun, 28 Jul 2013 11:05:35 +0000 (13:05 +0200)]
Merge commit '10aa44aa675e05067845e3e55fac37642cbbdae4'

* commit '10aa44aa675e05067845e3e55fac37642cbbdae4':
  avidec: K&R formatting cosmetics

Conflicts:
libavformat/avidec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoxl: Fix the buffer size check
Luca Barbato [Sat, 27 Jul 2013 18:34:07 +0000 (20:34 +0200)]
xl: Fix the buffer size check

Also make it the first check.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
10 years agoxl: K&R formatting cosmetics
Luca Barbato [Sat, 27 Jul 2013 18:01:03 +0000 (20:01 +0200)]
xl: K&R formatting cosmetics

10 years agoMerge commit '37063714c0a064808f9671ec4d376955d664f463'
Michael Niedermayer [Sun, 28 Jul 2013 09:54:23 +0000 (11:54 +0200)]
Merge commit '37063714c0a064808f9671ec4d376955d664f463'

* commit '37063714c0a064808f9671ec4d376955d664f463':
  build: Only check FATE dependencies when running FATE tests

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '16c22122c788b5e54a2f2e224bd0106429f0714c'
Michael Niedermayer [Sun, 28 Jul 2013 09:40:49 +0000 (11:40 +0200)]
Merge commit '16c22122c788b5e54a2f2e224bd0106429f0714c'

* commit '16c22122c788b5e54a2f2e224bd0106429f0714c':
  h264: K&R formatting cosmetics

Conflicts:
libavcodec/h264.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '966689442ed843019dc0722a49bfb0ac51755d19'
Michael Niedermayer [Sun, 28 Jul 2013 09:26:57 +0000 (11:26 +0200)]
Merge commit '966689442ed843019dc0722a49bfb0ac51755d19'

* commit '966689442ed843019dc0722a49bfb0ac51755d19':
  buffersink: K&R formatting cosmetics

Conflicts:
libavfilter/buffersink.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agolavc: do not override format if neither text nor bitmap codec prop is set
Marton Balint [Sat, 27 Jul 2013 19:14:44 +0000 (21:14 +0200)]
lavc: do not override format if neither text nor bitmap codec prop is set

Some decoders may output both, this way the decoder can set it.

Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agodpx: use av_image_copy_plane()
Paul B Mahol [Sat, 27 Jul 2013 20:51:14 +0000 (20:51 +0000)]
dpx: use av_image_copy_plane()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years agodpxenc: cosmetics: reindent
Paul B Mahol [Sat, 27 Jul 2013 20:45:48 +0000 (20:45 +0000)]
dpxenc: cosmetics: reindent

Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years agotarga_y216dec: remove empty function
Paul B Mahol [Sat, 27 Jul 2013 20:27:15 +0000 (20:27 +0000)]
targa_y216dec: remove empty function

Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years agozmbv: return meaningful error code
Paul B Mahol [Sat, 27 Jul 2013 20:21:33 +0000 (20:21 +0000)]
zmbv: return meaningful error code

Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years agoutvideoenc: use av_image_copy_plane()
Paul B Mahol [Sat, 27 Jul 2013 13:51:36 +0000 (13:51 +0000)]
utvideoenc: use av_image_copy_plane()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years agoForward interlaced field information from mov to v210 decoder.
Tim.Nicholson [Sat, 27 Jul 2013 16:57:28 +0000 (18:57 +0200)]
Forward interlaced field information from mov to v210 decoder.

Reported and tested by Dave Rice.

Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
10 years agodoc/codecs: fix dangling reference to codec-options chapter
Stefano Sabatini [Sat, 27 Jul 2013 14:50:19 +0000 (16:50 +0200)]
doc/codecs: fix dangling reference to codec-options chapter

10 years agodoc: cosmetics: Consistently format list and table items
Diego Biurrun [Tue, 26 Mar 2013 00:09:00 +0000 (01:09 +0100)]
doc: cosmetics: Consistently format list and table items

10 years agoAdd missing deprecation attributes
Diego Biurrun [Thu, 28 Feb 2013 18:24:29 +0000 (19:24 +0100)]
Add missing deprecation attributes

10 years agoeval: Explicitly ignore return value of strtod() in parse_db()
Diego Biurrun [Sat, 27 Jul 2013 11:14:15 +0000 (13:14 +0200)]
eval: Explicitly ignore return value of strtod() in parse_db()

The return value is not needed.  This fixes the warning:
libavutil/eval.c:353:15: warning: ignoring return value of ‘strtod’

10 years agoRemove unreachable returns
Diego Biurrun [Thu, 14 Feb 2013 11:42:57 +0000 (12:42 +0100)]
Remove unreachable returns

10 years agoavidec: Let the inner dv demuxer take care of discarding
Luca Barbato [Sat, 27 Jul 2013 13:48:41 +0000 (15:48 +0200)]
avidec: Let the inner dv demuxer take care of discarding

CC: libav-stable@libav.org
10 years agoavidec: K&R formatting cosmetics
Luca Barbato [Sat, 27 Jul 2013 10:47:09 +0000 (12:47 +0200)]
avidec: K&R formatting cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agobuild: Only check FATE dependencies when running FATE tests
Diego Biurrun [Thu, 18 Jul 2013 16:12:27 +0000 (18:12 +0200)]
build: Only check FATE dependencies when running FATE tests

Only check dependencies if invoking the make targets 'check'
or anything matching 'fate%' except 'fate-rsync'.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agoavcodec/vorbisenc: change 6 asserts to av_asserts()
Michael Niedermayer [Sat, 27 Jul 2013 13:05:06 +0000 (15:05 +0200)]
avcodec/vorbisenc: change 6 asserts to av_asserts()

speed relevant ones use av_assert2()

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