]> git.sesse.net Git - ffmpeg/log
ffmpeg
12 years agortpenc: Allow packetizing H263 according to the old RFC 2190
Martin Storsjö [Tue, 7 Feb 2012 14:39:14 +0000 (16:39 +0200)]
rtpenc: Allow packetizing H263 according to the old RFC 2190

According to newer RFCs, this packetization scheme should only
be used for interfacing with legacy systems.

Implementing this packetization mode properly requires parsing
the full H263 bitstream to find macroblock boundaries (and knowing
their macroblock and gob numbers and motion vector predictors).

This implementation tries to look for GOB headers (which
can be inserted by using -ps <small number>), but if the GOBs
aren't small enough to fit into the MTU, the packetizer blindly
splits packets at any offset and claims it to be a GOB boundary
(by using Mode A from the RFC). While not correct, this seems
to work with some receivers.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortpenc: Move the trailing comma into FF_RTP_FLAG_OPTS
Martin Storsjö [Thu, 23 Feb 2012 09:38:24 +0000 (11:38 +0200)]
rtpenc: Move the trailing comma into FF_RTP_FLAG_OPTS

This simplifies adding more flags to the macro.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoasv1enc: switch to encode2().
Anton Khirnov [Wed, 22 Feb 2012 06:38:13 +0000 (07:38 +0100)]
asv1enc: switch to encode2().

12 years agolibschroedingerenc: switch to encode2().
Anton Khirnov [Mon, 20 Feb 2012 12:21:58 +0000 (13:21 +0100)]
libschroedingerenc: switch to encode2().

12 years agoffv1enc: switch to encode2().
Anton Khirnov [Sun, 12 Feb 2012 08:32:40 +0000 (09:32 +0100)]
ffv1enc: switch to encode2().

12 years agolibtheoraenc: switch to encode2().
Anton Khirnov [Sun, 12 Feb 2012 08:32:40 +0000 (09:32 +0100)]
libtheoraenc: switch to encode2().

12 years agojpeglsenc: switch to encode2().
Anton Khirnov [Wed, 22 Feb 2012 06:38:13 +0000 (07:38 +0100)]
jpeglsenc: switch to encode2().

12 years agolclenc: switch to encode2().
Anton Khirnov [Mon, 20 Feb 2012 12:21:58 +0000 (13:21 +0100)]
lclenc: switch to encode2().

12 years agoqtrleenc: switch to encode2().
Anton Khirnov [Sun, 12 Feb 2012 08:32:40 +0000 (09:32 +0100)]
qtrleenc: switch to encode2().

12 years agoflacdec: set channel_layout based on channel count
Justin Ruggles [Fri, 10 Feb 2012 03:44:10 +0000 (22:44 -0500)]
flacdec: set channel_layout based on channel count

Channel layouts are specified in the FLAC format description at
http://flac.sourceforge.net/format.html

fixes Bug 209

12 years agomov: set channel layout for AC-3 streams based on the 'dac3' atom info
Justin Ruggles [Sun, 12 Feb 2012 20:06:58 +0000 (15:06 -0500)]
mov: set channel layout for AC-3 streams based on the 'dac3' atom info

fixes Bug 225

12 years agoswscale: fix filtersize clipping.
Ronald S. Bultje [Wed, 22 Feb 2012 22:51:37 +0000 (14:51 -0800)]
swscale: fix filtersize clipping.

if srcW<=2, clip(x, 1, srcW-2) still allows srcW to be < 1.

12 years agodxva2: don't check for DXVA_PictureParameters->wDecodedPictureIndex
Rafaël Carré [Mon, 6 Feb 2012 21:08:08 +0000 (16:08 -0500)]
dxva2: don't check for DXVA_PictureParameters->wDecodedPictureIndex

This structure is well defined by Microsoft at:
http://msdn.microsoft.com/en-us/library/windows/hardware/ff564012(v=vs.85).aspx
Thus, the wDecodedPictureIndex member is guaranteed to exist.

Also, both the MPEG-2 and VC-1 hwaccel decoders depend on this struct member,
but only the VC-1 decoder was disabled if the check failed.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agoimg2: split muxer and demuxer into separate files
Paul B Mahol [Tue, 21 Feb 2012 21:07:56 +0000 (21:07 +0000)]
img2: split muxer and demuxer into separate files

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agorm: prevent infinite loops for index parsing.
Ronald S. Bultje [Wed, 22 Feb 2012 19:33:24 +0000 (11:33 -0800)]
rm: prevent infinite loops for index parsing.

Specifically, prevent jumping back in the file for the next index, since
this can lead to infinite loops where we jump between indexes referring
to each other, and don't read indexes that don't fit in the file.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
12 years agoaac: fix infinite loop on end-of-frame with sequence of 1-bits.
Alex Converse [Wed, 22 Feb 2012 19:05:42 +0000 (11:05 -0800)]
aac: fix infinite loop on end-of-frame with sequence of 1-bits.

Based-on-work-by: Ronald S. Bultje <rsbultje@gmail.com>
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
12 years agomov: Add more HDV and XDCAM FourCCs.
Alex Converse [Tue, 21 Feb 2012 23:37:35 +0000 (15:37 -0800)]
mov: Add more HDV and XDCAM FourCCs.

Reference: VLC

12 years agolavf: don't set AVCodecContext.has_b_frames in compute_pkt_fields().
Anton Khirnov [Thu, 5 Jan 2012 15:55:33 +0000 (16:55 +0100)]
lavf: don't set AVCodecContext.has_b_frames in compute_pkt_fields().

It is not supposed to be done outside lavc.

This is basically a revert of 818062f2f346df30f4ec0c0c1f54e8025cc3a80a.

It is unclear what issue this was supposed to fix, if it reappears again
it will have to be fixed in a more proper place.

The wtv-demux test change is because the sample starts with a B-frame.

12 years agormdec: when using INT4 deinterleaving, error out if sub_packet_h <= 1.
Ronald S. Bultje [Tue, 21 Feb 2012 18:36:27 +0000 (10:36 -0800)]
rmdec: when using INT4 deinterleaving, error out if sub_packet_h <= 1.

We read sub_packet_h / 2 packets per line of data (during deinterleaving),
which equals zero if sub_packet_h <= 1, thus causing us to not read any
data, leading to an infinite loop.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
12 years agocdxl: correctly synchronize video timestamps to audio
Paul B Mahol [Tue, 21 Feb 2012 18:15:51 +0000 (18:15 +0000)]
cdxl: correctly synchronize video timestamps to audio

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
12 years agomlpdec_parser: fix a few channel layouts.
Tim Walker [Wed, 22 Feb 2012 15:09:42 +0000 (16:09 +0100)]
mlpdec_parser: fix a few channel layouts.

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
12 years agoAdd channel names to channel_names[] array for channels added in b2890f5
Tim Walker [Wed, 22 Feb 2012 14:43:22 +0000 (15:43 +0100)]
Add channel names to channel_names[] array for channels added in b2890f5

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
12 years agomovenc: Buffer the mdat for the initial moov fragment, too
Martin Storsjö [Thu, 2 Feb 2012 10:50:26 +0000 (12:50 +0200)]
movenc: Buffer the mdat for the initial moov fragment, too

This allows writing QuickTime-compatible fragmented mp4 (with
a non-empty moov atom) to a non-seekable output.

This buffers the mdat for the initial fragment just as it does
for all normal fragments, too. Previously, the resulting
atom structure was mdat,moov, moof,mdat ..., while it now
is moov,mdat, moof,mdat.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoflvdec: Ignore the index if the ignidx flag is set
Martin Storsjö [Wed, 22 Feb 2012 09:26:42 +0000 (11:26 +0200)]
flvdec: Ignore the index if the ignidx flag is set

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoflvdec: Fix indentation
Martin Storsjö [Wed, 22 Feb 2012 09:00:35 +0000 (11:00 +0200)]
flvdec: Fix indentation

Also split a long line.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agomovdec: Don't parse all fragments if ignidx is set
Martin Storsjö [Tue, 21 Feb 2012 10:16:18 +0000 (12:16 +0200)]
movdec: Don't parse all fragments if ignidx is set

In nonseekable files, we already stop parsing the toplevel atoms
after finding moov and one mdat. In large seekable files (or files
that are seekable, but slowly, e.g. http), reading all the fragments
at the start can take a considerable amount of time. This allows
opting out from this behaviour.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agomovdec: Restart parsing root-level atoms at the right spot
Martin Storsjö [Tue, 21 Feb 2012 10:03:56 +0000 (12:03 +0200)]
movdec: Restart parsing root-level atoms at the right spot

If parsing moov+mdat in a non-seekable file, we currently
abort parsing directly after parsing the header of the mdat
atom. If we want to continue parsing later (if looking to
parse later fragments), we need to skip past the content of the
mdat atom, otherwise we end up parsing the content of the mdat
atom as root level atoms.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoprores: use natural integer type for the codebook index
Christophe GISQUET [Tue, 21 Feb 2012 21:36:15 +0000 (22:36 +0100)]
prores: use natural integer type for the codebook index

The operations that use it require it to be promoted to a larger (natural)
type and thus perform sign extension on it.

While an optimal compiler may account for this, gcc 4.6 (for x86 Windows)
fails. Using the natural integer type provides a 2% speedup for Win64
and 1% for Win32.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agomov: Add support for MPEG2 HDV 720p24 (hdv4)
Alex Converse [Tue, 21 Feb 2012 22:08:02 +0000 (14:08 -0800)]
mov: Add support for MPEG2 HDV 720p24 (hdv4)

12 years agoswscale: K&R formatting cosmetics (part I)
Diego Biurrun [Tue, 21 Feb 2012 19:09:31 +0000 (20:09 +0100)]
swscale: K&R formatting cosmetics (part I)

12 years agoswscale: variable declaration and placement cosmetics
Diego Biurrun [Wed, 15 Feb 2012 10:46:47 +0000 (11:46 +0100)]
swscale: variable declaration and placement cosmetics

12 years agompegvideo_enc: only allocate output packet when we know there will be output
Anton Khirnov [Mon, 20 Feb 2012 07:01:48 +0000 (08:01 +0100)]
mpegvideo_enc: only allocate output packet when we know there will be output

Fixes a memleak.

12 years agoAdd names for more channel layouts to the channel layout map.
Tim W [Tue, 21 Feb 2012 20:27:03 +0000 (21:27 +0100)]
Add names for more channel layouts to the channel layout map.

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
12 years agosunrast: Add a sample request for RMP_RAW colormap.
Aneesh Dogra [Sun, 19 Feb 2012 18:27:21 +0000 (23:57 +0530)]
sunrast: Add a sample request for RMP_RAW colormap.

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
12 years agoavcodec: do not override pts or duration from the audio encoder
Justin Ruggles [Fri, 10 Feb 2012 22:16:18 +0000 (17:16 -0500)]
avcodec: do not override pts or duration from the audio encoder

This allows encoders to set pts and/or duration even if they do not use
CODEC_CAP_DELAY.

12 years agoAdd prores regression test.
Reimar Döffinger [Tue, 21 Feb 2012 17:22:42 +0000 (12:22 -0500)]
Add prores regression test.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
12 years agoEnable already existing rso regression test.
Reimar Döffinger [Tue, 21 Feb 2012 17:22:45 +0000 (12:22 -0500)]
Enable already existing rso regression test.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
12 years agoAdd regression test for "sox" format muxer/demuxer.
Reimar Döffinger [Tue, 21 Feb 2012 17:22:44 +0000 (12:22 -0500)]
Add regression test for "sox" format muxer/demuxer.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
12 years agoAdd dpx encoding regression test.
Carl Eugen Hoyos [Tue, 21 Feb 2012 17:22:43 +0000 (12:22 -0500)]
Add dpx encoding regression test.

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
12 years agoswscale: K&R formatting cosmetics for PowerPC code (part I/II)
Diego Biurrun [Tue, 21 Feb 2012 18:58:48 +0000 (19:58 +0100)]
swscale: K&R formatting cosmetics for PowerPC code (part I/II)

12 years agoimg2: Use ff_guess_image2_codec(filename) shorthand where appropriate.
Diego Biurrun [Tue, 21 Feb 2012 14:49:41 +0000 (15:49 +0100)]
img2: Use ff_guess_image2_codec(filename) shorthand where appropriate.

12 years agoClarify licensing information about files borrowed from libjpeg.
Diego Biurrun [Sun, 19 Feb 2012 16:03:55 +0000 (17:03 +0100)]
Clarify licensing information about files borrowed from libjpeg.

12 years agoMark mutable static data const where appropriate.
Alex Converse [Mon, 20 Feb 2012 08:42:33 +0000 (00:42 -0800)]
Mark mutable static data const where appropriate.

12 years agoavplay: fix -threads option
Janne Grunau [Tue, 21 Feb 2012 15:34:08 +0000 (16:34 +0100)]
avplay: fix -threads option

The AVOptions based default to threads auto in 2473a45c8
works only if avplay does not use custom option handling
for -threads.

CC: <libav-stable@libav.org>
12 years agodvbsubdec: avoid undefined signed left shift in RGBA macro
Janne Grunau [Fri, 3 Feb 2012 11:06:37 +0000 (12:06 +0100)]
dvbsubdec: avoid undefined signed left shift in RGBA macro

12 years agomlpdec: use av_log_ask_for_sample()
Paul B Mahol [Wed, 15 Feb 2012 17:27:32 +0000 (17:27 +0000)]
mlpdec: use av_log_ask_for_sample()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
12 years agogif: K&R formatting cosmetics
Aneesh Dogra [Sun, 19 Feb 2012 18:24:45 +0000 (23:54 +0530)]
gif: K&R formatting cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agopng: make .long_name more descriptive
Paul B Mahol [Mon, 20 Feb 2012 20:37:36 +0000 (20:37 +0000)]
png: make .long_name more descriptive

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agomovdec: Adjust keyframe flagging in fragmented files
Martin Storsjö [Tue, 31 Jan 2012 10:45:02 +0000 (12:45 +0200)]
movdec: Adjust keyframe flagging in fragmented files

For video, mark the first sample in a trun which doesn't have the
sample-is-non-sync-sample flag set as a keyframe.

In particular, the "sample does not depend on other samples" flag
isn't enough to make it a keyframe, since later frames still can
reference frames prior to that one (the flag only says that that
particular frame doesn't depend on other frames).

This fixes bug 215.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agorv34: change most "int stride" into "ptrdiff_t stride".
Ronald S. Bultje [Fri, 17 Feb 2012 06:04:14 +0000 (22:04 -0800)]
rv34: change most "int stride" into "ptrdiff_t stride".

This prevents having to sign-extend on 64-bit systems with 32-bit ints,
such as x86-64. Also fixes crashes on systems where we don't do it and
arguments are not in registers, such as Win64 for all weight functions.

12 years agoadpcmenc: Use correct frame_size for Yamaha ADPCM.
Justin Ruggles [Tue, 31 Jan 2012 20:57:53 +0000 (15:57 -0500)]
adpcmenc: Use correct frame_size for Yamaha ADPCM.

Output packet size should match avctx->block_align. The target output packet
size is 1024 bytes.
Before:
mono   - 1024 samples -> 512 bytes
stereo - 2048 samples -> 2048 bytes
After:
mono   - 2048 samples -> 1024 bytes
stereo - 1024 samples -> 1024 bytes

12 years agoavcodec: add ff_samples_to_time_base() convenience function to internal.h
Justin Ruggles [Tue, 7 Feb 2012 20:37:45 +0000 (15:37 -0500)]
avcodec: add ff_samples_to_time_base() convenience function to internal.h

12 years agoadx parser: set duration
Justin Ruggles [Fri, 13 Jan 2012 04:43:31 +0000 (23:43 -0500)]
adx parser: set duration

12 years agomlp parser: set duration instead of frame_size
Justin Ruggles [Fri, 13 Jan 2012 04:43:30 +0000 (23:43 -0500)]
mlp parser: set duration instead of frame_size

12 years agogsm parser: set duration
Justin Ruggles [Fri, 13 Jan 2012 05:40:10 +0000 (00:40 -0500)]
gsm parser: set duration

12 years agompegaudio parser: set duration instead of frame_size
Justin Ruggles [Fri, 13 Jan 2012 02:05:08 +0000 (21:05 -0500)]
mpegaudio parser: set duration instead of frame_size

12 years ago(e)ac3 parser: set duration instead of frame_size
Justin Ruggles [Fri, 13 Jan 2012 01:59:43 +0000 (20:59 -0500)]
(e)ac3 parser: set duration instead of frame_size

12 years agoflac parser: set duration instead of frame_size
Justin Ruggles [Fri, 13 Jan 2012 01:53:09 +0000 (20:53 -0500)]
flac parser: set duration instead of frame_size

12 years agoavcodec: add duration field to AVCodecParserContext
Justin Ruggles [Fri, 13 Jan 2012 01:03:17 +0000 (20:03 -0500)]
avcodec: add duration field to AVCodecParserContext

This will allow parsers to export the duration of the current frame being
output, if known, instead of using AVCodecContext.frame_size.

12 years agoavutil: add av_rescale_q_rnd() to allow different rounding
Justin Ruggles [Mon, 13 Feb 2012 20:35:00 +0000 (15:35 -0500)]
avutil: add av_rescale_q_rnd() to allow different rounding

12 years agopnmdec: remove useless .pix_fmts
Paul B Mahol [Sun, 19 Feb 2012 05:20:01 +0000 (05:20 +0000)]
pnmdec: remove useless .pix_fmts

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
12 years agolibmp3lame: support float and s32 sample formats
Justin Ruggles [Fri, 17 Feb 2012 06:50:57 +0000 (01:50 -0500)]
libmp3lame: support float and s32 sample formats

12 years agolibmp3lame: renaming, rearrangement, alignment, and comments
Justin Ruggles [Fri, 17 Feb 2012 05:04:54 +0000 (00:04 -0500)]
libmp3lame: renaming, rearrangement, alignment, and comments

12 years agolibmp3lame: use the LAME default bit rate
Justin Ruggles [Fri, 17 Feb 2012 04:28:38 +0000 (23:28 -0500)]
libmp3lame: use the LAME default bit rate

Also, only set bit rate for CBR.

12 years agolibmp3lame: use avpriv_mpegaudio_decode_header() for output frame parsing
Justin Ruggles [Fri, 17 Feb 2012 04:06:54 +0000 (23:06 -0500)]
libmp3lame: use avpriv_mpegaudio_decode_header() for output frame parsing

12 years agolibmp3lame: cosmetics: remove some pointless comments
Justin Ruggles [Fri, 17 Feb 2012 03:27:46 +0000 (22:27 -0500)]
libmp3lame: cosmetics: remove some pointless comments

12 years agolibmp3lame: convert some debugging code to av_dlog()
Justin Ruggles [Fri, 17 Feb 2012 03:25:51 +0000 (22:25 -0500)]
libmp3lame: convert some debugging code to av_dlog()

also remove unneeded commented-out full frame data debugging

12 years agolibmp3lame: remove outdated comment.
Justin Ruggles [Fri, 17 Feb 2012 03:18:31 +0000 (22:18 -0500)]
libmp3lame: remove outdated comment.

We now require at least libmp3lame 3.98.3.
lame_encode_buffer_interleaved() still doesn't work for mono, but it does not
"die"; it just expects a stereo interleaved buffer.

12 years agolibmp3lame: do not set coded_frame->key_frame.
Justin Ruggles [Fri, 17 Feb 2012 03:12:21 +0000 (22:12 -0500)]
libmp3lame: do not set coded_frame->key_frame.

it is already set in avcodec_alloc_frame()

12 years agolibmp3lame: improve error handling in MP3lame_encode_init()
Justin Ruggles [Fri, 17 Feb 2012 03:12:03 +0000 (22:12 -0500)]
libmp3lame: improve error handling in MP3lame_encode_init()

12 years agolibmp3lame: remove unneeded 'stereo' field from Mp3AudioContext
Justin Ruggles [Fri, 17 Feb 2012 03:04:08 +0000 (22:04 -0500)]
libmp3lame: remove unneeded 'stereo' field from Mp3AudioContext

12 years agohls: Reset the AVIOContext when seeking
Martin Storsjö [Fri, 20 Jan 2012 14:29:09 +0000 (16:29 +0200)]
hls: Reset the AVIOContext when seeking

This avoids reading any old data in the AVIOContext buffer after
the seek, and indicates to the mpegts demuxer that we've seeked,
avoiding continuity check errors.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agopcxenc: switch to encode2().
Anton Khirnov [Sun, 12 Feb 2012 08:32:40 +0000 (09:32 +0100)]
pcxenc: switch to encode2().

12 years agosgienc: switch to encode2().
Anton Khirnov [Sun, 12 Feb 2012 08:32:40 +0000 (09:32 +0100)]
sgienc: switch to encode2().

12 years agotargaenc: switch to encode2().
Anton Khirnov [Sun, 12 Feb 2012 08:32:40 +0000 (09:32 +0100)]
targaenc: switch to encode2().

12 years agotargaenc: don't modify input frame.
Anton Khirnov [Sun, 19 Feb 2012 09:44:52 +0000 (10:44 +0100)]
targaenc: don't modify input frame.

Set the pict_type/key_frame properties on the coded picture.

12 years agoroqvideoenc: switch to encode2().
Anton Khirnov [Sun, 12 Feb 2012 08:32:40 +0000 (09:32 +0100)]
roqvideoenc: switch to encode2().

12 years agoroqvideoenc: add const qualifier to the input frame.
Anton Khirnov [Sun, 19 Feb 2012 09:01:01 +0000 (10:01 +0100)]
roqvideoenc: add const qualifier to the input frame.

12 years agopnmenc: switch to encode2().
Anton Khirnov [Sun, 12 Feb 2012 08:32:40 +0000 (09:32 +0100)]
pnmenc: switch to encode2().

12 years agohuffyuv: switch to encode2().
Anton Khirnov [Sun, 12 Feb 2012 08:32:40 +0000 (09:32 +0100)]
huffyuv: switch to encode2().

12 years agov410enc: switch to encode2().
Anton Khirnov [Sun, 12 Feb 2012 08:32:40 +0000 (09:32 +0100)]
v410enc: switch to encode2().

12 years agozmbvenc: switch to encode2().
Anton Khirnov [Fri, 10 Feb 2012 09:30:05 +0000 (10:30 +0100)]
zmbvenc: switch to encode2().

12 years agozmbvenc: move header writing to the end of encode_frame().
Anton Khirnov [Sun, 19 Feb 2012 10:16:16 +0000 (11:16 +0100)]
zmbvenc: move header writing to the end of encode_frame().

This makes switching to encode2() simpler, because it allows us to know
exactly how large should the output buffer be before we start writing
into it.

12 years agoh264: don't use redzone in loopfilter on win64.
Ronald S. Bultje [Sun, 19 Feb 2012 02:57:22 +0000 (18:57 -0800)]
h264: don't use redzone in loopfilter on win64.

Red zone usage is not allowed in the Win64 ABI.

12 years agoRevert two swscale commits.
Ronald S. Bultje [Sun, 19 Feb 2012 14:38:49 +0000 (06:38 -0800)]
Revert two swscale commits.

Revert "swscale: update context offsets after removal of AlpMmxFilter."
(commit a95e3fa90b4190381b65d180eec5a4027075e2da)
and
Revert "swscale: Remove some write-only variables related to alpha handling."
(commit 9d03cb9fc5ddf914920ab0dbe13f19a34c754966).

They broke alpha handling - it's the evil inline asm that still uses that
variable, so it's not truely write-only.

12 years agoapplehttp: Do seeking within segments, too
Panagiotis H.M. Issaris [Tue, 10 Jan 2012 13:48:57 +0000 (14:48 +0100)]
applehttp: Do seeking within segments, too

Enhance seeking by demuxing until the requested timestamp is
reached within the segment selected by the seek code using the
playlist info.

Some mpegts streams don't have dts set for all packets though,
this seeking method doesn't work well for that case.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agodoxy: remove reference to removed api
Luca Barbato [Sun, 19 Feb 2012 09:35:45 +0000 (10:35 +0100)]
doxy: remove reference to removed api

12 years agoexamples: unbreak compilation
Luca Barbato [Sun, 19 Feb 2012 09:34:40 +0000 (10:34 +0100)]
examples: unbreak compilation

Update api so it will compile again.

12 years agottadec: cosmetics: reindent
Paul B Mahol [Sat, 18 Feb 2012 01:25:46 +0000 (01:25 +0000)]
ttadec: cosmetics: reindent

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
12 years agosunrast: use RLE trigger macro inplace of the hard coded value.
Aneesh Dogra [Fri, 17 Feb 2012 20:34:24 +0000 (02:04 +0530)]
sunrast: use RLE trigger macro inplace of the hard coded value.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agosunrastenc: set keyframe flag for the output packet.
Aneesh Dogra [Fri, 17 Feb 2012 20:08:01 +0000 (01:38 +0530)]
sunrastenc: set keyframe flag for the output packet.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agompegvideo_enc: switch to encode2().
Anton Khirnov [Fri, 10 Feb 2012 09:30:05 +0000 (10:30 +0100)]
mpegvideo_enc: switch to encode2().

12 years agompegvideo_enc: force encoding delay of at least 1 frame when low_delay=0
Anton Khirnov [Sat, 18 Feb 2012 08:08:23 +0000 (09:08 +0100)]
mpegvideo_enc: force encoding delay of at least 1 frame when low_delay=0

This allows the following commit to extrapolate better dts for the first
frame. Pts difference between the first two frames is reused as the
difference between pts and dts of the first frame.

12 years agomov: Use defines for sample flags in fragments
Martin Storsjö [Thu, 16 Feb 2012 20:12:12 +0000 (21:12 +0100)]
mov: Use defines for sample flags in fragments

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agomov: Use defines for trun flags
Martin Storsjö [Thu, 16 Feb 2012 19:58:09 +0000 (20:58 +0100)]
mov: Use defines for trun flags

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agomov: Use defines for tfhd flags
Martin Storsjö [Thu, 16 Feb 2012 19:48:30 +0000 (20:48 +0100)]
mov: Use defines for tfhd flags

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoproresenc: force bitrate not to exceed given limit
Kostya Shishkov [Wed, 15 Feb 2012 20:04:12 +0000 (21:04 +0100)]
proresenc: force bitrate not to exceed given limit

Apple ProRes Format Specifications mentions target data size for every frame,
so make sure frame meets it. This also allows encoder to demand much smaller
packet sizes for output.

12 years agovc1parse: call vc1_init_common().
Ronald S. Bultje [Fri, 17 Feb 2012 22:18:22 +0000 (14:18 -0800)]
vc1parse: call vc1_init_common().

The parser uses VLC tables initialized in vc1_common_init(), therefore
we should call this function on parser init also.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
12 years agowma: don't return 0 on invalid packets.
Ronald S. Bultje [Sat, 18 Feb 2012 00:57:00 +0000 (16:57 -0800)]
wma: don't return 0 on invalid packets.

Return 0 means "please return the same data again", i.e. it causes an
infinite loop. Instead, return an error.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
12 years agoasf: prevent packet_size_left from going negative if hdrlen > pktlen.
Ronald S. Bultje [Fri, 17 Feb 2012 20:21:18 +0000 (12:21 -0800)]
asf: prevent packet_size_left from going negative if hdrlen > pktlen.

This prevents failed assertions further down in the packet processing
where we require non-negative values for packet_size_left.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org