ffmpeg.git
9 years agoffprobe: implement and use print_time and print_ts macros
Stefano Sabatini [Sun, 6 Nov 2011 11:38:58 +0000 (12:38 +0100)]
ffprobe: implement and use print_time and print_ts macros

Help readability.

9 years agoavio: print a warning from ffurl_alloc() if no protocols are allocated.
Michael Niedermayer [Mon, 7 Nov 2011 03:18:53 +0000 (04:18 +0100)]
avio: print a warning from ffurl_alloc() if no protocols are allocated.
Fixes Ticket618

Based on code by teratorn
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 7 Nov 2011 01:41:01 +0000 (02:41 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (23 commits)
  x86inc: use sse versions of common macros instead of sse2 when applicable
  doc/APIchanges: add missing dates and hashes
  lavf: don't return from void av_update_cur_dts()
  Changelog: add more entries.
  Changelog: update ffmpeg/avconv incompatibility list.
  avconv: remove some redundant temporary variables.
  avconv: fix broken indentation
  avconv: move copy_initial_nonkeyframes to the options context.
  avconv: use file:stream instead of file.stream in log messages.
  doc/avconv: elaborate on basic functionality.
  doc/avconv: -sample_fmts, not -help sample_fmts prints the sample formats
  openssl: Only use CRYPTO_set_id_callback on OpenSSL < 1.0.0
  Call avformat_network_init/deinit in the programs
  Remove leftover includes of strings.h
  avutil: Don't allow using strcasecmp/strncasecmp
  Replace all usage of strcasecmp/strncasecmp
  avstring: Add locale independent implementations of strcasecmp/strncasecmp
  avstring: Add locale independent implementations of toupper/tolower
  cosmetics: insert some spaces in explicit enum value assignments
  move 8SVX audio codecs to the audio codec list part on the next bump
  ...

Conflicts:
avprobe.c
doc/APIchanges
ffplay.c
ffserver.c
libavcodec/avcodec.h
libavdevice/bktr.c
libavdevice/v4l.c
libavdevice/v4l2.c
libavformat/matroskaenc.c
libavformat/wtv.c
libavutil/avstring.c
libavutil/avstring.h
libavutil/avutil.h
libswscale/x86/swscale_template.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoaudioconvert: prefer 5.X over 5.X(side).
Nicolas George [Sun, 6 Nov 2011 16:05:08 +0000 (17:05 +0100)]
audioconvert: prefer 5.X over 5.X(side).
This is the logical consequence of commit ab539d9e:
5.X(back) is more common than 5.X(side).

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agox86inc: use sse versions of common macros instead of sse2 when applicable
Justin Ruggles [Sun, 6 Nov 2011 19:22:42 +0000 (14:22 -0500)]
x86inc: use sse versions of common macros instead of sse2 when applicable

9 years agodoc/APIchanges: add missing dates and hashes
Anton Khirnov [Sun, 6 Nov 2011 19:33:13 +0000 (20:33 +0100)]
doc/APIchanges: add missing dates and hashes

9 years agolavf: don't return from void av_update_cur_dts()
Anton Khirnov [Sun, 6 Nov 2011 18:13:28 +0000 (19:13 +0100)]
lavf: don't return from void av_update_cur_dts()

9 years agoChangelog: add more entries.
Anton Khirnov [Sun, 6 Nov 2011 13:22:22 +0000 (14:22 +0100)]
Changelog: add more entries.

9 years agoChangelog: update ffmpeg/avconv incompatibility list.
Anton Khirnov [Sun, 6 Nov 2011 13:05:46 +0000 (14:05 +0100)]
Changelog: update ffmpeg/avconv incompatibility list.

9 years agoavconv: remove some redundant temporary variables.
Anton Khirnov [Sun, 6 Nov 2011 09:32:44 +0000 (10:32 +0100)]
avconv: remove some redundant temporary variables.

9 years agoavconv: fix broken indentation
Anton Khirnov [Sun, 6 Nov 2011 09:27:43 +0000 (10:27 +0100)]
avconv: fix broken indentation

9 years agoavconv: move copy_initial_nonkeyframes to the options context.
Anton Khirnov [Sun, 6 Nov 2011 09:26:56 +0000 (10:26 +0100)]
avconv: move copy_initial_nonkeyframes to the options context.

Also document it.

9 years agoavconv: use file:stream instead of file.stream in log messages.
Anton Khirnov [Sun, 6 Nov 2011 12:00:13 +0000 (13:00 +0100)]
avconv: use file:stream instead of file.stream in log messages.

9 years agodoc/avconv: elaborate on basic functionality.
Anton Khirnov [Sat, 5 Nov 2011 15:23:23 +0000 (16:23 +0100)]
doc/avconv: elaborate on basic functionality.

9 years agodoc/avconv: -sample_fmts, not -help sample_fmts prints the sample formats
Anton Khirnov [Sat, 5 Nov 2011 14:55:25 +0000 (15:55 +0100)]
doc/avconv: -sample_fmts, not -help sample_fmts prints the sample formats

9 years agoopenssl: Only use CRYPTO_set_id_callback on OpenSSL < 1.0.0
Martin Storsjö [Sat, 5 Nov 2011 23:50:03 +0000 (01:50 +0200)]
openssl: Only use CRYPTO_set_id_callback on OpenSSL < 1.0.0

Since 1.0.0, this function is deprecated. A new function,
CRYPTO_THREADID_set_callback is available, but if not set at all,
it uses the address of errno as thread id, which should be
sufficient for most systems.

On windows, it never was necessary to use this function even
before 1.0.0, it used the right win32 API function for this
by default.

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agoCall avformat_network_init/deinit in the programs
Martin Storsjö [Sun, 6 Nov 2011 00:47:48 +0000 (02:47 +0200)]
Call avformat_network_init/deinit in the programs

Calling the init function will become mandatory at some later
point. By calling it, more heavy network init (such as SSL/TLS
library init) can be done once at startup, instead of implicitly
when used (which could lead to it being done a number of times).

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agodshow: support BI_BITFIELDS compression type
Ramiro Polla [Sat, 8 Oct 2011 18:00:00 +0000 (15:00 -0300)]
dshow: support BI_BITFIELDS compression type

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoswscale: use isByteRGB() to simplify check for palToRgbWrapper.
Michael Niedermayer [Sun, 6 Nov 2011 12:30:10 +0000 (13:30 +0100)]
swscale: use isByteRGB() to simplify check for palToRgbWrapper.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoswscale: Fix packed rgb check for planarRgbToRgbWrapper.
Michael Niedermayer [Sun, 6 Nov 2011 12:26:50 +0000 (13:26 +0100)]
swscale: Fix packed rgb check for planarRgbToRgbWrapper.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoUnscaled Planar RGB -> RGB support in swscale.
Themaister [Sun, 6 Nov 2011 09:43:47 +0000 (10:43 +0100)]
Unscaled Planar RGB -> RGB support in swscale.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoaf_aconvert: fix doc reference to unexisting chlayout.h file
Stefano Sabatini [Sun, 6 Nov 2011 10:46:57 +0000 (11:46 +0100)]
af_aconvert: fix doc reference to unexisting chlayout.h file

9 years agoRemove leftover includes of strings.h
Martin Storsjö [Fri, 4 Nov 2011 13:08:49 +0000 (15:08 +0200)]
Remove leftover includes of strings.h

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agoavutil: Don't allow using strcasecmp/strncasecmp
Reimar Döffinger [Sat, 5 Nov 2011 15:21:04 +0000 (17:21 +0200)]
avutil: Don't allow using strcasecmp/strncasecmp

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agoReplace all usage of strcasecmp/strncasecmp
Reimar Döffinger [Wed, 2 Nov 2011 19:17:25 +0000 (20:17 +0100)]
Replace all usage of strcasecmp/strncasecmp

All current usages of it are incompatible with localization.
For example strcasecmp("i", "I") != 0 is possible, but would
break many of the places where it is used.

Instead use our own implementations that always treat the data
as ASCII.

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agoavstring: Add locale independent implementations of strcasecmp/strncasecmp
Reimar Döffinger [Sat, 5 Nov 2011 15:20:41 +0000 (17:20 +0200)]
avstring: Add locale independent implementations of strcasecmp/strncasecmp

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agoavstring: Add locale independent implementations of toupper/tolower
Luca Barbato [Sat, 5 Nov 2011 15:15:43 +0000 (17:15 +0200)]
avstring: Add locale independent implementations of toupper/tolower

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agoFix av_packet_split_side_data.
Reimar Döffinger [Sun, 6 Nov 2011 00:33:31 +0000 (01:33 +0100)]
Fix av_packet_split_side_data.

p cannot be calculated before av_dup_packet since that one
might change avpkt->data, causing invalid reads and a
non-working range check.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agocosmetics: insert some spaces in explicit enum value assignments
Kostya Shishkov [Sat, 5 Nov 2011 13:34:23 +0000 (14:34 +0100)]
cosmetics: insert some spaces in explicit enum value assignments

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agomove 8SVX audio codecs to the audio codec list part on the next bump
Kostya Shishkov [Sat, 5 Nov 2011 13:34:08 +0000 (14:34 +0100)]
move 8SVX audio codecs to the audio codec list part on the next bump

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agodeprecate codec IDs that won't ever be used
Kostya Shishkov [Sat, 5 Nov 2011 13:33:45 +0000 (14:33 +0100)]
deprecate codec IDs that won't ever be used

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agoswscale: write yuv2plane1 MMX/SSE2/SSE4/AVX functions.
Ronald S. Bultje [Sun, 6 Nov 2011 00:31:40 +0000 (17:31 -0700)]
swscale: write yuv2plane1 MMX/SSE2/SSE4/AVX functions.

9 years agoUpdate x86inc.asm to latest x264 version, and add AVX symmetry.
Loren Merritt [Wed, 2 Nov 2011 20:13:26 +0000 (20:13 +0000)]
Update x86inc.asm to latest x264 version, and add AVX symmetry.

We keep INIT_AVX (for backwards compatibility). 3arg AVX ops with
a memory arg can only have it in src2, whereas SSE emulation of
3arg prefers to have it in src1 (i.e. the mov). So, if the op is
symmetric and the wrong one is memory, swap them.

9 years agofate: fix mapchan
Michael Niedermayer [Sun, 6 Nov 2011 01:55:31 +0000 (02:55 +0100)]
fate: fix mapchan

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agowtvenc: ensure fat tables are padded to the sector boundary
Peter Ross [Sun, 6 Nov 2011 01:14:31 +0000 (12:14 +1100)]
wtvenc: ensure fat tables are padded to the sector boundary

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolavf: remove commented check in compute_pkt_fields2()
Stefano Sabatini [Sun, 6 Nov 2011 01:16:41 +0000 (02:16 +0100)]
lavf: remove commented check in compute_pkt_fields2()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 6 Nov 2011 01:18:50 +0000 (02:18 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  http: Remove the custom function for disabling chunked posts
  rtsp: Disable chunked http post through AVOptions
  movdec: Set frame_size for AMR
  h264_weight: remove duplication functions.
  swscale: align vertical filtersize by 2 on x86.
  libavfilter: reindent.
  matroskadec: empty blocks are in fact valid.
  avfilter: don't abort() on zero-size allocations.
  h264: improve calculation of codec delay.
  movenc: Set a correct packet size for AMR-NB mode 15, "no data"
  avformat: Add functions for doing global network initialization
  avformat: Add the https protocol
  avformat: Add the tls protocol, using OpenSSL or gnutls
  avformat: Initialize gnutls in ff_tls_init()
  w32threads: Wrap the mutex functions in inline functions returning int
  configure: Allow linking to the gnutls library
  avformat: Add ff_tls_init()/deinit() that initialize OpenSSL
  configure: Allow linking to openssl
  avcodec: Allow locking and unlocking an avformat specific mutex
  avformat: Split out functions from network.h to a new file, network.c

Conflicts:
Changelog
configure
doc/APIchanges
libavcodec/internal.h
libavcodec/version.h
libavfilter/formats.c
libavformat/matroskadec.c
libavformat/mov.c
libavformat/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agowtvdec: ignore another known guid
Peter Ross [Sun, 6 Nov 2011 00:21:02 +0000 (11:21 +1100)]
wtvdec: ignore another known guid

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoSet avctx->coded_width/height to uncropped h264 sizes
Joakim Plate [Sat, 5 Nov 2011 23:59:37 +0000 (00:59 +0100)]
Set avctx->coded_width/height to uncropped h264 sizes

avctx->width/height remain right/bottom cropped as previous behaviour.

Hardware decoders need to know the uncropped data to allocate surfaces
of correct height. Some hardware is picky and fails to decoder properly
if a surface larger than needed is used during decode, so just aligning
up is not enough.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoaudioconvert: use + in av_get_channel_layout_string.
Nicolas George [Sat, 5 Nov 2011 20:21:50 +0000 (21:21 +0100)]
audioconvert: use + in av_get_channel_layout_string.

When constructing a channel layout string from individual channel names,
+ is a more practical separator than |, because it is usually not a shell
special character.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agodshow: don't print min/max values for fps the wrong way around
Ramiro Polla [Fri, 30 Sep 2011 21:10:30 +0000 (18:10 -0300)]
dshow: don't print min/max values for fps the wrong way around

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agodshow: save opened device reference so it may be properly closed
Ramiro Polla [Fri, 30 Sep 2011 20:50:00 +0000 (17:50 -0300)]
dshow: save opened device reference so it may be properly closed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agodshow: release filter reference obtained from enumeration
Ramiro Polla [Fri, 30 Sep 2011 20:49:43 +0000 (17:49 -0300)]
dshow: release filter reference obtained from enumeration

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agodshow: indent
Ramiro Polla [Fri, 30 Sep 2011 20:49:22 +0000 (17:49 -0300)]
dshow: indent

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agodshow: support choosing between devices with same name
Ramiro Polla [Fri, 30 Sep 2011 20:49:09 +0000 (17:49 -0300)]
dshow: support choosing between devices with same name

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agosrc_movie: set the channel layout to default if the codec did not set it.
Nicolas George [Sat, 5 Nov 2011 20:21:47 +0000 (21:21 +0100)]
src_movie: set the channel layout to default if the codec did not set it.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agomatroskaenc: base default duration on avg_frame_rate if possible.
Michael Niedermayer [Sat, 5 Nov 2011 22:43:29 +0000 (23:43 +0100)]
matroskaenc: base default duration on avg_frame_rate if possible.
Fixed Ticket432

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoffmpeg: preserve avg_frame_rate on stream copy.
Michael Niedermayer [Sat, 5 Nov 2011 22:43:01 +0000 (23:43 +0100)]
ffmpeg: preserve avg_frame_rate on stream copy.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolibvpxenc: Fix "Additional information: g_lag_in_frames out of range [..25]"
Michael Niedermayer [Sat, 5 Nov 2011 22:21:31 +0000 (23:21 +0100)]
libvpxenc: Fix "Additional information: g_lag_in_frames out of range [..25]"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMark AVFilterPad[] compound literals as const.
Reimar Döffinger [Sat, 5 Nov 2011 13:39:24 +0000 (14:39 +0100)]
Mark AVFilterPad[] compound literals as const.

GCC 4.6.2 at least still seems to fail to put them in .rodata though,
see also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37303

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoSet AVFrame reference before reget_buffer.
Reimar Döffinger [Sat, 5 Nov 2011 22:27:00 +0000 (23:27 +0100)]
Set AVFrame reference before reget_buffer.

Otherwise it might return a write-only frame which would break
decoding completely.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agonuv: do not use data not initialized by LZO decompression.
Reimar Döffinger [Sat, 5 Nov 2011 22:51:05 +0000 (23:51 +0100)]
nuv: do not use data not initialized by LZO decompression.

This fixes visible corruption in the incomplete last frame
of the FATE sample.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agonuv: Fix combination of size changes and LZO compression.
Reimar Döffinger [Sat, 5 Nov 2011 21:34:09 +0000 (22:34 +0100)]
nuv: Fix combination of size changes and LZO compression.

There were multiple issues, for example might we have to re-run
the decompression when the size of the buffer increased,
we should always use a decompression buffer large enough for
the header (so we do not get stuck when the size is too small).

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoCheck NUV per-frame header for validity.
Reimar Döffinger [Sat, 5 Nov 2011 22:13:07 +0000 (23:13 +0100)]
Check NUV per-frame header for validity.

Since it contains dimensions parsing an invalid one has rather
annoying effects.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agortjpeg: check get_block return value for error.
Reimar Döffinger [Sat, 5 Nov 2011 21:26:42 +0000 (22:26 +0100)]
rtjpeg: check get_block return value for error.

This avoids crashes due to reading out-of-bounds.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoSimplify using get_bits_left.
Reimar Döffinger [Sat, 5 Nov 2011 21:07:22 +0000 (22:07 +0100)]
Simplify using get_bits_left.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoav_lzo1x_decode: properly handle negative buffer length.
Reimar Döffinger [Sat, 5 Nov 2011 20:45:31 +0000 (21:45 +0100)]
av_lzo1x_decode: properly handle negative buffer length.

Treating them like 0 is safest, current code would invoke
undefined pointer arithmetic behaviour in this case.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoUse FFALIGN.
Reimar Döffinger [Sat, 5 Nov 2011 20:11:37 +0000 (21:11 +0100)]
Use FFALIGN.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoTry to set AVFrame.reference to correct values.
Reimar Döffinger [Sat, 5 Nov 2011 18:48:39 +0000 (19:48 +0100)]
Try to set AVFrame.reference to correct values.

I am not sure these new values are correct, not am I sure
the semantics are a good idea since we do not seem to make any
use of them but they caused a lot of confusion, but this
seems to make things closer to matching the documentation.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoh264: fix ssse3 biweight code with weights of 128
Michael Niedermayer [Sat, 5 Nov 2011 20:37:44 +0000 (21:37 +0100)]
h264: fix ssse3 biweight code with weights of 128

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge remote-tracking branch 'cus/stable'
Michael Niedermayer [Sat, 5 Nov 2011 17:56:56 +0000 (18:56 +0100)]
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: Avoid useage of deprecated url_fileno().

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agowtvenc: use ff_put_guid and remove local copy of this function
Peter Ross [Sat, 5 Nov 2011 05:09:47 +0000 (16:09 +1100)]
wtvenc: use ff_put_guid and remove local copy of this function

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoasfenc: rename put_guid to ff_put_guid
Peter Ross [Sat, 5 Nov 2011 05:09:34 +0000 (16:09 +1100)]
asfenc: rename put_guid to ff_put_guid

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agowtvenc: add @file comment
Peter Ross [Sat, 5 Nov 2011 05:09:17 +0000 (16:09 +1100)]
wtvenc: add @file comment

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agofix whitespace nits
Peter Ross [Sat, 5 Nov 2011 05:09:10 +0000 (16:09 +1100)]
fix whitespace nits

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agohttp: Remove the custom function for disabling chunked posts
Martin Storsjö [Sun, 20 Jun 2010 20:59:15 +0000 (23:59 +0300)]
http: Remove the custom function for disabling chunked posts

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agortsp: Disable chunked http post through AVOptions
Martin Storsjö [Sun, 20 Jun 2010 20:58:22 +0000 (23:58 +0300)]
rtsp: Disable chunked http post through AVOptions

This avoids having to use a private function.

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agoMake ff_mba_* arrays const.
Reimar Döffinger [Sat, 5 Nov 2011 14:29:27 +0000 (15:29 +0100)]
Make ff_mba_* arrays const.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoMake another static array const.
Reimar Döffinger [Sat, 5 Nov 2011 14:27:13 +0000 (15:27 +0100)]
Make another static array const.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoMake fdct_r_row_sse2 const.
Reimar Döffinger [Sat, 5 Nov 2011 14:26:21 +0000 (15:26 +0100)]
Make fdct_r_row_sse2 const.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoMake AMR tables of lookup filter tables const.
Reimar Döffinger [Sat, 5 Nov 2011 14:25:00 +0000 (15:25 +0100)]
Make AMR tables of lookup filter tables const.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoMake another PixelFormat list const.
Reimar Döffinger [Sat, 5 Nov 2011 14:22:45 +0000 (15:22 +0100)]
Make another PixelFormat list const.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoMake sdl_overlay_pix_fmt_map static const.
Reimar Döffinger [Sat, 5 Nov 2011 14:21:42 +0000 (15:21 +0100)]
Make sdl_overlay_pix_fmt_map static const.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoMake PIX_FMT format list arrays const.
Reimar Döffinger [Sat, 5 Nov 2011 14:20:18 +0000 (15:20 +0100)]
Make PIX_FMT format list arrays const.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoMake rgb_pixfmt_map const.
Reimar Döffinger [Sat, 5 Nov 2011 14:16:15 +0000 (15:16 +0100)]
Make rgb_pixfmt_map const.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoMake tab_frw_01234567_sse2 const.
Reimar Döffinger [Sat, 5 Nov 2011 14:14:54 +0000 (15:14 +0100)]
Make tab_frw_01234567_sse2 const.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agocolor_table array should be const.
Reimar Döffinger [Sat, 5 Nov 2011 14:10:23 +0000 (15:10 +0100)]
color_table array should be const.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoAdd const to static arrays where it was forgotten.
Reimar Döffinger [Sat, 5 Nov 2011 13:49:52 +0000 (14:49 +0100)]
Add const to static arrays where it was forgotten.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agodoc: fix typo in previous commit.
Clément Bœsch [Sat, 5 Nov 2011 14:30:46 +0000 (15:30 +0100)]
doc: fix typo in previous commit.

9 years agomovdec: Set frame_size for AMR
Carl Eugen Hoyos [Thu, 3 Nov 2011 19:20:58 +0000 (20:20 +0100)]
movdec: Set frame_size for AMR

Earlier, sc->samples_per_frame was used for setting the frame size,
but all files don't have that set properly. The frame size is a
known constant for these codecs.

If frame_size isn't set, the mov/3gp muxer refuses to mux it.

This fixes stream copy of audio from
https://roundup.libav.org/file1248/Video_With_AMR-NB_Audio.3gp
to another 3gp file (roundup issue 2468).

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agodoc: document v4l and v4l2 aliases.
Clément Bœsch [Sat, 5 Nov 2011 14:30:10 +0000 (15:30 +0100)]
doc: document v4l and v4l2 aliases.

9 years agodoc: fix a few typo in the filters section.
Clément Bœsch [Sat, 5 Nov 2011 14:19:23 +0000 (15:19 +0100)]
doc: fix a few typo in the filters section.

9 years agov4l2: add libv4l2 support.
Clément Bœsch [Sun, 30 Oct 2011 02:21:55 +0000 (03:21 +0100)]
v4l2: add libv4l2 support.

9 years agoh264_weight: remove duplication functions.
Ronald S. Bultje [Sun, 30 Oct 2011 17:25:25 +0000 (10:25 -0700)]
h264_weight: remove duplication functions.

9 years agoffprobe: use avio_size() instead of deprecated file_size attribute.
Clément Bœsch [Sat, 5 Nov 2011 12:16:32 +0000 (13:16 +0100)]
ffprobe: use avio_size() instead of deprecated file_size attribute.

9 years agoffprobe: fix const compiler warning.
Clément Bœsch [Sat, 5 Nov 2011 12:14:43 +0000 (13:14 +0100)]
ffprobe: fix const compiler warning.

9 years agoReplace remaining av_new_stream() with avformat_new_stream().
Clément Bœsch [Sat, 5 Nov 2011 12:11:18 +0000 (13:11 +0100)]
Replace remaining av_new_stream() with avformat_new_stream().

9 years agoswscale: align vertical filtersize by 2 on x86.
Ronald S. Bultje [Fri, 4 Nov 2011 19:19:29 +0000 (12:19 -0700)]
swscale: align vertical filtersize by 2 on x86.

The vertical scaler handles 2 rows at a time and thus requires
alignment by 2, or else it'll read invalid memory and result in
corrupt output.

9 years agolibavfilter: reindent.
Ronald S. Bultje [Sat, 5 Nov 2011 14:01:39 +0000 (07:01 -0700)]
libavfilter: reindent.

9 years agomatroskadec: empty blocks are in fact valid.
Ronald S. Bultje [Sat, 29 Oct 2011 23:17:51 +0000 (16:17 -0700)]
matroskadec: empty blocks are in fact valid.

9 years agoavfilter: don't abort() on zero-size allocations.
Ronald S. Bultje [Sat, 29 Oct 2011 23:17:27 +0000 (16:17 -0700)]
avfilter: don't abort() on zero-size allocations.

9 years agoh264: improve calculation of codec delay.
Ronald S. Bultje [Sat, 29 Oct 2011 20:44:50 +0000 (13:44 -0700)]
h264: improve calculation of codec delay.

Fixes the following conformance suite samples:
HCBP1_HHI_A.264, HCBP2_HHI_A.264, HCMP1_HHI_A.264 (main)
HCHP1_HHI_B.264, HCHP2_HHI_A.264, HCHP3_HHI_A.264 (frext)

9 years agoj2kdec: fix a bunch of const compiler warnings.
Clément Bœsch [Sat, 5 Nov 2011 11:56:39 +0000 (12:56 +0100)]
j2kdec: fix a bunch of const compiler warnings.

9 years agoAPIChanges: fill missing dates and hashes.
Clément Bœsch [Sat, 5 Nov 2011 11:31:25 +0000 (12:31 +0100)]
APIChanges: fill missing dates and hashes.

9 years agomovenc: Set a correct packet size for AMR-NB mode 15, "no data"
Carl Eugen Hoyos [Wed, 19 Oct 2011 09:20:48 +0000 (11:20 +0200)]
movenc: Set a correct packet size for AMR-NB mode 15, "no data"

These packets are valid packets, and consist of 1 byte (which
contains the mode bits).

This had been analyzed and reported by Igor Levin, igor d levin comverse com.

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agoFix typo in warning message.
Reimar Döffinger [Sat, 5 Nov 2011 10:30:16 +0000 (11:30 +0100)]
Fix typo in warning message.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoPut strings inside struct instead of extra indirection.
Reimar Döffinger [Fri, 4 Nov 2011 16:05:17 +0000 (17:05 +0100)]
Put strings inside struct instead of extra indirection.

Saves a bit on space and relocations.
Also makes the (very hackish) lossless conversion check
in ffmpeg.c work reliably.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoavformat: Add functions for doing global network initialization
Martin Storsjö [Tue, 1 Nov 2011 11:40:04 +0000 (13:40 +0200)]
avformat: Add functions for doing global network initialization

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agoavformat: Add the https protocol
Martin Storsjö [Sat, 5 Feb 2011 22:20:26 +0000 (00:20 +0200)]
avformat: Add the https protocol

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agoavformat: Add the tls protocol, using OpenSSL or gnutls
Martin Storsjö [Sat, 5 Feb 2011 22:19:49 +0000 (00:19 +0200)]
avformat: Add the tls protocol, using OpenSSL or gnutls

Note, this protocol doesn't yet check verify the server
certificate against a local database of trusted CA root
certificates.

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