Justin Ruggles
b3a4c7e0f1
mlp parser: set duration instead of frame_size
13 years ago
Justin Ruggles
2460b168b4
gsm parser: set duration
13 years ago
Justin Ruggles
7575ffac8a
mpegaudio parser: set duration instead of frame_size
13 years ago
Justin Ruggles
16e54ac725
(e)ac3 parser: set duration instead of frame_size
13 years ago
Justin Ruggles
c7f3f1c91e
flac parser: set duration instead of frame_size
13 years ago
Justin Ruggles
e9cda85351
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.
13 years ago
Paul B Mahol
0996f406c4
pnmdec: remove useless .pix_fmts
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Justin Ruggles
e00959a9b1
libmp3lame: support float and s32 sample formats
13 years ago
Justin Ruggles
e232225276
libmp3lame: renaming, rearrangement, alignment, and comments
13 years ago
Justin Ruggles
232e16dd02
libmp3lame: use the LAME default bit rate
Also, only set bit rate for CBR.
13 years ago
Justin Ruggles
1f516c0451
libmp3lame: use avpriv_mpegaudio_decode_header() for output frame parsing
13 years ago
Justin Ruggles
e3d2c89e9d
libmp3lame: cosmetics: remove some pointless comments
13 years ago
Justin Ruggles
bf909fc456
libmp3lame: convert some debugging code to av_dlog()
also remove unneeded commented-out full frame data debugging
13 years ago
Justin Ruggles
469d2a8e8e
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.
13 years ago
Justin Ruggles
35cfd7d09c
libmp3lame: do not set coded_frame->key_frame.
it is already set in avcodec_alloc_frame()
13 years ago
Justin Ruggles
8dad25ebf7
libmp3lame: improve error handling in MP3lame_encode_init()
13 years ago
Justin Ruggles
310c372e12
libmp3lame: remove unneeded 'stereo' field from Mp3AudioContext
13 years ago
Stefano Sabatini
3293b1adca
lavc: set bit_rate in the decoder context, just after the init stage
Also move the get_bit_rate() function, in order to avoid an undefined
symbol reference in avcodec_open2().
13 years ago
Anton Khirnov
55fd7da107
pcxenc: switch to encode2().
13 years ago
Anton Khirnov
fb11e22fda
sgienc: switch to encode2().
13 years ago
Anton Khirnov
61eaf45c99
targaenc: switch to encode2().
13 years ago
Anton Khirnov
1e742ea3c8
targaenc: don't modify input frame.
Set the pict_type/key_frame properties on the coded picture.
13 years ago
Anton Khirnov
3227770092
roqvideoenc: switch to encode2().
13 years ago
Anton Khirnov
4fd7cfef0b
roqvideoenc: add const qualifier to the input frame.
13 years ago
Anton Khirnov
1ea5755046
pnmenc: switch to encode2().
13 years ago
Anton Khirnov
bc9c70e5a3
huffyuv: switch to encode2().
13 years ago
Anton Khirnov
2abee9be82
v410enc: switch to encode2().
13 years ago
Anton Khirnov
11505f39e1
zmbvenc: switch to encode2().
13 years ago
Anton Khirnov
8c8c7b5e37
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.
13 years ago
Ronald S. Bultje
8fb26950ed
h264: don't use redzone in loopfilter on win64.
Red zone usage is not allowed in the Win64 ABI.
13 years ago
Michael Niedermayer
f4f386dd00
wmalossless: Fix infinite loop.
Fixes more of Ticket1000
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
886b40b94a
wmalossless: Switch to new audio API
Partially fixes Ticket1000
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b240866c5b
wmalossless: remove tab
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
aac63cef20
examples: unbreak compilation
Update api so it will compile again.
13 years ago
Paul B Mahol
e04ca1d4ce
ttadec: cosmetics: reindent
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Michael Niedermayer
d9b3097ba2
pamdec: fix mono support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Aneesh Dogra
566df2eea2
sunrast: use RLE trigger macro inplace of the hard coded value.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Aneesh Dogra
1a58daed0f
sunrastenc: set keyframe flag for the output packet.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Reimar Döffinger
3fa6d20533
H264 parser: enable header parsing/frame type detection for is_avc.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Anton Khirnov
445a7d48b1
mpegvideo_enc: switch to encode2().
13 years ago
Anton Khirnov
5455384219
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.
13 years ago
Michael Niedermayer
d3f81a6700
pamenc: allocate the correct packetsize for mono.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5d468edb2e
pamenc: move allocation down.
This way the size that is calculated is known and can be used in a following
commit.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e98a76d3c2
h264: use av_fast_padded_malloc()
This zeros all the memory once and avoids valgrind warnings.
alternatively the warnings could be suppressed.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Kostya Shishkov
6d702dc072
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.
13 years ago
Ronald S. Bultje
c742ab4e81
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
13 years ago
Ronald S. Bultje
9d3050d3e9
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
13 years ago
Ronald S. Bultje
74699ac8c8
mjpegb: don't return 0 at the end of frame decoding.
Return 0 indicates "please return the same data again", i.e. it causes
an infinite loop. Instead, return that we consumed the buffer if we
finished decoding succesfully, or return an error if an error occurred.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Mashiat Sarker Shakkhar
a520a9946f
Perform inter-channel decorr. only if both channels are coded
13 years ago
Paul B Mahol
bfe7bace8e
libx264: unbreak libx264rgb
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago