ffmpeg.git
7 years agoswr: use av_opt_set_int() instead of manual assignments in swr_alloc_set_opts().
Clément Bœsch [Thu, 17 Nov 2011 10:36:14 +0000 (11:36 +0100)]
swr: use av_opt_set_int() instead of manual assignments in swr_alloc_set_opts().

7 years agoswr: surround mixing is obviously used, fix comment.
Clément Bœsch [Thu, 17 Nov 2011 10:40:23 +0000 (11:40 +0100)]
swr: surround mixing is obviously used, fix comment.

7 years agoswr: doxycomment public API.
Clément Bœsch [Thu, 17 Nov 2011 10:20:29 +0000 (11:20 +0100)]
swr: doxycomment public API.

7 years agoswr: correctly raise rematrix AVERROR.
Clément Bœsch [Thu, 17 Nov 2011 10:20:50 +0000 (11:20 +0100)]
swr: correctly raise rematrix AVERROR.

7 years agolibopenjpeg: rename decoder source file.
Michael Bradshaw [Thu, 17 Nov 2011 14:39:16 +0000 (15:39 +0100)]
libopenjpeg: rename decoder source file.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoDo not try to read total disc or track number if data atom is too short.
Carl Eugen Hoyos [Thu, 17 Nov 2011 13:12:34 +0000 (14:12 +0100)]
Do not try to read total disc or track number if data atom is too short.

Fixes ticket #659.

7 years agoswr: fix "control reaches end of non-void function" compiler warning.
Clément Bœsch [Wed, 16 Nov 2011 19:39:16 +0000 (20:39 +0100)]
swr: fix "control reaches end of non-void function" compiler warning.

7 years agoswr: bump minor version.
Clément Bœsch [Wed, 16 Nov 2011 19:31:49 +0000 (20:31 +0100)]
swr: bump minor version.

7 years agoswr: use int16_t instead of short for resampling.
Clément Bœsch [Wed, 16 Nov 2011 20:31:44 +0000 (21:31 +0100)]
swr: use int16_t instead of short for resampling.

7 years agoswr: start doxycommenting the API.
Clément Bœsch [Wed, 16 Nov 2011 19:28:10 +0000 (20:28 +0100)]
swr: start doxycommenting the API.

7 years agoswr: make swr_* functions match the prototypes.
Clément Bœsch [Wed, 16 Nov 2011 18:50:33 +0000 (19:50 +0100)]
swr: make swr_* functions match the prototypes.

7 years agoswr: rename swr_alloc2() to swr_alloc_set_opts().
Clément Bœsch [Wed, 16 Nov 2011 18:43:58 +0000 (19:43 +0100)]
swr: rename swr_alloc2() to swr_alloc_set_opts().

7 years agoswr: use "swri_" prefix instead of "swr_" for the private API.
Clément Bœsch [Wed, 16 Nov 2011 07:12:48 +0000 (08:12 +0100)]
swr: use "swri_" prefix instead of "swr_" for the private API.

7 years agoswr: drop 'AV' prefix from ResampleContext.
Clément Bœsch [Wed, 16 Nov 2011 07:06:42 +0000 (08:06 +0100)]
swr: drop 'AV' prefix from ResampleContext.

This type/struct is not part of the public API.

7 years agoswr: make audio convert code explicitely private.
Clément Bœsch [Wed, 16 Nov 2011 07:00:31 +0000 (08:00 +0100)]
swr: make audio convert code explicitely private.

Only what's declared in libswresample/swresample.h is public.

7 years agoswr: fix #endif comment ref.
Clément Bœsch [Wed, 16 Nov 2011 06:58:39 +0000 (07:58 +0100)]
swr: fix #endif comment ref.

7 years agoh264: fix cur_chroma_format_idc with slice multithreading.
Michael Niedermayer [Thu, 17 Nov 2011 04:42:18 +0000 (05:42 +0100)]
h264: fix cur_chroma_format_idc with slice multithreading.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomjpeg: support mpo
Michael Niedermayer [Thu, 17 Nov 2011 02:13:50 +0000 (03:13 +0100)]
mjpeg: support mpo
Fixes stereoscopic_photo.mpo

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 17 Nov 2011 01:44:33 +0000 (02:44 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mpegaudiodec: Don't use a nonexistent log context for av_dlog
  avformat: Accept the ISO8601 separate format as input, too
  avformat: Interpret times in ff_iso8601_to_unix_time as UTC
  avutil: Add av_timegm as a public function
  cinepak: Add another special case so that it can handle the following file:
  lagarith: add some RGBA decoding support
  lagarith: Add correct line prediction for RGB

Conflicts:
doc/APIchanges
libavcodec/cinepak.c
libavutil/avutil.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh264: migrate poc gap based has_b_frames calculation into new has_b_frame calculation...
Michael Niedermayer [Thu, 17 Nov 2011 00:08:17 +0000 (01:08 +0100)]
h264: migrate poc gap based has_b_frames calculation into new has_b_frame calculation code.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh264: minor simplification
Michael Niedermayer [Wed, 16 Nov 2011 23:36:38 +0000 (00:36 +0100)]
h264: minor simplification

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh264: rewrite has_b_frame calculation code,
Michael Niedermayer [Wed, 16 Nov 2011 22:58:06 +0000 (23:58 +0100)]
h264: rewrite has_b_frame calculation code,
the previous implementation was too buggy.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh264: reset last_pocs on IDRs
Michael Niedermayer [Wed, 16 Nov 2011 22:57:17 +0000 (23:57 +0100)]
h264: reset last_pocs on IDRs

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocinepak: remove redundant coordinate checks
Michael Niedermayer [Wed, 16 Nov 2011 16:25:39 +0000 (17:25 +0100)]
cinepak: remove redundant coordinate checks

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocinepak: check strip_size
Michael Niedermayer [Wed, 16 Nov 2011 16:21:42 +0000 (17:21 +0100)]
cinepak: check strip_size

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocinepak, simplify, use AV_RB24()
Michael Niedermayer [Wed, 16 Nov 2011 16:16:38 +0000 (17:16 +0100)]
cinepak, simplify, use AV_RB24()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocinepak: simplify, use FFMIN()
Michael Niedermayer [Wed, 16 Nov 2011 16:15:15 +0000 (17:15 +0100)]
cinepak: simplify, use FFMIN()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffprobe: small align cosmetic in json writer struct init.
Clément Bœsch [Wed, 16 Nov 2011 18:37:11 +0000 (19:37 +0100)]
ffprobe: small align cosmetic in json writer struct init.

7 years agoffprobe: make Writers constant.
Clément Bœsch [Wed, 16 Nov 2011 18:35:23 +0000 (19:35 +0100)]
ffprobe: make Writers constant.

7 years agoffprobe: apply misc cosmetics to compact writer definition
Stefano Sabatini [Wed, 16 Nov 2011 17:39:27 +0000 (18:39 +0100)]
ffprobe: apply misc cosmetics to compact writer definition

7 years agoffprobe: add csv writer
Stefano Sabatini [Tue, 15 Nov 2011 23:41:55 +0000 (00:41 +0100)]
ffprobe: add csv writer

7 years agocinepak: Fix division by zero, ask for sample if encoded_buf_size is 0
Michael Niedermayer [Wed, 16 Nov 2011 14:10:26 +0000 (15:10 +0100)]
cinepak: Fix division by zero, ask for sample if encoded_buf_size is 0

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoAdd another special case to the Cinepak video decoder so that it can handle the follo...
Mike Melanson [Wed, 16 Nov 2011 07:06:48 +0000 (23:06 -0800)]
Add another special case to the Cinepak video decoder so that it can handle the following file:

http://samples.mplayerhq.hu/V-codecs/CVID/bad_cinepak_frame_size.mov

This fix works around another work around which handles a different type
of odd Cinepak data.

Thanks to Matthew Hoops (clone2727 - gmail.com) for the sample and fix.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomandelbrot: make mincol description and code match.
Michael Niedermayer [Wed, 16 Nov 2011 03:22:36 +0000 (04:22 +0100)]
mandelbrot: make mincol description and code match.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompegaudiodec: Don't use a nonexistent log context for av_dlog
Martin Storsjö [Wed, 16 Nov 2011 09:33:53 +0000 (11:33 +0200)]
mpegaudiodec: Don't use a nonexistent log context for av_dlog

This fixes builds with DEBUG defined, broken since
1158745a2d12966c58e83b66243a42f20190812e.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoavformat: Accept the ISO8601 separate format as input, too
Martin Storsjö [Mon, 7 Nov 2011 22:12:09 +0000 (00:12 +0200)]
avformat: Accept the ISO8601 separate format as input, too

This makes the function accept the format of creation_time
as output by demuxers (e.g. the mov demuxer), making the
creation timestamp stay intact if transcoding.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoavformat: Interpret times in ff_iso8601_to_unix_time as UTC
Martin Storsjö [Mon, 7 Nov 2011 21:32:21 +0000 (23:32 +0200)]
avformat: Interpret times in ff_iso8601_to_unix_time as UTC

This function is used in muxers for parsing the 'creation_time'
metadata key, for converting it to a time value.

This makes it match the behaviour of the exported 'creation_time'
metadata from demuxers, where it is in UTC, too.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoavutil: Add av_timegm as a public function
Martin Storsjö [Mon, 7 Nov 2011 21:20:31 +0000 (23:20 +0200)]
avutil: Add av_timegm as a public function

This is useful, since the normal timegm function isn't a standard
function (requiring _BSD_SOURCE or _SVID_SOURCE on glibc to
be visible, and not available on e.g. windows). The widely available
function mktime uses the local time zone, which requires ugly
workarounds to handle UTC time.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agolavfi: fix misc typo in avfilter.h header.
Clément Bœsch [Tue, 15 Nov 2011 16:56:01 +0000 (17:56 +0100)]
lavfi: fix misc typo in avfilter.h header.

7 years agocinepak: Add another special case so that it can handle the following file:
Mike Melanson [Wed, 16 Nov 2011 07:06:48 +0000 (23:06 -0800)]
cinepak: Add another special case so that it can handle the following file:

http://samples.mplayerhq.hu/V-codecs/CVID/bad_cinepak_frame_size.mov

This fix works around another work around which handles a different type
of odd Cinepak data.

Thanks to Matthew Hoops (clone2727 - gmail.com) for the sample and fix.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agolagarith: add some RGBA decoding support
Kostya Shishkov [Sat, 12 Nov 2011 19:54:27 +0000 (20:54 +0100)]
lagarith: add some RGBA decoding support

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agolagarith: Add correct line prediction for RGB
Nathan Caldwell [Wed, 16 Nov 2011 07:45:00 +0000 (00:45 -0700)]
lagarith: Add correct line prediction for RGB

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agocleanup: remove various double end ';' all over the code.
Clément Bœsch [Wed, 16 Nov 2011 06:48:23 +0000 (07:48 +0100)]
cleanup: remove various double end ';' all over the code.

7 years agoswr: replace deprecated av_set_int() with av_opt_set_int().
Clément Bœsch [Tue, 15 Nov 2011 23:33:19 +0000 (00:33 +0100)]
swr: replace deprecated av_set_int() with av_opt_set_int().

7 years agoswr: replace deprecated av_opt_set_defaults2() with av_opt_set_defaults().
Clément Bœsch [Tue, 15 Nov 2011 23:30:52 +0000 (00:30 +0100)]
swr: replace deprecated av_opt_set_defaults2() with av_opt_set_defaults().

7 years agoswr: replace deprecated av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().
Clément Bœsch [Tue, 15 Nov 2011 23:23:22 +0000 (00:23 +0100)]
swr: replace deprecated av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().

7 years agoswr: use designated initializers for the class.
Clément Bœsch [Tue, 15 Nov 2011 23:20:13 +0000 (00:20 +0100)]
swr: use designated initializers for the class.

7 years agoswr: rename resample2 to resample.
Clément Bœsch [Tue, 15 Nov 2011 21:17:58 +0000 (22:17 +0100)]
swr: rename resample2 to resample.

7 years agoswr: move format convert code to dedicated functions.
Clément Bœsch [Tue, 15 Nov 2011 10:06:25 +0000 (11:06 +0100)]
swr: move format convert code to dedicated functions.

This should easier common case optimizations.

7 years agowma: Check channel number before init.
Michael Niedermayer [Wed, 16 Nov 2011 02:31:25 +0000 (03:31 +0100)]
wma: Check channel number before init.
Fixes Ticket240

Based on patch by ami_stuff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 16 Nov 2011 01:23:10 +0000 (02:23 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  lavf: fix multiplication overflow in avformat_find_stream_info()
  cosmetics: indentation
  mpegaudiodec: init static tables in AVCodec.init_static_data()

Conflicts:
libavcodec/mpegaudiodec.c
libavformat/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavf: if timestamps are invalid (pts=dts) only drop dts.
Michael Niedermayer [Wed, 16 Nov 2011 00:19:35 +0000 (01:19 +0100)]
lavf: if timestamps are invalid (pts=dts) only drop dts.
Because if we drop both we have no timestamps at all for some files.
Fixes Ticket344

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavf: fix multiplication overflow in avformat_find_stream_info()
Mans Rullgard [Tue, 15 Nov 2011 22:33:49 +0000 (22:33 +0000)]
lavf: fix multiplication overflow in avformat_find_stream_info()

Converting to double before the multiplication rather than after
avoids an integer overflow in some cases.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoffprobe: add compact writer
Stefano Sabatini [Sun, 2 Oct 2011 09:25:44 +0000 (11:25 +0200)]
ffprobe: add compact writer

7 years agoffprobe: force display of missing fields, depending on writer.flags
Stefano Sabatini [Sun, 23 Oct 2011 23:23:22 +0000 (01:23 +0200)]
ffprobe: force display of missing fields, depending on writer.flags

Add flags field to Writer, and define the
WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS flag which forces the display of
optional fields, for example non-available or invalid fields.

Also set the flag in the default writer.

This change is required as for some writers it is preferable to show all
fields (for example for avoiding a variable number of fields in CSV
output), while for other formats (e.g. JSON, XML) it is better to leave
invalid/unavailable fields unspecified and thus simplify the parsing
stage on the deserializer side.

7 years agodiracdec: obmc accesses arent aligned for all files.
Michael Niedermayer [Tue, 15 Nov 2011 22:37:40 +0000 (23:37 +0100)]
diracdec: obmc accesses arent aligned for all files.
Thus use unaligned accesses.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoopt: Fix *av_opt_find2(NULL)
Michael Niedermayer [Tue, 15 Nov 2011 21:43:21 +0000 (22:43 +0100)]
opt: Fix *av_opt_find2(NULL)
Fixes Ticket650

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomandelbrot: add dither to convergence & mincol colorings.
Michael Niedermayer [Tue, 15 Nov 2011 20:33:11 +0000 (21:33 +0100)]
mandelbrot: add dither to convergence & mincol colorings.
This avoids banding artifacts.
Note, low end TFTs still show some banding.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomandelbrot: make mincol the default.
Michael Niedermayer [Tue, 15 Nov 2011 18:59:29 +0000 (19:59 +0100)]
mandelbrot: make mincol the default.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomandelbrot: add mincol inner coloring method.
Michael Niedermayer [Tue, 15 Nov 2011 18:58:58 +0000 (19:58 +0100)]
mandelbrot: add mincol inner coloring method.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoFix seeking when using Apple HTTP Live Streaming
Panagiotis H.M. Issaris [Tue, 15 Nov 2011 17:35:03 +0000 (18:35 +0100)]
Fix seeking when using Apple HTTP Live Streaming

The Apple HTTP Live Streaming demuxer's implementation of seeking searches for
the MPEG TS segment which contains the requested timestamp.  In its current
implementation it assumes that the first segment will start from 0.

But, MPEG TS streams do not necessarily start with timestamp (near) 0, causing
seeking to fail for those streams.

This also occurs when using live streaming of HTTP Live Streams. In this case
sliding playlists may be used, which means that in that case only the last x
encoded segments are stored, the earlier segments get deleted from disk and
removed from the playlist. Because of this, when starting playback of a stream
in the middle of such a broadcast, the initial segment fetched after parsing
the m3u8 playlist will not start from timestamp (near) 0, causing (the
admittedly limited live) seeking to fail.

This patch changes this demuxers seeking implementation to use the initial DTS
as an offset for searching the segments containing the requested timestamp.

7 years agocosmetics: indentation
Justin Ruggles [Thu, 3 Nov 2011 19:53:43 +0000 (15:53 -0400)]
cosmetics: indentation

7 years agompegaudiodec: init static tables in AVCodec.init_static_data()
Justin Ruggles [Thu, 3 Nov 2011 18:59:37 +0000 (14:59 -0400)]
mpegaudiodec: init static tables in AVCodec.init_static_data()

7 years agoUpdate my GnuPG fingerprint.
Panagiotis H.M. Issaris [Tue, 15 Nov 2011 16:57:10 +0000 (17:57 +0100)]
Update my GnuPG fingerprint.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomandelbrot: add inner drawing method to show converence time
Michael Niedermayer [Tue, 15 Nov 2011 16:25:16 +0000 (17:25 +0100)]
mandelbrot: add inner drawing method to show converence time

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomandelbrot: add "fractal" to the description
Michael Niedermayer [Tue, 15 Nov 2011 16:14:15 +0000 (17:14 +0100)]
mandelbrot: add "fractal" to the description

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomandelbrot: Fix "warning: passing argument 2 of ‘draw_mandelbrot’ from incompatible...
Michael Niedermayer [Tue, 15 Nov 2011 16:12:52 +0000 (17:12 +0100)]
mandelbrot: Fix "warning: passing argument 2 of ‘draw_mandelbrot’ from incompatible pointer type"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoasfdec: mark only ts1 as av_unused
Michael Niedermayer [Tue, 15 Nov 2011 12:06:36 +0000 (13:06 +0100)]
asfdec: mark only ts1 as av_unused

Idea-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompegts: Completely ignore H222 spec and consider reserved adaption
Michael Niedermayer [Tue, 15 Nov 2011 03:15:34 +0000 (04:15 +0100)]
mpegts: Completely ignore H222 spec and consider reserved adaption
 fields to be perfectly fine mpeg TS.
Fixes Ticket580

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 15 Nov 2011 02:13:42 +0000 (03:13 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  binkvideo: simplify and remove invalid shifts
  pulse: compute frame_duration once and fix it
  lavf: simplify format_child_class_next()
  hwaccel: OS X Video Decoder Acceleration (VDA) support.
  doc: add support for an optional navigation bar in texi2html pages

Conflicts:
configure
libavcodec/Makefile
libavcodec/allcodecs.c
libavcodec/vda.c
libavcodec/vda.h
libavcodec/vda_h264.c
libavcodec/vda_internal.h
libavcodec/version.h
libavformat/options.c
libavutil/avutil.h
libavutil/pixfmt.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompeg4videodec: dont treat empty frames as errors for QMP4, it seems thats normal.
Michael Niedermayer [Tue, 15 Nov 2011 01:22:23 +0000 (02:22 +0100)]
mpeg4videodec: dont treat empty frames as errors for QMP4, it seems thats normal.
Fixes remaining complaints in Ticket560 possibly.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompegaudio: prettify avpriv_mpa_bitrate_tab
Michael Niedermayer [Tue, 15 Nov 2011 00:59:59 +0000 (01:59 +0100)]
mpegaudio: prettify avpriv_mpa_bitrate_tab

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoasfdec: avoid unused variable warning.
Michael Niedermayer [Tue, 15 Nov 2011 00:58:13 +0000 (01:58 +0100)]
asfdec: avoid unused variable warning.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoasfdec: use dts for seeking.
Michael Niedermayer [Tue, 15 Nov 2011 00:08:04 +0000 (01:08 +0100)]
asfdec: use dts for seeking.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoasfdec: restore timestamp reading code
Michael Niedermayer [Mon, 14 Nov 2011 23:57:08 +0000 (00:57 +0100)]
asfdec: restore timestamp reading code
This reverts part of:
commit e65ab9d94f1c8d8893e32d90467d9525625d306a
Author: Mans Rullgard <mans@mansr.com>
Date:   Wed Jun 1 17:26:27 2011 +0100

    Remove unused variables

7 years agovda: use K&R style.
Clément Bœsch [Mon, 14 Nov 2011 23:17:31 +0000 (00:17 +0100)]
vda: use K&R style.

7 years agoamovie: avoid crash in amovie_request_frame() if no samplesref is available
Stefano Sabatini [Sun, 13 Nov 2011 22:51:06 +0000 (23:51 +0100)]
amovie: avoid crash in amovie_request_frame() if no samplesref is available

The crash occurrs when a frame is successfully decoded, but no decoded
data is immediately available (typically happens with ogg/vorbis).

7 years agovda: get correctly the frame from h264 context.
Sebastien Zwickert [Mon, 14 Nov 2011 21:03:38 +0000 (22:03 +0100)]
vda: get correctly the frame from h264 context.

7 years agovda: check allocation result.
Sebastien Zwickert [Mon, 14 Nov 2011 20:56:16 +0000 (21:56 +0100)]
vda: check allocation result.

7 years agovda: removes useless casts.
Sebastien Zwickert [Mon, 14 Nov 2011 20:35:18 +0000 (21:35 +0100)]
vda: removes useless casts.

7 years agovda: cosmetic.
Sebastien Zwickert [Mon, 14 Nov 2011 20:32:10 +0000 (21:32 +0100)]
vda: cosmetic.

7 years agoconfigure: add vda dependencies.
Sebastien Zwickert [Mon, 14 Nov 2011 20:22:14 +0000 (21:22 +0100)]
configure: add vda dependencies.

7 years agovda: reordering headers inclusion.
Sebastien Zwickert [Mon, 14 Nov 2011 20:20:04 +0000 (21:20 +0100)]
vda: reordering headers inclusion.

7 years agovda: undef Picture.
Sebastien Zwickert [Mon, 14 Nov 2011 20:01:21 +0000 (21:01 +0100)]
vda: undef Picture.

7 years agoswr: set the default used_ch_count value to zero.
Clément Bœsch [Mon, 14 Nov 2011 20:33:42 +0000 (21:33 +0100)]
swr: set the default used_ch_count value to zero.

This allows an appropriate behaviour when it is not specified (fallback
to the number of input channels).

Fixes Ticket523

7 years agomp3enc: Try to use a matching bitrate in the xing header.
Michael Niedermayer [Mon, 14 Nov 2011 19:57:30 +0000 (20:57 +0100)]
mp3enc: Try to use a matching bitrate in the xing header.
Might Fix Ticket431

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomp3enc: simplify mp3_write_xing()
Michael Niedermayer [Mon, 14 Nov 2011 19:45:02 +0000 (20:45 +0100)]
mp3enc: simplify mp3_write_xing()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovble: use dsp.add_hfyu_median_prediction() this allows asm optimizations to be used.
Michael Niedermayer [Mon, 14 Nov 2011 16:24:59 +0000 (17:24 +0100)]
vble: use dsp.add_hfyu_median_prediction() this allows asm optimizations to be used.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovble: move 2nd pass bitreading into vble_restore_plane()
Michael Niedermayer [Mon, 14 Nov 2011 16:19:06 +0000 (17:19 +0100)]
vble: move 2nd pass bitreading into vble_restore_plane()
this improves data cache hits and speeds up grayscale only decoding

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodiracdec: fix empty data units.
Michael Niedermayer [Mon, 14 Nov 2011 17:01:13 +0000 (18:01 +0100)]
diracdec: fix empty data units.
Fixed Ticket636

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agobinkvideo: simplify and remove invalid shifts
Mans Rullgard [Sun, 13 Nov 2011 15:25:53 +0000 (15:25 +0000)]
binkvideo: simplify and remove invalid shifts

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agopulse: compute frame_duration once and fix it
Luca Barbato [Mon, 14 Nov 2011 14:53:59 +0000 (15:53 +0100)]
pulse: compute frame_duration once and fix it

The frame duration was calculated without taking in account the
bytes per sample.

Thanks to Lorenzo Pistone <blaffablaffa@gmail.com> for pointing
the issue and providing an initial fix.

7 years agolavf: simplify format_child_class_next()
Luca Barbato [Mon, 14 Nov 2011 11:24:21 +0000 (12:24 +0100)]
lavf: simplify format_child_class_next()

And fix the error introduced when adding private option to avio.
See 32caa7b13cecca59213c73fa94dd683c2b003bfd

7 years agohwaccel: OS X Video Decoder Acceleration (VDA) support.
Sebastien Zwickert [Fri, 11 Nov 2011 14:48:21 +0000 (15:48 +0100)]
hwaccel: OS X Video Decoder Acceleration (VDA) support.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agoRename remaining get_le32 to avio_rl32.
Clément Bœsch [Mon, 14 Nov 2011 00:37:06 +0000 (01:37 +0100)]
Rename remaining get_le32 to avio_rl32.

7 years agoRename remaining get_le16 to avio_rl16.
Clément Bœsch [Mon, 14 Nov 2011 00:36:32 +0000 (01:36 +0100)]
Rename remaining get_le16 to avio_rl16.

7 years agoUse AVIOContext.seekable instead of deprecated url_is_streamed.
Clément Bœsch [Mon, 14 Nov 2011 00:33:28 +0000 (01:33 +0100)]
Use AVIOContext.seekable instead of deprecated url_is_streamed.

7 years agoRename remaining url_fskip to avio_skip.
Clément Bœsch [Mon, 14 Nov 2011 00:28:05 +0000 (01:28 +0100)]
Rename remaining url_fskip to avio_skip.

7 years agoRename remaining av_metadata_set2 to av_dict_set.
Clément Bœsch [Mon, 14 Nov 2011 00:25:52 +0000 (01:25 +0100)]
Rename remaining av_metadata_set2 to av_dict_set.

7 years agoRename remaining url_ftell to avio_tell.
Clément Bœsch [Mon, 14 Nov 2011 00:23:00 +0000 (01:23 +0100)]
Rename remaining url_ftell to avio_tell.