Stefano Sabatini
13bbc464ed
examples/muxing: set codec in the codec context
...
Make add_{audio,video}_stream return the found codec, and pass it to
avcodec_open2() through open_{audio,video} functions.
Fix failure:
No codec provided to avcodec_open2().
could not open codec
This is also consistent with the use of the avcodec_open2() API in the
codebase.
2012-08-07 20:04:19 +02:00
Michael Niedermayer
8993c25695
avidec: fix AVStream.info memleak with dv.
...
Fixes Ticket1334
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-07 19:18:53 +02:00
Derek Buitenhuis
4ab26cb4cc
configure: Add support for e500mc CPU
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2012-08-07 12:49:01 -04:00
Michael Niedermayer
2f6f2f4f73
mpeg12dec: move checks out of decode picture coding extension.
...
Fixes out of array reads
Fixes Ticket1330
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-07 17:59:19 +02:00
Mans Rullgard
edd8226795
x86: fix build with nasm 2.08
...
It appears that something goes wrong in old nasm versions when the
%+ operator is used in the last argument of a macro invocation and
this argument is tested with %ifdef within the macro. This patch
rearranges the macro arguments such that the %+ operator is never
used in the last argument.
2012-08-07 15:24:34 +01:00
Mans Rullgard
180d43bc67
x86: use nop cpu directives only if supported
...
nasm does not support 'CPU foonop' directives. This adds a configure
test for the directive and uses it only if supported.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-08-07 15:22:20 +01:00
Mans Rullgard
7238265052
x86: fix rNmp macros with nasm
...
For some reason, nasm requires this. No harm done to yasm.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-08-07 15:21:58 +01:00
Mans Rullgard
f295fee2c9
build: add trailing / to yasm/nasm -I flags
...
nasm requires a trailing / on paths specified with -I.
It does no harm with yasm.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-08-07 15:21:40 +01:00
Mans Rullgard
2b140a3d09
x86: use 32-bit source registers with movd instruction
...
yasm tolerates mismatch between movd/movq and source register size,
adjusting the instruction according to the register. nasm is more
strict.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-08-07 15:21:20 +01:00
Mans Rullgard
a3df4781f4
x86: add colons after labels
...
nasm prints a warning if the colon is missing.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-08-07 15:20:56 +01:00
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
2012-08-07 16:00:24 +02:00
Anton Khirnov
104e10fb42
lavc: add AV prefix to codec ids.
2012-08-07 15:56:39 +02:00
Yaakov Selkowitz
f5d2c597e9
build: fix library installation on cygwin
...
This installs libraries using the proper names and locations,
generates an import lib for the DLL, and drops no longer needed
linker flags.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-08-07 12:39:04 +01:00
Michael Niedermayer
7febc5aa93
arm: fix compile with disable-optimizations on android
...
Fixes Ticket1241
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-07 13:31:40 +02:00
Clément Bœsch
cf753d5b59
doc: fix misspelled "convergence".
...
Found-by: David Rice
2012-08-07 07:37:39 +02:00
Paul B Mahol
011ce89dba
avcodec: add bmp parser
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2012-08-07 03:15:39 +00:00
Michael Niedermayer
29d1df66ad
mpegaudiodec: replace assert() by check under #ifdef DEBUG
...
The assert can be false with some invalid inputs, the check is
too expensive to always do though for just a warning message.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-07 04:45:06 +02:00
Michael Niedermayer
3865ec2ace
proresenc_kostya: do not attempt to free random things
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-07 01:11:28 +02:00
Michael Niedermayer
cde4741177
h264: disable assert on current_picture_ptr being null.
...
It is possible in various error pathes as well as gap handling
that this has already been allocated. Its not clear why that
would be a problem with the current code, thus disable the
assert to avoid common assert failure when asserts are enabled.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-07 00:18:59 +02:00
Michael Niedermayer
7ae473e8a0
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
nuv: K&R formatting cosmetics
build: generalise rules and variable settings for av* programs
nuv: check RTjpeg header for validity
Revert "nuv: check per-frame header for validity."
imc: remove unused field IMCContext.one_div_log2
imc: fix size of a memset()
imc: remove empty if() block
fate: simplify variable setting filter.mak
lavf: Declare an AVRational struct without a struct literal
Conflicts:
Makefile
configure
libavcodec/nuv.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-06 22:22:37 +02:00
Michael Niedermayer
a80ce390df
avidec: parse INFO tags at the end
...
Fixes Ticket1123
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-06 21:36:42 +02:00
Justin Ruggles
fdbeae4490
mpc8: add a flush function
...
Ensures that the next frame decoded after seeking will be decoded as a
keyframe.
2012-08-06 14:39:21 -04:00
Justin Ruggles
2fa57c9daf
mpc8: set packet duration and stream start time instead of tracking frames
...
Fixes mpc8 timestamps.
2012-08-06 14:39:21 -04:00
Michael Niedermayer
21eafa18e6
msrle: fix extradata palette handling
...
Fixes Ticket1273
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-06 19:39:11 +02:00
Diego Biurrun
cf22705e87
nuv: K&R formatting cosmetics
2012-08-06 19:03:33 +02:00
Mans Rullgard
baac24e680
build: generalise rules and variable settings for av* programs
...
This simplifies adding extra flags for individual programs
and also allows more than one object file per program.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-08-06 17:43:29 +01:00
Nicolas George
d74ade7d5f
ffprobe: refactor frames decoding.
2012-08-06 17:37:59 +02:00
Michael Niedermayer
610c67df37
mpegvideo: remove last_picture_ptr / h264 assert.
...
This assert is no longer true since h264 error concealment needs
last_picture_ptr to be set.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-06 16:49:49 +02:00
Michael Niedermayer
e6690b6a56
mpegvideo.c: convert some asserts to av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-06 16:40:22 +02:00
Michael Niedermayer
3e0b4e32c9
svq1enc: set picture_structure correctly
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-06 16:28:13 +02:00
Michael Niedermayer
f8dbbe5464
mpegvideo_enc: switch some assert to av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-06 14:41:16 +02:00
Michael Niedermayer
f72e0d9a9f
mpegvideo_enc: remove assert that has become obsolete with the new API
...
it now just checks uninitialized and unused data.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-06 14:41:16 +02:00
Janne Grunau
859a579e9b
nuv: check RTjpeg header for validity
...
CC: libav-stable@libav.org
2012-08-06 14:34:12 +02:00
Janne Grunau
110d015ad4
Revert "nuv: check per-frame header for validity."
...
The check is bogus since the nuv frameheader is already skipped
and the (decompressed) RTjpeg header is checked.
This reverts commit f6afacdb3b708720c9fb85984b4f7fdbca2b2036.
CC: libav-stable@libav.org
2012-08-06 14:33:50 +02:00
Mans Rullgard
b40ea0f41d
imc: remove unused field IMCContext.one_div_log2
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-08-06 10:20:48 +01:00
Mans Rullgard
bc90230b98
imc: fix size of a memset()
...
IMCContext was changed from an array to a pointer in 66b84e4,
but this memset() was not updated.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-08-06 10:20:42 +01:00
Mans Rullgard
2b6804328e
imc: remove empty if() block
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-08-06 10:20:11 +01:00
Mans Rullgard
add8f5eab7
fate: simplify variable setting filter.mak
...
This removes some needless indirection and duplication.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-08-06 10:19:27 +01:00
anonymous
388243bb27
udp: do not call pthread_{mutex,cond}_destroy when not initialized.
...
This seems to cause a crash on Windows.
The author of that patch was a random guy on IRC who wants to stay anonymous.
2012-08-06 10:06:26 +02:00
Michael Niedermayer
e6b9903d82
shorten: fix cmd type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-06 09:24:59 +02:00
Paul B Mahol
9c1619b5fe
mpc7: remove duplicated definitions
...
They are available in mpc.h
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2012-08-06 01:33:37 +00:00
Michael Niedermayer
7bf16ec300
mpc8: fix pts
...
Fixes Ticket1254
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-06 02:51:11 +02:00
Michael Niedermayer
e4b53d995c
mov: dont clip timestamps at 0
...
Fixes Ticket1251
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-06 01:38:18 +02:00
Paul B Mahol
958df52ae0
configure: make libtwolame check more robust
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2012-08-05 23:33:36 +00:00
Piotr Bandurski
68f4156f44
movenv: fix remuxing of qdm2
2012-08-06 00:37:28 +02:00
Piotr Bandurski
1b72a7e8a9
aiffenc: fix remuxing of qdm2
2012-08-06 00:08:53 +02:00
Clément Bœsch
16dc5f2050
Replace various inlined inverse AVRational with av_inv_q().
2012-08-06 00:04:36 +02:00
Clément Bœsch
ad55244c96
lavfi/overlay: remove dead initialization.
2012-08-06 00:04:36 +02:00
Piotr Bandurski
5d2f89a23c
movenc: fix remuxing of svq3
2012-08-05 23:58:10 +02:00
Martin Storsjö
6c071a2b38
lavf: Declare an AVRational struct without a struct literal
...
At this place, the normal way of initializing a struct works
fine, there's no need for a struct literal.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-08-06 00:48:58 +03:00