Michael Niedermayer
9253cc496a
avcodec/diracdec: Replace default_bsep[] by multiplication
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-07 05:07:55 +02:00
Michael Niedermayer
21b30947f2
swscale/x86/hscale_fast_bilinear_simd: Fix variable names in comments
...
Found-by: Nick Lewycky <nlewycky@google.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-07 03:57:21 +02:00
Michael Niedermayer
5f2b4a2f6a
Merge remote-tracking branch 'cehoyos/master'
...
* cehoyos/master:
lavf/img2dec: Autodetect qdraw images.
lavc/qdrw: Also support real-world qdraw images.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-07 01:59:22 +02:00
Michael Niedermayer
bc6f84fff7
avdevice/dshow_capture: avoid #ifdef, use ff_dlog() for dshowdebug()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-07 01:49:54 +02:00
Carl Eugen Hoyos
2279de6eca
lavf/img2dec: Autodetect qdraw images.
2015-05-07 01:21:08 +02:00
Carl Eugen Hoyos
b453e76842
lavc/qdrw: Also support real-world qdraw images.
2015-05-07 01:21:08 +02:00
Michael Niedermayer
223a859853
swresample/dither_template: Do not define macro functions to nothing
...
This avoids potential warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-07 01:07:30 +02:00
Michael Niedermayer
3e14ed05f1
avformat/internal: always check arguments of hex_dump_debug()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-07 01:05:45 +02:00
Michael Niedermayer
374cf93548
avformat/asfdec: do not define print_guid() to nothing
...
This avoid potential warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-07 00:54:06 +02:00
Michael Niedermayer
0c015aa95c
avcodec/tableprint_vlc: Do not define functions to nothing
...
This avoids potential warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-07 00:52:47 +02:00
Michael Niedermayer
2284c38e4c
Merge commit 'e0010bb91fc0b067be8aefd2f77e6838537da433'
...
* commit 'e0010bb91fc0b067be8aefd2f77e6838537da433':
mux: Do not leave stale side data pointers in ff_interleave_add_packet()
Conflicts:
libavformat/mux.c
See: bfb3ed1a9d
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 22:37:18 +02:00
Michael Niedermayer
0318013afc
Merge commit '6c8c7c246280cdcd23e4d99006b95245ae837278'
...
* commit '6c8c7c246280cdcd23e4d99006b95245ae837278':
dump: Print AVAudioServiceType side data
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 22:29:19 +02:00
Michael Niedermayer
1caff5731d
Merge commit '04070dbca0688ab1e24528ce5c135254a9a79c47'
...
* commit '04070dbca0688ab1e24528ce5c135254a9a79c47':
libx265: Fix 'braces around scalar initializer' warning
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 21:46:52 +02:00
Michael Niedermayer
20ce69e5f8
Merge commit 'd81fb63d87692765c004c19934b49427df434a07'
...
* commit 'd81fb63d87692765c004c19934b49427df434a07':
fate: Add a PICT test
Conflicts:
tests/fate/image.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 21:21:00 +02:00
Michael Niedermayer
ffed987a4d
Merge commit '7b734ee55dbb8476d7ad63c7daf55c534cf82d5d'
...
* commit '7b734ee55dbb8476d7ad63c7daf55c534cf82d5d':
lavf: Open PICT images with Quickdraw
Conflicts:
tests/fate/image.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 21:05:16 +02:00
Michael Niedermayer
39e89f5211
Merge commit '34efb8a169e4551326e069be47125c6c2cb7ab90'
...
* commit '34efb8a169e4551326e069be47125c6c2cb7ab90':
quickdraw: Support direct pixel blocks
Conflicts:
Changelog
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 20:40:26 +02:00
Michael Niedermayer
251f9dcf22
Merge commit 'bb2cb0a66d86ec4ad9f43a488e8b6ab894c22d2f'
...
* commit 'bb2cb0a66d86ec4ad9f43a488e8b6ab894c22d2f':
quickdraw: Switch to greedy parsing
Conflicts:
libavcodec/qdrw.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 20:32:52 +02:00
Michael Niedermayer
d423fc12e6
Merge commit 'd00f1e0fc10bb945cdf140a6c320eb0c9cd25162'
...
* commit 'd00f1e0fc10bb945cdf140a6c320eb0c9cd25162':
quickdraw: Convert to bytestream2
Conflicts:
libavcodec/qdrw.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 20:23:54 +02:00
Michael Niedermayer
958ddef46c
Merge commit '01fdfa51aca9086e04bd354fe3f103a49352c085'
...
* commit '01fdfa51aca9086e04bd354fe3f103a49352c085':
xcbgrab: Accept geometries matching the screen size
See: 7971fa9ce0
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 20:10:51 +02:00
Andreas Cadhalpun
75fc81c831
diracdec: check that block length is valid
...
In init_planes p->xblen and p->yblen are set to:
p->xblen = s->plane[0].xblen >> s->chroma_x_shift;
p->yblen = s->plane[0].yblen >> s->chroma_y_shift;
These are later used as block_w and block_h arguments of
s->vdsp.emulated_edge_mc. If one of them is 0 it triggers an av_assert2
in emulated_edge_mc:
av_assert2(start_x < end_x && block_w > 0);
av_assert2(start_y < end_y && block_h > 0);
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 18:02:35 +02:00
Andreas Cadhalpun
4b13a542a2
dirac: use and forward error codes
...
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 17:50:09 +02:00
Michael Niedermayer
3c7d3d27be
tools/cws2fws: Use a similar implementation in dbgprintf() as in ff_dlog()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 16:11:50 +02:00
Michael Niedermayer
0a6b410edf
avcodec/vp8: Suppress empty body warnings
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 16:03:56 +02:00
Michael Niedermayer
e0010bb91f
mux: Do not leave stale side data pointers in ff_interleave_add_packet()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-05-06 15:01:35 +01:00
Vittorio Giovara
6c8c7c2462
dump: Print AVAudioServiceType side data
2015-05-06 14:57:46 +01:00
Michael Niedermayer
890b874889
avutil/internal: Suppress empty body warning from emms_c()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 15:56:32 +02:00
Vittorio Giovara
04070dbca0
libx265: Fix 'braces around scalar initializer' warning
...
x265 Reordered the x265_picture fields in the commit
51b1518de2 (diff-945b5354d8767dfac13334f2d22cf58fR107)
Now the first field is an integer and not an array.
2015-05-06 14:53:29 +01:00
Vittorio Giovara
d81fb63d87
fate: Add a PICT test
...
This stimulates the direct pixel mode in Quickdraw decoder.
2015-05-06 14:36:01 +01:00
Vittorio Giovara
7b734ee55d
lavf: Open PICT images with Quickdraw
...
Update the pictor test to use the pictor codec, as both formats share
the .pic file extension.
2015-05-06 14:27:34 +01:00
Vittorio Giovara
34efb8a169
quickdraw: Support direct pixel blocks
...
Data is stored in separated components so rework decode_rle() to support
stepping and offsets.
2015-05-06 14:27:34 +01:00
Vittorio Giovara
bb2cb0a66d
quickdraw: Switch to greedy parsing
...
Quickdraw packs data as a series of codes that the application is supposed
to handle, but it does not define any order in which they might appear.
Since it's unfeasible to support *all* opcodes defined by the spec,
only handle well-known blocks containing video data and ignore any unknown
or unsupported ones.
Move palette loading and rle decoding to separate functions to resue them
in other blocks and drop format initialization in init since it can
support more formats than pal8.
Validate width and height.
2015-05-06 14:26:30 +01:00
Vittorio Giovara
d00f1e0fc1
quickdraw: Convert to bytestream2
...
Add appropriate error messages and reduce r, g, b variables scope.
Drop the now redundant line checks in RLE decoding.
2015-05-06 14:26:30 +01:00
Nicolas George
7971fa9ce0
lavd/xcbgrab: fix comparison with screen size.
...
Signed-off-by: Nicolas George <george@nsup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 13:33:17 +02:00
Nicolas George
01fdfa51ac
xcbgrab: Accept geometries matching the screen size
...
Introduced in e8c4db0d4d
.
2015-05-06 12:25:32 +02:00
Dave Yeo
22a0387df2
OS/2:Makedef.cmd cleanup
...
Remove PROTMODE as it doesn't make sense for DLLs. Also fixes a warning with the OpenWatcom linker
Export symbols as names rather then ordinals for better compatibility for minor releases.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 11:37:26 +02:00
Michael Niedermayer
a2190de52d
avcodec/diracdec: Fix types and wraparounds in dirac_decode_picture_header()
...
previously various variables had a too small type to support the required 32bit unsigned
range allowed from the spec
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 02:44:21 +02:00
Andreas Cadhalpun
d93181ef3e
diracdec: check if reference could not be allocated
...
s->ref_pics[i] is later used as ref argument of interpolate_refplane,
where it is dereferenced.
If it is NULL, it causes a segmentation fault.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 01:54:51 +02:00
Andreas Cadhalpun
9e66b39aa8
diracdec: avoid overflow of bytes*8 in decode_lowdelay
...
If bytes is large enough, bytes*8 can overflow and become negative.
In that case 'bufsize -= bytes*8' causes bufsize to increase instead of
decrease.
This leads to a segmentation fault.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 00:28:52 +02:00
Michael Niedermayer
af6739d6da
Merge commit '3735b5c616770429572f86aabdaec39c6ebb8818'
...
* commit '3735b5c616770429572f86aabdaec39c6ebb8818':
Revert "lavfi: always check av_expr_parse_and_eval() return value"
See: 8c9a23833d
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-06 00:18:31 +02:00
Carl Eugen Hoyos
e31cdb5cc8
lavf/riff: Add MultiScope II fourcc MSC2 as MJPEG.
2015-05-05 23:52:38 +02:00
Michael Niedermayer
1ace789fb3
Merge commit '60f1cc4a1ffcbf24acbb543988ceeaec76b70818'
...
* commit '60f1cc4a1ffcbf24acbb543988ceeaec76b70818':
alsdec: only adapt order for positive max_order
See: 58d605ee9b
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 22:57:46 +02:00
Michael Niedermayer
ff849e11e3
Merge commit '94bb1ce882a12b6d7a1fa32715a68121b39ee838'
...
* commit '94bb1ce882a12b6d7a1fa32715a68121b39ee838':
alsdec: check sample pointer range in revert_channel_correlation
Conflicts:
libavcodec/alsdec.c
See: afc7748d1f
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 22:56:11 +02:00
Michael Niedermayer
9810aa3408
Merge commit '110f7f35fb615b97d983b1c6c6a714fddd28bcbe'
...
* commit '110f7f35fb615b97d983b1c6c6a714fddd28bcbe':
aacpsy: correct calculation of minath in psy_3gpp_init
See: ca9849eecd
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 22:45:51 +02:00
Michael Niedermayer
df95281618
Merge commit 'e191aaca44b986816695e3b7ecfae64697fd6631'
...
* commit 'e191aaca44b986816695e3b7ecfae64697fd6631':
alsdec: limit avctx->bits_per_raw_sample to 32
See: 4c2b88678b
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 22:33:21 +02:00
Michael Niedermayer
54d985db84
Merge commit '8fc8024ea56e814cd257d5fe27b21a865080782f'
...
* commit '8fc8024ea56e814cd257d5fe27b21a865080782f':
aasc: return correct buffer size from aasc_decode_frame
See: 0be54ad280
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 22:20:36 +02:00
Michael Niedermayer
5a455dd011
avcodec/diracdec: Move buf[] read after size check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 22:01:58 +02:00
Andreas Cadhalpun
984f50deb2
diracdec: prevent overflow in data_unit_size check
...
buf_idx + data_unit_size can overflow, causing the '> buf_size' check to
wrongly fail.
This causes a segmentation fault.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 21:52:31 +02:00
Ronald S. Bultje
ed68fccf76
vp9: error out if chroma subsampling changes between frames.
...
This can happen after an intra-only frame. For reference, see:
https://groups.google.com/a/webmproject.org/forum/#!msg/webm-discuss/zaoTxREZjq8/v5Enht87AhcJ
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 20:09:44 +02:00
Anton Khirnov
3735b5c616
Revert "lavfi: always check av_expr_parse_and_eval() return value"
...
This reverts commit 63be97ec40
.
All those calls were unchecked on purpose, as explained in the comments
in the code.
2015-05-05 16:27:24 +02:00
Andreas Cadhalpun
60f1cc4a1f
alsdec: only adapt order for positive max_order
...
For max_order = 0 the clipping range is invalid. (amin = 2, amax = 1)
CC: libav-stable@libav.org
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-05-05 16:10:52 +02:00