platform/upstream/libav.git
10 years agoavconv: print verbose per-stream transcoding statistics
Anton Khirnov [Mon, 17 Mar 2014 09:58:05 +0000 (10:58 +0100)]
avconv: print verbose per-stream transcoding statistics

10 years agoavconv: split printing the final statistics into a separate function
Anton Khirnov [Mon, 17 Mar 2014 09:09:09 +0000 (10:09 +0100)]
avconv: split printing the final statistics into a separate function

10 years agoavconv: rewrite output data size tracking
Anton Khirnov [Mon, 17 Mar 2014 09:03:47 +0000 (10:03 +0100)]
avconv: rewrite output data size tracking

Store a variable per OutputStream instead of globals for
audio/video/extradata. This makes the code simpler and cleaner and fixes
2pass with multiple output streams.

10 years agoavconv: explicitly report when the muxing overhead is unknown
Anton Khirnov [Mon, 17 Mar 2014 09:00:38 +0000 (10:00 +0100)]
avconv: explicitly report when the muxing overhead is unknown

10 years agoavconv: remove unused nb_frames_dup
Anton Khirnov [Mon, 17 Mar 2014 06:15:02 +0000 (07:15 +0100)]
avconv: remove unused nb_frames_dup

Frame duplication now happens in vf_fps.

10 years ago{v,a}f_showinfo: print frame side data
Anton Khirnov [Wed, 19 Feb 2014 17:48:15 +0000 (18:48 +0100)]
{v,a}f_showinfo: print frame side data

10 years agomp3dec: export replaygain tags from ID3v2
Anton Khirnov [Wed, 19 Feb 2014 20:02:12 +0000 (21:02 +0100)]
mp3dec: export replaygain tags from ID3v2

10 years agoaf_volume: support using replaygain frame side data
Anton Khirnov [Wed, 19 Feb 2014 20:01:37 +0000 (21:01 +0100)]
af_volume: support using replaygain frame side data

10 years agoframe: add a function for removing side data from a frame
Anton Khirnov [Wed, 19 Feb 2014 19:11:21 +0000 (20:11 +0100)]
frame: add a function for removing side data from a frame

10 years agoavconv: add stream-global side data to the first demuxed packet
Anton Khirnov [Wed, 19 Feb 2014 17:49:48 +0000 (18:49 +0100)]
avconv: add stream-global side data to the first demuxed packet

10 years agolibavcodec: when decoding, copy replaygain side data to decoded frames
Anton Khirnov [Wed, 19 Feb 2014 17:52:26 +0000 (18:52 +0100)]
libavcodec: when decoding, copy replaygain side data to decoded frames

10 years agoAdd replaygain side data type and code for parsing replaygain tags.
Anton Khirnov [Wed, 19 Feb 2014 14:29:06 +0000 (15:29 +0100)]
Add replaygain side data type and code for parsing replaygain tags.

10 years agolavf: add an AVStream field for exporting stream-global side data
Anton Khirnov [Wed, 19 Feb 2014 11:10:32 +0000 (12:10 +0100)]
lavf: add an AVStream field for exporting stream-global side data

10 years agolavc: give a typedeffed name to the AVPacket.side_data struct
Anton Khirnov [Wed, 19 Feb 2014 11:00:03 +0000 (12:00 +0100)]
lavc: give a typedeffed name to the AVPacket.side_data struct

10 years agoconfigure: Remove dcbzl check for e500v1 and e500v2 architectures
Peter Krefting [Thu, 6 Feb 2014 12:51:39 +0000 (12:51 +0000)]
configure: Remove dcbzl check for e500v1 and e500v2 architectures

The DCBZL instruction is not available for the e500v1 and e500v2
architectures, but may still be recognized by the toolchain, so we
need to explicitly disable it for these architectures.

References: PowerPC™ e500 Core Family Reference Manual (Freescale)

Found-by: Ståle Kristoffersen <staalebk@ifi.uio.no>
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years agompeg: K&R formatting cosmetics
Tanja Batchelor [Thu, 20 Mar 2014 01:02:42 +0000 (01:02 +0000)]
mpeg: K&R formatting cosmetics

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years agoh264: Split h264 slice decoding from nal decoding
Luca Barbato [Wed, 19 Mar 2014 15:52:47 +0000 (16:52 +0100)]
h264: Split h264 slice decoding from nal decoding

10 years agoh264: move macroblock decoding into its own file
Vittorio Giovara [Wed, 19 Mar 2014 15:47:12 +0000 (16:47 +0100)]
h264: move macroblock decoding into its own file

10 years agobuild: Sort h264 objects
Luca Barbato [Fri, 28 Feb 2014 15:37:46 +0000 (15:37 +0000)]
build: Sort h264 objects

10 years agobuild: h264 parser depends on full h264 decoder
Luca Barbato [Wed, 19 Mar 2014 15:41:08 +0000 (16:41 +0100)]
build: h264 parser depends on full h264 decoder

10 years agoRELEASE_NOTES: mention new filters
Vittorio Giovara [Sun, 23 Mar 2014 16:28:34 +0000 (17:28 +0100)]
RELEASE_NOTES: mention new filters

10 years agolavc: drop ff_pixfmt_list_420
Vittorio Giovara [Mon, 17 Mar 2014 17:03:47 +0000 (18:03 +0100)]
lavc: drop ff_pixfmt_list_420

10 years agochangelog: switch libx265 and compand entries
Vittorio Giovara [Fri, 21 Mar 2014 01:14:26 +0000 (02:14 +0100)]
changelog: switch libx265 and compand entries

10 years agoconfigure: Always use -DOPJ_STATIC when checking for openjpeg
Luca Barbato [Sat, 22 Mar 2014 19:16:44 +0000 (20:16 +0100)]
configure: Always use -DOPJ_STATIC when checking for openjpeg

Unbreaks windows systems not providing pkgconf files.

Reported-By: Rafaël Carré <funman@videolan.org>
10 years agomovenc: Allow override of major brand in ftyp atom
John Stebbins [Tue, 18 Mar 2014 13:11:00 +0000 (13:11 +0000)]
movenc: Allow override of major brand in ftyp atom

Signed-off-by: Tim Walker <tdskywalker@gmail.com>
10 years agolagarith: Fix typo in printf format string
Diego Biurrun [Sat, 22 Mar 2014 17:36:33 +0000 (18:36 +0100)]
lagarith: Fix typo in printf format string

libavcodec/lagarith.c:671:16: warning: '#' flag used with ‘%u’ gnu_printf format [-Wformat]

10 years agodsputil: Move thirdpel-related bits into their own context
Diego Biurrun [Sat, 21 Dec 2013 15:03:59 +0000 (16:03 +0100)]
dsputil: Move thirdpel-related bits into their own context

10 years agox86: dsputil: Move hpeldsp-related declarations to a separate header
Diego Biurrun [Wed, 29 Jan 2014 13:57:10 +0000 (14:57 +0100)]
x86: dsputil: Move hpeldsp-related declarations to a separate header

10 years agoppc: dsputil: Move hpeldsp-related declarations to a separate header
Diego Biurrun [Thu, 30 Jan 2014 00:06:28 +0000 (16:06 -0800)]
ppc: dsputil: Move hpeldsp-related declarations to a separate header

10 years agox86: dsputil: Move fpel declarations to a separate header
Diego Biurrun [Tue, 28 Jan 2014 17:19:21 +0000 (18:19 +0100)]
x86: dsputil: Move fpel declarations to a separate header

10 years agodsputil: Refactor duplicated CALL_2X_PIXELS / PIXELS16 macros
Diego Biurrun [Sat, 21 Dec 2013 16:33:17 +0000 (17:33 +0100)]
dsputil: Refactor duplicated CALL_2X_PIXELS / PIXELS16 macros

10 years agodsputil: Move ff_zigzag_direct and ff_crop_tab declarations to mathops.h
Diego Biurrun [Sun, 22 Dec 2013 15:25:24 +0000 (16:25 +0100)]
dsputil: Move ff_zigzag_direct and ff_crop_tab declarations to mathops.h

10 years agoimgconvert: Move ff_deinterlace_line_*_mmx declarations out of dsputil
Diego Biurrun [Mon, 27 Jan 2014 13:27:04 +0000 (14:27 +0100)]
imgconvert: Move ff_deinterlace_line_*_mmx declarations out of dsputil

10 years agox86: dsputil: Move inline assembly macros to a separate header
Diego Biurrun [Mon, 27 Jan 2014 14:06:54 +0000 (15:06 +0100)]
x86: dsputil: Move inline assembly macros to a separate header

10 years agonuv: Reuse the DSPContext from RTJpegContext
Diego Biurrun [Wed, 29 Jan 2014 17:04:55 +0000 (18:04 +0100)]
nuv: Reuse the DSPContext from RTJpegContext

There is no point in populating NuvContext with another DSPContext.

Also split static and dynamic initialization bits to avoid running the
static initialization parts over and over.

10 years agofloat_dsp: Replace arch optimization ifdefs by if cascade
Diego Biurrun [Thu, 20 Mar 2014 13:16:25 +0000 (14:16 +0100)]
float_dsp: Replace arch optimization ifdefs by if cascade

Arch-specific optimizations are handled this way everywhere else.

10 years agoavcodec: more correct printf specifiers
Diego Biurrun [Thu, 13 Mar 2014 11:13:33 +0000 (12:13 +0100)]
avcodec: more correct printf specifiers

10 years agoavfilter: more correct printf format specifiers
Diego Biurrun [Wed, 12 Mar 2014 12:47:33 +0000 (13:47 +0100)]
avfilter: more correct printf format specifiers

10 years agovaapi: switch ff_vaapi_get_surface_id from Picture to AVFrame
wm4 [Thu, 20 Mar 2014 07:53:18 +0000 (08:53 +0100)]
vaapi: switch ff_vaapi_get_surface_id from Picture to AVFrame

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agovdpau: switch ff_vdpau_get_surface_id from Picture to AVFrame
wm4 [Thu, 20 Mar 2014 07:53:17 +0000 (08:53 +0100)]
vdpau: switch ff_vdpau_get_surface_id from Picture to AVFrame

This gets rid of aliasing completely unrelated structs to Picture.

Fixes the remaining compilation warnings in the vdpau code.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agovdpau: don't assume Picture and H264Picture are the same
wm4 [Thu, 20 Mar 2014 07:53:16 +0000 (08:53 +0100)]
vdpau: don't assume Picture and H264Picture are the same

The code passed H264Picture* and Picture*, and assumed the
hwaccel_picture_private field was in the same place in both
structs. Somehow this happened to work in Libav, but broke in
FFmpeg (and probably subtly breaks in Libav too).

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agodsputil: Use correct type in me_cmp_func function pointer
Diego Biurrun [Fri, 20 Dec 2013 14:44:16 +0000 (15:44 +0100)]
dsputil: Use correct type in me_cmp_func function pointer

10 years agobuild: Group general components separate from de/encoders in arch Makefiles
Diego Biurrun [Fri, 20 Dec 2013 14:28:18 +0000 (15:28 +0100)]
build: Group general components separate from de/encoders in arch Makefiles

This is in line with how the top-level libavcodec Makefile is structured.

10 years agodsputil: Conditionally compile dsputil code on all architectures
Diego Biurrun [Fri, 20 Dec 2013 14:19:44 +0000 (15:19 +0100)]
dsputil: Conditionally compile dsputil code on all architectures

10 years agodsputil: Propagate bit depth information to all (sub)init functions
Diego Biurrun [Mon, 30 Dec 2013 11:09:03 +0000 (12:09 +0100)]
dsputil: Propagate bit depth information to all (sub)init functions

This avoids recalculating the value over and over again.

10 years agoarm: dsputil: K&R formatting cosmetics
Diego Biurrun [Thu, 30 Jan 2014 14:03:55 +0000 (06:03 -0800)]
arm: dsputil: K&R formatting cosmetics

10 years agoppc: dsputil: Drop trailing semicolon from macros
Diego Biurrun [Wed, 15 Jan 2014 18:54:17 +0000 (19:54 +0100)]
ppc: dsputil: Drop trailing semicolon from macros

This allows for a more natural macro usage.

10 years agoppc: dsputil: Merge some declarations and initializations
Diego Biurrun [Wed, 15 Jan 2014 13:36:28 +0000 (14:36 +0100)]
ppc: dsputil: Merge some declarations and initializations

10 years agoppc: dsputil: Simplify some ifdeffed function definitions
Diego Biurrun [Wed, 15 Jan 2014 11:17:20 +0000 (12:17 +0100)]
ppc: dsputil: Simplify some ifdeffed function definitions

10 years agoppc: dsputil: Drop some unnecessary parentheses
Diego Biurrun [Wed, 15 Jan 2014 11:14:20 +0000 (12:14 +0100)]
ppc: dsputil: Drop some unnecessary parentheses

10 years agoppc: dsputil: more K&R formatting cosmetics
Diego Biurrun [Wed, 15 Jan 2014 17:27:47 +0000 (18:27 +0100)]
ppc: dsputil: more K&R formatting cosmetics

10 years agoppc: dsputil: K&R formatting cosmetics
Diego Biurrun [Wed, 15 Jan 2014 11:07:55 +0000 (12:07 +0100)]
ppc: dsputil: K&R formatting cosmetics

10 years agoppc: dsputil: comment formatting and wording/grammar improvements
Diego Biurrun [Wed, 15 Jan 2014 10:24:43 +0000 (11:24 +0100)]
ppc: dsputil: comment formatting and wording/grammar improvements

10 years agohpeldsp_template: Merge some declarations and initializations
Diego Biurrun [Fri, 10 Jan 2014 13:41:47 +0000 (14:41 +0100)]
hpeldsp_template: Merge some declarations and initializations

10 years agohpeldsp_template: K&R formatting cosmetics
Diego Biurrun [Fri, 10 Jan 2014 13:26:35 +0000 (14:26 +0100)]
hpeldsp_template: K&R formatting cosmetics

10 years agohpel_template: Drop some unnecessary parentheses
Diego Biurrun [Fri, 10 Jan 2014 11:11:41 +0000 (12:11 +0100)]
hpel_template: Drop some unnecessary parentheses

10 years agohpel_template: K&R formatting cosmetics
Diego Biurrun [Fri, 10 Jan 2014 11:11:04 +0000 (12:11 +0100)]
hpel_template: K&R formatting cosmetics

10 years agofloat-dsp-test: do not use C99's predefined __func__
Janne Grunau [Tue, 18 Mar 2014 23:09:22 +0000 (00:09 +0100)]
float-dsp-test: do not use C99's predefined  __func__

It is not supported by all compilers on FATE. Fixes "some test were
skipped" errors.

10 years agofloat_dsp: Use LOCAL_ALIGNED for instead of DECLARE_ALIGNED within functions
Martin Storsjö [Wed, 19 Mar 2014 12:50:38 +0000 (14:50 +0200)]
float_dsp: Use LOCAL_ALIGNED for instead of DECLARE_ALIGNED within functions

This fixes fate-float_dsp-test on RVCT 4.0.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agoconfigure: ppc: Disable ldbrx instruction by default
Diego Biurrun [Fri, 14 Mar 2014 16:20:59 +0000 (17:20 +0100)]
configure: ppc: Disable ldbrx instruction by default

Only enable it for CPUs that support it.
This restores the behavior prior to 7a650caf.

10 years agomxf: Lowercase UL strings
Luca Barbato [Thu, 13 Mar 2014 12:34:16 +0000 (13:34 +0100)]
mxf: Lowercase UL strings

The specification uses lower case most of the time.

10 years agomxf: Verbose debug logging
Luca Barbato [Thu, 13 Mar 2014 12:38:06 +0000 (13:38 +0100)]
mxf: Verbose debug logging

Print the UL in code format and in the short format used by the
specification.

10 years agomxf: Override faulty PreviousPartition entries
Luca Barbato [Thu, 13 Mar 2014 15:12:05 +0000 (16:12 +0100)]
mxf: Override faulty PreviousPartition entries

Some files set the PreviousPartition field to point to its own offset.

If we are parsing forward the Previous partition is immediately known
and its value could be used, otherwise we can safely point to the
header.

Reported-By: Jean Baptiste Kempf <jb@videolan.org>
10 years agomxf: Add additional H264 PictureEssenceCoding
Luca Barbato [Mon, 3 Mar 2014 20:54:26 +0000 (21:54 +0100)]
mxf: Add additional H264 PictureEssenceCoding

Unbreak some MXF Proxy files.

10 years agoaarch64: float_dsp NEON assembler
Janne Grunau [Sun, 2 Mar 2014 21:54:34 +0000 (22:54 +0100)]
aarch64: float_dsp NEON assembler

Ported from arm NEON and added vector_dmul_scalar.

Functions between 1.5 and 5 times faster than the C implementations
using Apple's clang-503.0.19 on A7.

10 years agolibopenjpeg: Support rgba64 decoding
Vittorio Giovara [Sat, 15 Mar 2014 01:34:48 +0000 (02:34 +0100)]
libopenjpeg: Support rgba64 decoding

10 years agolibopenjpeg: Support rgba64 encoding
Carl Eugen Hoyos [Sat, 14 Jan 2012 01:34:16 +0000 (01:34 +0000)]
libopenjpeg: Support rgba64 encoding

10 years agolibopenjpeg: K&R formatting cosmetics
Vittorio Giovara [Fri, 14 Mar 2014 23:33:20 +0000 (00:33 +0100)]
libopenjpeg: K&R formatting cosmetics

10 years agofloat_dsp: add test program and use it as fate test
Janne Grunau [Mon, 3 Mar 2014 18:15:35 +0000 (19:15 +0100)]
float_dsp: add test program and use it as fate test

10 years agosbrdsp: move #if to disable all educational code
Janne Grunau [Tue, 18 Mar 2014 11:33:13 +0000 (12:33 +0100)]
sbrdsp: move #if to disable all educational code

Avoids a warning of the unused function 'autocorrelate'.

10 years agolavc: er: remove unused variable size
Janne Grunau [Tue, 18 Mar 2014 11:09:07 +0000 (12:09 +0100)]
lavc: er: remove unused variable size

The code using it was removed in d66e305bd1b.

10 years agosvq3: directly set pix_fmt and color_range
Vittorio Giovara [Mon, 17 Mar 2014 17:53:14 +0000 (18:53 +0100)]
svq3: directly set pix_fmt and color_range

10 years agompegts: Forward error codes in various functions
Keiji Costantini [Mon, 17 Mar 2014 17:03:08 +0000 (17:03 +0000)]
mpegts: Forward error codes in various functions

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years agompegts: K&R formatting cosmetics
Keiji Costantini [Mon, 17 Mar 2014 17:03:07 +0000 (17:03 +0000)]
mpegts: K&R formatting cosmetics

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years agolibx264: check color_range
Vittorio Giovara [Wed, 12 Mar 2014 11:05:42 +0000 (12:05 +0100)]
libx264: check color_range

10 years agoljpeg: check color_range
Vittorio Giovara [Wed, 12 Mar 2014 13:31:51 +0000 (14:31 +0100)]
ljpeg: check color_range

10 years agomdec: set color_range
Vittorio Giovara [Wed, 12 Mar 2014 13:35:21 +0000 (14:35 +0100)]
mdec: set color_range

10 years agomjpeg: set color_range
Vittorio Giovara [Wed, 12 Mar 2014 09:53:21 +0000 (10:53 +0100)]
mjpeg: set color_range

10 years agofraps: set color_range
Vittorio Giovara [Wed, 12 Mar 2014 10:52:40 +0000 (11:52 +0100)]
fraps: set color_range

10 years agotiff: Support rgba encoding
Carl Eugen Hoyos [Fri, 2 Dec 2011 03:23:07 +0000 (03:23 +0000)]
tiff: Support rgba encoding

10 years agoimg2: add j2c file extension
Jean First [Sun, 22 Jan 2012 00:11:42 +0000 (00:11 +0000)]
img2: add j2c file extension

Some applications use the j2c extension for jpeg2000 codestream files.

10 years agoraw, nut: Support rgba64 encoding
Carl Eugen Hoyos [Thu, 9 Feb 2012 23:25:46 +0000 (23:25 +0000)]
raw, nut: Support rgba64 encoding

10 years agopng: Support rgb48 and rgba64 encoding
Carl Eugen Hoyos [Sun, 15 Jan 2012 22:04:25 +0000 (22:04 +0000)]
png: Support rgb48 and rgba64 encoding

10 years agopng: K&R formatting cosmetics
Vittorio Giovara [Fri, 14 Mar 2014 17:32:00 +0000 (18:32 +0100)]
png: K&R formatting cosmetics

10 years agocodec_desc: update dvaudio tag
Vittorio Giovara [Fri, 14 Mar 2014 18:02:35 +0000 (19:02 +0100)]
codec_desc: update dvaudio tag

10 years agoisom: fix C99-style declaration
Michael Niedermayer [Sun, 16 Mar 2014 12:22:26 +0000 (12:22 +0000)]
isom: fix C99-style declaration

10 years agoRGBA64 pixel formats
Jean First [Fri, 23 Sep 2011 18:26:20 +0000 (20:26 +0200)]
RGBA64 pixel formats

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years agoh264 does not depend on mpegvideo any more
Vittorio Giovara [Wed, 12 Mar 2014 09:07:46 +0000 (10:07 +0100)]
h264 does not depend on mpegvideo any more

10 years agompegvideo: remove h264-only fields
Vittorio Giovara [Fri, 28 Feb 2014 09:32:46 +0000 (10:32 +0100)]
mpegvideo: remove h264-only fields

10 years agompegvideo: move ff_draw_horiz_band() to mpegutils.c
Vittorio Giovara [Wed, 12 Mar 2014 09:18:54 +0000 (10:18 +0100)]
mpegvideo: move ff_draw_horiz_band() to mpegutils.c

Drop the mpegvideo dependency for svq3 in configure.

10 years agompegvideo: move mpegvideo formats-related defines to mpegutils.h
Vittorio Giovara [Fri, 28 Feb 2014 12:40:54 +0000 (13:40 +0100)]
mpegvideo: move mpegvideo formats-related defines to mpegutils.h

10 years agoh264: Remove MotionEstContext and move the relevant fields to H264Context
Vittorio Giovara [Thu, 27 Feb 2014 17:43:28 +0000 (18:43 +0100)]
h264: Remove MotionEstContext and move the relevant fields to H264Context

Unused buffers scratchpad and temp have been dropped too.

10 years agoh264: Replace mpegvideo-specific MAX_THREADS by private define
Vittorio Giovara [Fri, 28 Feb 2014 12:21:59 +0000 (13:21 +0100)]
h264: Replace mpegvideo-specific MAX_THREADS by private define

10 years agoh264: Replace mpegvideo-specific MAX_PICTURE_COUNT by private define
Vittorio Giovara [Thu, 27 Feb 2014 16:07:30 +0000 (17:07 +0100)]
h264: Replace mpegvideo-specific MAX_PICTURE_COUNT by private define

10 years agoh264: move relevant fields from Picture to H264Picture
Vittorio Giovara [Wed, 12 Mar 2014 08:13:07 +0000 (09:13 +0100)]
h264: move relevant fields from Picture to H264Picture

10 years agoer: move relevant fields from Picture to ERPicture
Vittorio Giovara [Fri, 28 Feb 2014 10:31:56 +0000 (11:31 +0100)]
er: move relevant fields from Picture to ERPicture

This is done to disentangle ER from mpegvideo. In order to use a
classic Picture, callers can use ff_mpeg_set_erpic() or use a custom function
to set the fields. Please note that buffers need to be allocated before
calling ff_er_frame_end().

10 years agoh264: directly use frames in ff_h264_draw_horiz_band()
Vittorio Giovara [Tue, 4 Mar 2014 14:30:19 +0000 (15:30 +0100)]
h264: directly use frames in ff_h264_draw_horiz_band()

10 years agompegvideo: directly use frames in ff_draw_horiz_band()
Vittorio Giovara [Tue, 4 Mar 2014 11:02:27 +0000 (12:02 +0100)]
mpegvideo: directly use frames in ff_draw_horiz_band()

10 years agoaacdec: Lower the number of frames required to detect ADTS
Martin Storsjö [Tue, 11 Mar 2014 13:52:46 +0000 (15:52 +0200)]
aacdec: Lower the number of frames required to detect ADTS

For live audio streams, requiring 500 frames for a stream to
be detected is a bit overkill.

This allows live ADTS streams that don't start nicely at
a frame boundary to start up more quickly, e.g.
http://mp3.streampower.be/radio1.aac.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agoaacdec: Don't count probed ADTS frames if there are false positives
Martin Storsjö [Tue, 11 Mar 2014 13:42:44 +0000 (15:42 +0200)]
aacdec: Don't count probed ADTS frames if there are false positives

If a portion of the probe buffer seem to resemble ADTS frames,
but some data at the end is a mismatch, disregard the whole
probing attempt. If it actually is ADTS data, there shouldn't be
any mismatches within the sequential frame data.

Signed-off-by: Martin Storsjö <martin@martin.st>