FFmpeg/libavcodec
Reimar Döffinger 681c180dc4 Make avcodec_open set codec_id and codec_type if they haven't been set.
This fixes the API breakage introduced by the check that avctx codec id and type
match the opened codec and should make (almost?) all applications work again.

Originally committed as revision 20125 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-01 15:54:55 +00:00
..
alpha
arm ARM: NEON optimised vector_fmul_add 2009-09-27 16:52:05 +00:00
avr32
bfin
mips
mlib
ppc cosmetics: fix indentation after previous commit 2009-09-27 16:52:00 +00:00
ps2
sh4
sparc
x86 Use MANGLE in cavsdsp, the current version using "m" constraints will not 2009-10-01 15:30:27 +00:00
4xm.c
8bps.c
8svx.c
aac_ac3_parser.c
aac_ac3_parser.h
aac_adtstoasc_bsf.c
aac_parser.c
aac_parser.h
aac.c Refactor channel element configuration and mapping code into its own function 2009-09-28 15:37:18 +00:00
aac.h Merge FFTContext and MDCTContext 2009-09-20 17:30:20 +00:00
aaccoder.c aacenc: Use preprocessor constants for trellis states and stages. 2009-09-21 04:32:51 +00:00
aacdectab.h AAC: Add channel layout support for channel configuration as defined in the 2009-09-28 15:35:13 +00:00
aacenc.c
aacenc.h Merge FFTContext and MDCTContext 2009-09-20 17:30:20 +00:00
aacpsy.c
aacpsy.h
aactab.c AAC: use new dsputil functions 2009-09-22 00:48:45 +00:00
aactab.h
aandcttab.c
aandcttab.h
aasc.c
ac3_parser.c
ac3_parser.h
ac3.c Remove unneeded table lookup. 2009-09-27 06:16:49 +00:00
ac3.h
ac3dec_data.c
ac3dec_data.h
ac3dec.c Change an error to a warning to support broken AC-3 files known to exist. 2009-10-01 00:06:54 +00:00
ac3dec.h Merge FFTContext and MDCTContext 2009-09-20 17:30:20 +00:00
ac3enc.c
ac3tab.c Update AC-3 channel map. 2F/2R layout only has 4 channels. This correction 2009-09-19 04:56:22 +00:00
ac3tab.h
acelp_filters.c
acelp_filters.h
acelp_pitch_delay.c
acelp_pitch_delay.h
acelp_vectors.c
acelp_vectors.h
adpcm.c
adx.h
adxdec.c
adxenc.c
alac.c
alacenc.c put_bits can only reliably write up to 31 bit bits, above it relies on 2009-10-01 15:40:29 +00:00
allcodecs.c Hook up the MD studio demuxer and Atrac1 decoder. 2009-09-22 17:28:03 +00:00
apedec.c Monkey's Audio uses subframes too, declare that in its capabilities 2009-09-16 16:18:18 +00:00
api-example.c
asv1.c
atrac1.c Reindent code folowing previous commit (r20019) 2009-09-24 21:26:35 +00:00
atrac1data.h Add missing stdint.h #include to fix 'make checkheaders'. 2009-09-18 19:41:23 +00:00
atrac3.c Remove unused variable, fixes the warning: 2009-09-20 18:21:54 +00:00
atrac3data.h Remove table that was forgotten in the split. 2009-09-11 19:39:40 +00:00
atrac.c Split out common routines needed in the atrac1 decoder from atrac3.c to atrac.c. 2009-09-08 19:25:54 +00:00
atrac.h Fix doxygen comment 2009-09-11 19:38:26 +00:00
audioconvert.c
audioconvert.h
avcodec.h Fix indentation in avcodec.h 2009-09-29 17:34:36 +00:00
avpacket.c
avs.c
beosthread.c
bethsoftvideo.c
bethsoftvideo.h
bfi.c
bitstream_filter.c
bitstream.c Remove ff_realloc_static, it is no longer used and since it was declared 2009-09-24 22:39:47 +00:00
bmp.c Make BMP decoder produce flipped picture with RLE compression. 2009-10-01 05:46:17 +00:00
bmp.h
bmpenc.c Cosmetics: Fix typo. 2009-09-06 18:24:25 +00:00
bytestream.h
c93.c
cabac.c
cabac.h
cavs_parser.c
cavs.c
cavs.h
cavsdata.h
cavsdec.c
cavsdsp.c
celp_filters.c
celp_filters.h
celp_math.c
celp_math.h
cga_data.c
cga_data.h
cinepak.c
cljr.c
colorspace.h
cook.c Merge FFTContext and MDCTContext 2009-09-20 17:30:20 +00:00
cookdata.h
cscd.c
cyuv.c
dca_parser.c
dca.c Merge FFTContext and MDCTContext 2009-09-20 17:30:20 +00:00
dca.h
dcadata.h
dcahuff.h
dct-test.c
dctref.c
dirac_parser.c
dnxhd_parser.c
dnxhddata.c
dnxhddata.h
dnxhddec.c
dnxhdenc.c Use a custom radix sort implementation instead of qsort in dnxhd encoder. 2009-09-21 10:28:31 +00:00
dnxhdenc.h
dpcm.c
dpx.c
dsicinav.c
dsputil.c Drop unused args from vector_fmul_add_add, simpify code, and rename 2009-09-27 16:51:54 +00:00
dsputil.h Drop unused args from vector_fmul_add_add, simpify code, and rename 2009-09-27 16:51:54 +00:00
dump_extradata_bsf.c
dv.c Use context instead of NULL for logging. 2009-09-29 19:18:51 +00:00
dvbsub_parser.c
dvbsub.c
dvbsubdec.c
dvdata.h Allow decoding of 625/50 (PAL) with video_stype==1. 2009-09-24 19:37:41 +00:00
dvdsub_parser.c
dvdsubdec.c
dvdsubenc.c
dxa.c
eac3dec_data.c
eac3dec_data.h
eac3dec.c
eacmv.c
eaidct.c
eamad.c
eatgq.c
eatgv.c
eatqi.c
elbg.c
elbg.h
error_resilience.c
escape124.c
eval.c eval: Check for return value of memory allocations. 2009-09-12 17:59:19 +00:00
eval.h
faandct.c
faandct.h
faanidct.c
faanidct.h
faxcompr.c Simplify r20025: use align_get_bits instead of reimplementing it. 2009-09-29 11:06:04 +00:00
faxcompr.h cosmetics: reindent and reformat function declarations 2009-09-28 05:19:13 +00:00
fft-test.c Merge FFTContext and MDCTContext 2009-09-20 17:30:20 +00:00
fft.c Move per-arch fft init bits into the corresponding subdirs 2009-09-15 21:14:14 +00:00
ffv1.c
flac.c
flac.h
flacdata.c
flacdata.h
flacdec.c add CODEC_CAP_SUBFRAMES to the FLAC decoder capabilities. also add a FIXME 2009-09-16 22:57:00 +00:00
flacenc.c
flashsv.c Do not release the AVFrame when using reget_buffer in flashsv. 2009-09-13 19:17:02 +00:00
flashsvenc.c
flicvideo.c
fraps.c
g726.c
g729.h
g729data.h
g729dec.c
get_bits.h Completely remove INIT_VLC_USE_STATIC, it is deprecated since ages and 2009-09-24 15:13:34 +00:00
gif.c
gifdec.c
golomb.c
golomb.h Make get_ur_golomb capable of reading 16 bit values. 2009-09-11 06:25:36 +00:00
h261_parser.c
h261.c
h261.h
h261data.h
h261dec.c
h261enc.c
h263_parser.c
h263_parser.h
h263.c
h263.h
h263data.h
h263dec.c
h264_mp4toannexb_bsf.c
h264_parser.c
h264_parser.h
h264.c Cosmetics: Fix typo. 2009-09-23 10:07:29 +00:00
h264.h
h264data.h
h264dspenc.c
h264enc.c
h264idct.c
h264pred.c
h264pred.h
huffman.c
huffman.h
huffyuv.c
idcinvideo.c
iirfilter.c
iirfilter.h
imc.c
imcdata.h
imgconvert.c simplify format string for writing pix_fmt string. 2009-09-26 22:54:29 +00:00
imgconvert.h
imx_dump_header_bsf.c
indeo2.c
indeo2data.h
indeo3.c
indeo3data.h
internal.h
interplayvideo.c
intrax8.c Change VLC table creation in x8_vlc_init to use INIT_VLC_USE_NEW_STATIC. 2009-09-24 11:04:46 +00:00
intrax8.h
intrax8dsp.c
intrax8huf.h
jfdctfst.c
jfdctint.c
jpegls.c
jpegls.h
jpeglsdec.c
jpeglsdec.h
jpeglsenc.c
jrevdct.c
kmvc.c
lcl.h
lcldec.c
lclenc.c
libdirac_libschro.c
libdirac_libschro.h
libdirac.h
libdiracdec.c
libdiracenc.c
libfaac.c
libfaad.c
libgsm.c
libmp3lame.c
libopencore-amr.c
libopenjpeg.c
libschroedinger.c
libschroedinger.h
libschroedingerdec.c
libschroedingerenc.c
libspeexdec.c
libtheoraenc.c Support constant-quant encoding for libtheora 2009-09-30 22:25:49 +00:00
libvorbis.c
libx264.c cosmetics: K&R coding style, prettyprinting 2009-09-29 18:03:30 +00:00
libxvid_internal.h
libxvid_rc.c
libxvidff.c
ljpegenc.c
loco.c
lpc.c
lpc.h
lsp.c
lsp.h
lzw.c
lzw.h
lzwenc.c
mace.c
Makefile Hook up the MD studio demuxer and Atrac1 decoder. 2009-09-22 17:28:03 +00:00
mathops.h
mdct.c Allow arch-specific mdct code to request interleaving of cos/sin tables 2009-09-21 02:56:06 +00:00
mdec.c
mimic.c
mjpeg_parser.c
mjpeg.c
mjpeg.h
mjpega_dump_header_bsf.c
mjpegbdec.c
mjpegdec.c lavc MJPEG decoder is capable of decoding some extended sequential 2009-10-01 05:52:38 +00:00
mjpegdec.h
mjpegenc.c Use skip_put_bytes in MJPEG encoder instead of filling all bytes with 0 2009-09-30 10:48:14 +00:00
mjpegenc.h
mlp_parser.c
mlp_parser.h
mlp.c
mlp.h Specify maximum sample rate of MLP by defining the factor relative to 48000 2009-09-26 16:04:35 +00:00
mlpdec.c
mlpdsp.c
mmvideo.c
motion_est_template.c
motion_est.c
motion-test.c
motionpixels.c
movsub_bsf.c
mp3_header_compress_bsf.c
mp3_header_decompress_bsf.c
mpc7.c
mpc7data.h
mpc8.c
mpc8data.h
mpc8huff.h
mpc.c
mpc.h
mpcdata.h
mpeg4audio.c
mpeg4audio.h
mpeg4data.h
mpeg4video_parser.c
mpeg4video_parser.h
mpeg12.c Move down HWAccel code path so that to fill in s->mb_x first. 2009-09-16 07:49:08 +00:00
mpeg12.h
mpeg12data.c
mpeg12data.h
mpeg12decdata.h
mpeg12enc.c Cosmetics: Reindent after r19927. 2009-09-20 14:09:27 +00:00
mpegaudio_parser.c
mpegaudio.c
mpegaudio.h
mpegaudiodata.c
mpegaudiodata.h
mpegaudiodec.c Set data_size to 0 to avoid having it uninitialized. 2009-09-23 11:44:30 +00:00
mpegaudiodecheader.c
mpegaudiodecheader.h
mpegaudiodectab.h
mpegaudioenc.c Use floating point mathematics when encoding mpeg audio. 2009-09-30 15:13:09 +00:00
mpegaudiotab.h
mpegvideo_common.h
mpegvideo_enc.c Check for thread_count==0. 2009-09-10 14:12:05 +00:00
mpegvideo_parser.c
mpegvideo_xvmc.c
mpegvideo.c
mpegvideo.h
msmpeg4.c
msmpeg4.h
msmpeg4data.c
msmpeg4data.h
msrle.c
msrledec.c Make MS RLE decoder produce both bottom-up and top-down pictures 2009-10-01 05:42:55 +00:00
msrledec.h
msvideo1.c
nellymoser.c
nellymoser.h
nellymoserdec.c Merge FFTContext and MDCTContext 2009-09-20 17:30:20 +00:00
nellymoserenc.c Merge FFTContext and MDCTContext 2009-09-20 17:30:20 +00:00
noise_bsf.c
nuv.c Simplify: reget_buffer behaves exactly like get_buffer if the buffer was 2009-09-10 12:23:45 +00:00
opt.c
opt.h
options.c
os2thread.c
parser.c
parser.h
pcm-mpeg.c Remove pointless debug statement that fails to compile. 2009-09-08 09:11:56 +00:00
pcm.c
pcx.c
pcxenc.c
pgssubdec.c
pixdesc.c
pixdesc.h
png.c
png.h
pngdec.c
pngenc.c
pnm_parser.c
pnm.c
pnm.h
pnmenc.c
psymodel.c
psymodel.h
pthread.c
ptx.c
put_bits.h put_bits can only reliably write up to 31 bit bits, above it relies on 2009-10-01 15:40:29 +00:00
qcelpdata.h
qcelpdec.c
qdm2.c
qdm2data.h
qdrw.c
qpeg.c
qtrle.c
qtrleenc.c
ra144.c
ra144.h
ra288.c
ra288.h
rangecoder.c
rangecoder.h
ratecontrol.c
ratecontrol.h
raw.c
raw.h
rawdec.c
rawenc.c
rdft.c
rectangle.h
remove_extradata_bsf.c
resample2.c
resample.c
rl2.c
rl.h
rle.c
rle.h
roqaudioenc.c
roqvideo.c
roqvideo.h
roqvideodec.c
roqvideoenc.c
rpza.c
rtjpeg.c
rtjpeg.h
rv10.c
rv10enc.c
rv20enc.c
rv30.c
rv30data.h
rv30dsp.c
rv34.c
rv34.h
rv34data.h
rv34vlc.h
rv40.c
rv40data.h
rv40dsp.c
rv40vlc2.h
s3tc.c
s3tc.h
sgi.h
sgidec.c Support uncompressed 16 bit sgi image format, as e.g. used by the files at 2009-09-19 11:42:41 +00:00
sgienc.c Fix wrongly indented block. 2009-10-01 09:30:08 +00:00
shorten.c
simple_idct.c
simple_idct.h
smacker.c
smc.c Simplify color_flags calculation, remove a pointless initialization 2009-09-19 11:36:51 +00:00
snow.c Reorder functions so that encoding functions are disabled by the preprocessor. 2009-09-18 19:45:09 +00:00
snow.h
sonic.c
sp5x.h
sp5xdec.c
sunrast.c
svq1_cb.h
svq1_vlc.h
svq1.c
svq1.h
svq1dec.c Replace last use of INIT_VLC_USE_STATIC by INIT_VLC_USE_NEW_STATIC in svq1dec 2009-09-24 15:12:05 +00:00
svq1enc_cb.h
svq1enc.c
svq3.c Check thread count as multithreaded decoding is not supported. 2009-09-09 21:44:48 +00:00
targa.c Remove useless code causing crash in Targa decoder 2009-09-17 05:01:27 +00:00
targaenc.c Fix indentation after last commit. 2009-10-01 12:21:54 +00:00
tiertexseqv.c
tiff.c Do not attempt to decode TIFF files containing fax data with uncompressed 2009-10-01 06:31:49 +00:00
tiff.h Support both LSB and MSB orders for TIFF CCITT G.x compressed data. 2009-09-24 18:30:28 +00:00
tiffenc.c
tmv.c
truemotion1.c
truemotion1data.h
truemotion2.c
truespeech_data.h
truespeech.c
tscc.c
tta.c
twinvq_data.h
twinvq.c Merge FFTContext and MDCTContext 2009-09-20 17:30:20 +00:00
txd.c
ulti_cb.h
ulti.c
unary.h
utils.c Make avcodec_open set codec_id and codec_type if they haven't been set. 2009-10-01 15:54:55 +00:00
v210dec.c Remove ; after while(0) in macros. 2009-09-12 20:10:02 +00:00
v210enc.c Remove ; after while(0) in macros. 2009-09-12 20:10:02 +00:00
v210x.c
vaapi_internal.h
vaapi_mpeg2.c Fill in new VASliceParameterBufferMPEG2.slice_horizontal_position field. 2009-09-16 07:50:09 +00:00
vaapi_mpeg4.c
vaapi_vc1.c
vaapi.c
vaapi.h
vb.c
vc1_parser.c
vc1.c
vc1.h
vc1acdata.h
vc1data.c
vc1data.h
vc1dec.c Use ff_msmpeg4_decode_init to initialize ff_msmp4_mb_i_vlc since static 2009-09-24 10:49:47 +00:00
vc1dsp.c
vcr1.c
vdpau_internal.h
vdpau.c
vdpau.h
vmdav.c
vmnc.c
vorbis_data.c whitespace cosmetics, prettyprinting, K&R coding style 2009-09-29 11:43:58 +00:00
vorbis_dec.c whitespace cosmetics, prettyprinting, K&R coding style 2009-09-29 11:43:58 +00:00
vorbis_enc_data.h whitespace cosmetics, prettyprinting, K&R coding style 2009-09-29 11:43:58 +00:00
vorbis_enc.c put_bits can only reliably write up to 31 bit bits, above it relies on 2009-10-01 15:40:29 +00:00
vorbis.c whitespace cosmetics, prettyprinting, K&R coding style 2009-09-29 11:43:58 +00:00
vorbis.h brace placement and linebreak cosmetics 2009-09-28 21:13:47 +00:00
vp3_parser.c
vp3.c Make sure that all memory allocations succeed. 2009-09-24 06:33:16 +00:00
vp3data.h
vp3dsp.c
vp5.c
vp5data.h
vp6.c
vp6data.h
vp6dsp.c
vp56.c
vp56.h
vp56data.c
vp56data.h
vqavideo.c
w32thread.c
wavpack.c Add CODEC_CAP_SUBFRAMES for codecs that output multiple subframes 2009-09-16 15:08:26 +00:00
wma.c WMA: store level_table as floats, use type punning for sign flip in decode 2009-09-29 10:38:34 +00:00
wma.h WMA: store level_table as floats, use type punning for sign flip in decode 2009-09-29 10:38:34 +00:00
wmadata.h
wmadec.c WMA: fix loop unrolling in decode_exp_vlc() 2009-09-29 12:48:24 +00:00
wmaenc.c
wmaprodata.h WMA: store level_table as floats, use type punning for sign flip in decode 2009-09-29 10:38:34 +00:00
wmaprodec.c WMA: store level_table as floats, use type punning for sign flip in decode 2009-09-29 10:38:34 +00:00
wmv2.c
wmv2.h
wmv2dec.c
wmv2enc.c
wnv1.c
ws-snd1.c
xan.c
xiph.c
xiph.h
xl.c
xsubdec.c
xsubenc.c
xvmc_internal.h
xvmc.h
zmbv.c
zmbvenc.c