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

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

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

9 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

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

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

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

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

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

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

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

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

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

9 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>
9 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>
9 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>
9 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>
9 years agoffprobe: add compact writer
Stefano Sabatini [Sun, 2 Oct 2011 09:25:44 +0000 (11:25 +0200)]
ffprobe: add compact writer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

9 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

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

9 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

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

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

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

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

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

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

9 years agoRename remaining get_byte to avio_r8.
Clément Bœsch [Mon, 14 Nov 2011 00:19:56 +0000 (01:19 +0100)]
Rename remaining get_byte to avio_r8.

9 years agoRename remaining url_fsize to avio_size.
Clément Bœsch [Sun, 13 Nov 2011 23:54:10 +0000 (00:54 +0100)]
Rename remaining url_fsize to avio_size.

9 years agoRename remaining get_buffer to avio_read.
Clément Bœsch [Sun, 13 Nov 2011 23:53:50 +0000 (00:53 +0100)]
Rename remaining get_buffer to avio_read.

9 years agoRename remaining url_fseek to avio_seek.
Clément Bœsch [Sun, 13 Nov 2011 23:52:55 +0000 (00:52 +0100)]
Rename remaining url_fseek to avio_seek.

9 years agoRename remaining ByteIOContext to AVIOContext.
Clément Bœsch [Sun, 13 Nov 2011 23:36:45 +0000 (00:36 +0100)]
Rename remaining ByteIOContext to AVIOContext.

9 years agomandelbrot: add math.h for log2()
Michael Niedermayer [Mon, 14 Nov 2011 04:56:03 +0000 (05:56 +0100)]
mandelbrot: add math.h for log2()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agomandelbrot: avoid INFINITY as openbsd seems not to like it.
Michael Niedermayer [Mon, 14 Nov 2011 04:47:56 +0000 (05:47 +0100)]
mandelbrot: avoid INFINITY as openbsd seems not to like it.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agopad: fix format string length
Michael Niedermayer [Mon, 14 Nov 2011 04:42:10 +0000 (05:42 +0100)]
pad: fix format string length

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agodoc: add support for an optional navigation bar in texi2html pages
Janne Grunau [Sun, 13 Nov 2011 18:32:35 +0000 (19:32 +0100)]
doc: add support for an optional navigation bar in texi2html pages

The navigation header for the web pages lives in a different repository.
Read it during documentation regeneration to use the same navigation bar
on all pages.

9 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 13 Nov 2011 22:43:12 +0000 (23:43 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  lavf: pass options from AVFormatContext to avio.
  avformat: Use avio_open2, pass the AVFormatContext interrupt_callback onwards
  avio: add avio_open2, taking an interrupt callback and options
  avio: add support for passing options to protocols.
  avio: add and use ffurl_protocol_next().
  avformat: Pass the interrupt callback on to chained muxers/demuxers
  avio: Add an AVIOInterruptCB parameter to ffurl_open/ffurl_alloc
  avformat: Use ff_check_interrupt
  avio: Add an internal utility function for checking the new interrupt callback
  avio: Add AVIOInterruptCB
  texi2html: remove stray \n
  doc: prettyfy the texi2html documentation
  swscale: handle unaligned buffers in yuv2plane1

Conflicts:
libavformat/avformat.h
libavformat/avio.c
libavformat/mov.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agodoc: replace an "avconv" reference with "ffmpeg" in indevs.
Clément Bœsch [Sun, 13 Nov 2011 22:34:11 +0000 (23:34 +0100)]
doc: replace an "avconv" reference with "ffmpeg" in indevs.

9 years agodoc: drop "./" binary prefixes.
Clément Bœsch [Sun, 13 Nov 2011 22:33:22 +0000 (23:33 +0100)]
doc: drop "./" binary prefixes.

9 years agovsrc_mandelbrot: set options through the opt framework
Stefano Sabatini [Sun, 13 Nov 2011 18:12:00 +0000 (19:12 +0100)]
vsrc_mandelbrot: set options through the opt framework

9 years agomandelbrot: remove always-false condition in fill_from_cache
Giorgio Vazzana [Sun, 13 Nov 2011 12:51:09 +0000 (13:51 +0100)]
mandelbrot: remove always-false condition in fill_from_cache

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMAINTAINER: add libavfilter section and add myself to yadif & mandelbrot
Michael Niedermayer [Sun, 13 Nov 2011 18:33:34 +0000 (19:33 +0100)]
MAINTAINER: add libavfilter section and add myself to yadif & mandelbrot

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