1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00
Commit Graph

279 Commits

Author SHA1 Message Date
Aurelien Jacobs
e471e3c4a5 Fix playback of strange AVI files with stray LIST.
sample: http://samples.mplayerhq.hu/avi/AV36_1.AVI
fix suggested by Michael

Originally committed as revision 20118 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-01 10:24:02 +00:00
Maksym Veremeyenko
2c14ded386 Fix a bug with reading non-interleaved AVI if one the streams is
shorter.

Patch by Maksym Veremeyenko, verem m1stereo tv

Originally committed as revision 19798 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-09 16:26:24 +00:00
Maksym Veremeyenko
b60de406a4 Factorise st->nb_index_entries check.
Patch by Maksym Veremeyenko, verem m1stereo tv

Originally committed as revision 19797 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-09 16:25:12 +00:00
Reimar Döffinger
44ed34b790 Check for seek failures in avi_load_index, otherwise if the index offset
is invalid (e.g. truncated file) we might end up reading the whole file
since trying to seek beyond the end of file does not set EOF.

Originally committed as revision 19709 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-26 08:38:44 +00:00
Maksym Veremeyenko
7305d97f04 Do not read index chunks as audio/video data; closes issue 1336.
patch by Maksym Veremeyenko, verem m1stereo tv

Originally committed as revision 19700 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-25 09:46:16 +00:00
Aurelien Jacobs
7a9c86e9f8 avidec: simplify, using av_rescale_q() instead of av_rescale()
Originally committed as revision 19624 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-10 20:53:32 +00:00
Diego Biurrun
18b55f639a Remove pointless '#ifdef DEBUG' around dprintf macro.
Originally committed as revision 19535 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-29 17:12:47 +00:00
Måns Rullgård
63613fe615 Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
Originally committed as revision 19508 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-26 12:20:04 +00:00
Reimar Döffinger
3dcddf82ed Check for failed extradata malloc, fixes a crash in out-of-memory conditions
or with extremely large extradata.

Originally committed as revision 19333 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-03 11:27:52 +00:00
Reimar Döffinger
5a4a4d7839 Check size of "strf" header against size of enclosing "LIST" if there is one.
Originally committed as revision 19332 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-03 11:26:14 +00:00
Daniel Verkamp
1a40491ef2 Add ff_ prefixes to exported symbols in libavformat/riff.h.
patch by Daniel Verkamp, aniel drv nu

Originally committed as revision 19254 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-22 23:09:34 +00:00
Michael Niedermayer
8c68f25b20 Workaround broken AVI files from DC-XZ6.
Fixes issue897.

Originally committed as revision 18942 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-25 18:28:26 +00:00
Baptiste Coudurier
c13b250bad move DEBUG define before include to get dprintf and change printf to dprintf
Originally committed as revision 18932 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-24 22:59:25 +00:00
Baptiste Coudurier
876578914b set avi fsize to INT64_MAX if riff tag end is not set and file size is not available
Originally committed as revision 18052 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 21:57:14 +00:00
Michael Niedermayer
c60a0f85ee Check for alloc failures.
Originally committed as revision 17497 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 20:57:46 +00:00
Michael Niedermayer
8ebe099ac0 Check for EOF during index reading.
Originally committed as revision 17496 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 20:44:39 +00:00
Michael Niedermayer
f5007cc844 Handle chunks with the MSB in size set correctly that is unsigned.
Originally committed as revision 17491 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 20:11:34 +00:00
Michael Niedermayer
31f2616db8 Fix raw rgb/bgr vertical flip in avi based on info from http://www.fourcc.org/fccbihgt.php.
partially fixes issue862.

Originally committed as revision 17475 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 15:32:56 +00:00
Peter Ross
1e04bbeede AVI demuxer: return AVERROR_EOF upon detection of end of file.
Originally committed as revision 17456 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 12:19:33 +00:00
Måns Rullgård
037c08d6cd avidec: fix error introduced in r17382
Originally committed as revision 17385 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 18:52:14 +00:00
Benoit Fouet
87ad63c0f9 Add a context to av_log() calls and modify a function prototype to allow it.
Originally committed as revision 17382 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 16:33:00 +00:00
Aurelien Jacobs
5ea7ce8843 modify the way to pass parameters to av_metadata_set()
This improves code readability and this avoid warnings about discarding
qualifiers from pointer target type.

Originally committed as revision 16952 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-02 21:45:55 +00:00
Aurelien Jacobs
2bb6eba21d remove ff_get_fourcc() and use AV_RL32() instead
Originally committed as revision 16654 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-17 12:21:01 +00:00
Marc Mason
9d9aac84f6 Make unsigned int a variable that does not need to be explicitely 32 bits.
Fixes a warning.
Patch by: Marc Mason mpeg (your_ad_here) blue (chez) free fr

Originally committed as revision 16632 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-16 14:03:46 +00:00
Aurelien Jacobs
49fb20cb8a replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
and remove all ENABLE_ definitions.

Originally committed as revision 16600 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-14 17:19:17 +00:00
Måns Rullgård
7b114c0925 AVI: add bswap.h include needed on big endian
Originally committed as revision 16564 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-12 00:07:40 +00:00
Aurelien Jacobs
bc1d2afb37 rename AVMetaData to AVMetadata and meta_data to metadata
Originally committed as revision 16430 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-04 23:31:31 +00:00
Michael Niedermayer
47146dfbf6 Generic metadata API.
avi is updated as example.
No version bump, the API still might change slightly ...
No update to ffmpeg.c as requested by aurel.

Originally committed as revision 16424 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-04 18:48:37 +00:00
Michael Niedermayer
ca5b528ea1 Fix bug where the avi demxuer lost the first frame of malformed
ODML avis.
Fixes VS2k5DebugDemo-01-partial.avi

Originally committed as revision 16167 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-16 16:14:07 +00:00
Michael Niedermayer
a3bb564ee5 10l (forgot sample_size)
Should fix fate.

Originally committed as revision 16133 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-14 20:38:05 +00:00
Michael Niedermayer
25983dcd53 Fix non interleaved variable fps ODML avis.
Fixed issue738

Originally committed as revision 16127 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-14 15:48:48 +00:00
Michael Niedermayer
7ccc636f03 Favor even chunk sizes in ambiguous cases.
Fixes transcode_069_produces_uneven_chunk_size.avi.

Originally committed as revision 15557 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-04 22:26:43 +00:00
Michael Niedermayer
f080a7bd90 Factorize stream id parsing.
Originally committed as revision 15556 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-04 21:57:01 +00:00
Diego Biurrun
bc5c918ea8 Remove offset_t typedef and use int64_t directly instead.
The name offset_t is easily confused with the standard off_t type and
*_t is POSIX reserved namespace if any POSIX header is included.

Originally committed as revision 15533 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-03 10:16:29 +00:00
Luca Abeni
dd1c8f3e6e Bump Major version, this commit is almost just renaming bits_per_sample to
bits_per_coded_sample but that cannot be done seperately.
Patch by Luca Abeni
Also reset the minor version and fix the forgotton change to libfaad.
Note: The API/ABI should not be considered stable yet, there still may
be a change done here or there if some developer has some cleanup ideas and
patches!

Originally committed as revision 15262 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-09-08 14:24:59 +00:00
Aurelien Jacobs
5972945197 convert every muxer/demuxer to write/read sample_aspect_ratio from/to
the corresponding AVStream instead of AVCodecContext

Originally committed as revision 14933 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-23 23:43:20 +00:00
Baptiste Coudurier
62f2523062 change assert test due to the new reducing of time_base in av_set_pts_info, fix #561
Originally committed as revision 14477 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-30 21:07:54 +00:00
Diego Biurrun
15d6e3612f spelling cosmetics
Originally committed as revision 14064 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-04 13:05:06 +00:00
Baptiste Coudurier
ade8d8b939 uniformize AVStream->priv_data freeing in av_close_input_stream
Originally committed as revision 13838 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-20 17:22:56 +00:00
Baptiste Coudurier
ccafd47251 factorize read_header failure freeing code
Originally committed as revision 13837 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-20 17:16:56 +00:00
Florian Echtler
25176d6e22 Parse 'dats' as data.
Patch by Florian Echtler: floe butterbrot org

Originally committed as revision 13801 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-18 09:03:38 +00:00
Stefano Sabatini
bde15e74de Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
patch by Stefano Sabatini, stefano.sabatini-lala poste.it
along with some spelling/consistency fixes for the long names by me

Originally committed as revision 13649 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-03 16:20:54 +00:00
Michael Niedermayer
fce88d52ca Fixes NULL pointer dereference CID66
Originally committed as revision 13483 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 00:10:34 +00:00
Michael Niedermayer
9d4cd3bfd5 Tell the user if a AVI is non interleaved.
Originally committed as revision 13482 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 00:07:41 +00:00
Diego Biurrun
f4433de9ef consistency cosmetics: indices --> indexes
Originally committed as revision 13444 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 23:14:25 +00:00
Michael Niedermayer
2be83b96b6 Support non interleaved avi with phantom streams.
Originally committed as revision 13436 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 20:29:16 +00:00
Michael Niedermayer
7ce76ee433 Print warning if scale/rate is invalid.
Originally committed as revision 12806 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-13 11:45:18 +00:00
Michael Niedermayer
0dbb651564 indent
Originally committed as revision 12805 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-13 11:41:45 +00:00
Michael Niedermayer
4a030a1fc7 Restructure if/else a little.
Originally committed as revision 12804 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-13 11:41:09 +00:00
Michael Niedermayer
1ce50d32b7 indent
Originally committed as revision 12618 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-28 03:50:40 +00:00
Michael Niedermayer
79d6b9cbd0 1000l to myself, dereferencing uninitalized pointer.
Originally committed as revision 12614 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-28 02:44:44 +00:00
Michael Niedermayer
41757171e7 Support wb00+dc00 chunk mix.
fixes issue402

Originally committed as revision 12609 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-27 20:58:01 +00:00
Michael Niedermayer
61559562f5 Fix aspect ratio.
fixes issue404
avienc.c change by StevieS

Originally committed as revision 12601 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-27 01:18:16 +00:00
Michael Niedermayer
b7c407449b One non functional AVPalette chunk less, one heap overflow less.
Fixes playback of CIMOVI01.avi.

Originally committed as revision 12517 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-20 16:29:18 +00:00
Michael Niedermayer
78db672cae Use block_align as the avi spec says.
fix issue274

Originally committed as revision 12296 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 01:27:15 +00:00
Michael Niedermayer
143b082044 Print slightly more useful info.
Originally committed as revision 12295 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 01:23:18 +00:00
Michael Niedermayer
c86ec2f4c3 Extract aspect ratio from ODML/vprp.
Originally committed as revision 11365 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-01 22:05:51 +00:00
Björn Axelsson
899681cd1d Use dynamically allocated ByteIOContext in AVFormatContext
patch by: Björn Axelsson, bjorn d axelsson a intinor d se
thread: [PATCH] Remove static ByteIOContexts, 06 nov 2007

Originally committed as revision 11071 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-21 07:41:00 +00:00
Vladimir Voroshilov
0b04ebb326 Add support for AMV variants of AVI files.
patch by Vladimir Voroshilov, voroshil gmail com
Date: Sun, 30 Sep 2007 00:30:34 +0700
Subject: Re: [FFmpeg-devel] [PATCH] Demuxer for AMV files

Originally committed as revision 10623 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-29 22:47:34 +00:00
Aurelien Jacobs
b925ef61dd add support for AVI files with On2 header
Originally committed as revision 10591 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-26 12:30:24 +00:00
Aurelien Jacobs
7b31b0929c use a table to parse AVI file header
Originally committed as revision 10590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-26 12:29:32 +00:00
Michael Niedermayer
bc3a73bc87 remove broken movi_end skip-hack-check
this should fix seeking over the first riff chunk in odml

Originally committed as revision 10114 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-14 03:00:56 +00:00
Michael Niedermayer
ea4b2b5e2c do not misuse movi_end for checking chunk sizes
Originally committed as revision 10113 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-14 02:27:31 +00:00
Reimar Döffinger
cbb79c0ea8 Hack to support XSUB subtitles in AVI
Originally committed as revision 9936 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 12:11:16 +00:00
Aurelien Jacobs
57004ff1d7 add an enum for need_parsing
Originally committed as revision 8742 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-15 13:51:57 +00:00
Joakim Plate
a74008a4c3 timestamps generation improvement when parsing avi
patch by Joakim \ elupus chez ecce dot se /
original thread:
date: 03/19/2007 01:47 AM
subject: [Ffmpeg-devel] [RFC] Improvement for the odd timestamp generation when parser is in use.

Originally committed as revision 8725 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-13 07:50:04 +00:00
Michael Niedermayer
87e8788680 allocate 32 extra bytes at the end of the probe buffer and remove most probe buf_size checks
Originally committed as revision 8677 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-08 11:34:15 +00:00
Michael Niedermayer
755c18ae5d fix demuxing of broken MVI_3011.avi
Originally committed as revision 8317 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-10 19:30:59 +00:00
Michael Niedermayer
6d29fba950 support yet another broken avi (filedoesitbetter.avi) which has a wrong stream count
Originally committed as revision 7961 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-13 00:38:16 +00:00
Michael Niedermayer
d09ea618ed supporting files with A,V,I,0x19 header
Originally committed as revision 7876 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-07 17:56:31 +00:00
Michael Niedermayer
4323b09d38 indent
Originally committed as revision 7845 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-05 23:16:01 +00:00
Michael Niedermayer
ded3c7da61 dynamic index building so forward and backward seeking in avi without an index is possible
Originally committed as revision 7842 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-05 23:06:08 +00:00
Michael Niedermayer
79a5b35c05 remove padding to 16bit code, i dont think this change can break anything and it makes the broken MPEG2-pub.avi from http://www.albx79.it/stuff/ playable other players arent that picky either ...
Originally committed as revision 7670 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-23 18:37:23 +00:00
Diego Biurrun
db69c2e590 Make nb_streams unsigned to avoid an ugly cast.
Originally committed as revision 7556 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-16 22:31:10 +00:00
Michael Niedermayer
c33fc0a540 fixing segfault with http://sam.zoy.org/zzuf/lol-ffplay.avi
Originally committed as revision 7537 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-15 22:56:46 +00:00
Roman Shaposhnik
6eb2de748d * Fixing seeking with DV-AVI (by Jeff Downs <heydowns at borg dot com>)
Originally committed as revision 7439 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-11 22:32:19 +00:00
Diego Biurrun
5836d158b6 Fix misplaced comment.
Originally committed as revision 7120 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-18 20:34:24 +00:00
Diego Biurrun
8662900b3b Clean up XAN DPCM hack and set codec_tag to 0 for XAN DPCM, AVI files
with XAN DPCM audio (wrongly) declare PCM audio in the header.

Originally committed as revision 7119 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-18 17:37:56 +00:00
Michael Niedermayer
2b70eb2bed fix support for avis with sample_size > packet size
Originally committed as revision 7110 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-16 23:36:54 +00:00
Aurelien Jacobs
38ca53dae9 cosmetic: fix indentation after previous commit
Originally committed as revision 6987 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-12 16:36:14 +00:00
Aurelien Jacobs
a2a6332b56 Fix avidec.c compilation when dv demuxer is disabled.
Originally committed as revision 6986 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-12 16:35:19 +00:00
Baptiste Coudurier
cbee7a6944 get rid of CODEC_ID_MPEG4AAC after next version bump, and change it to CODEC_ID_AAC where used
Originally committed as revision 6954 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-09 11:37:30 +00:00
Steve L'Homme
949b1a13bf Replace most of the %lld and %llx by their (cleaner) PRI*64 counterparts.
patch by Steve Lhomme, slhomme divxcorp com

Originally committed as revision 6868 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 22:39:58 +00:00
Steve L'Homme
e344c1ea36 reindentation, patch by From: Steve Lhomme, slhomme divxcorp com
Originally committed as revision 6864 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 21:09:14 +00:00
Aurelien Jacobs
7fbde3431a replace coder/decoder file description in libavformat by muxer/demuxer
Originally committed as revision 6774 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-23 08:57:54 +00:00
Diego Biurrun
b78e7197a8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
and fix GPL/LGPL version mismatches.

Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 15:30:46 +00:00
Panagiotis Issaris
2ad4648f97 Allow to get the the track number in the IPRT (part) tag in AVI.
Patch by Panagiotis Issaris % takis P issaris A uhasselt P be %
Original thread:
Date: Sep 6, 2006 6:00 PM
Subject: [Ffmpeg-devel] [PATCH] Enable track tag in AVI

Originally committed as revision 6190 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-07 16:35:22 +00:00
Panagiotis Issaris
f0861f466f Better tag support:
- Make ffplay show comments and copyright info besides the current track, title, author, album, year and genre.
- Makes the AVI demuxer parse the album name stores in the IPRD tag by the AVI muxer.
Patch by takis P issaris A uhasselt P be
Original thread:
[Ffmpeg-devel] [PATCH] Better tag support
Date: 09/06/06 16:58

Originally committed as revision 6186 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-07 08:09:15 +00:00
Michael Niedermayer
2c00106c2b ignore index parameter to ignore the ODML index in avi
Originally committed as revision 6177 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-05 19:23:32 +00:00
David Conrad
2064c77ab9 Fix for AVI files with odd sized 'movi' list
Patch by David Conrad <davedc_@umbc.edu>
Original thread:
Date: Wed, 30 Aug 2006 15:12:35 -0400
Subject: [Ffmpeg-devel] [PATCH] Fix for AVI files with odd sized 'movi' list

Originally committed as revision 6140 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-31 09:43:29 +00:00
Michael Niedermayer
965a63af2b support some totally broken ODML variant
Originally committed as revision 6091 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-25 20:50:18 +00:00
David Conrad
57060f8936 AVI tag reading and writing patch by David Conrad.
umovimus at gmail dot com

Originally committed as revision 6022 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-18 16:48:35 +00:00
Måns Rullgård
9d9f4119bd move common stuff from avienc.c and wav.c to new file riff.c
Originally committed as revision 5720 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-12 00:09:34 +00:00
Måns Rullgård
ff70e60176 allow individual selection of muxers and demuxers
Originally committed as revision 5707 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-10 21:14:37 +00:00
Måns Rullgård
d2a067d1d9 give AVInput/OutputFormat structs consistent names
Originally committed as revision 5697 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 23:40:53 +00:00
Måns Rullgård
26b891356c kill warnings
Originally committed as revision 5586 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-02 19:35:07 +00:00
Måns Rullgård
a5e9102b4b free codec extradata in av_close_input_file
Originally committed as revision 5484 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-06-16 07:54:37 +00:00
Michael Niedermayer
b7b225581f dont load the index if we cant seek back
Originally committed as revision 5475 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-06-14 00:32:10 +00:00
Kostya Shishkov
1c6606e2d0 Fix demuxing of AVIs with pad streams.
Originally committed as revision 5271 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-04-06 03:33:10 +00:00
Michael Niedermayer
b72a2bc82f dwstart support
Originally committed as revision 5097 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-03-02 14:50:31 +00:00
Michael Niedermayer
e84dab5f57 fixing demuxing of minorityreport.AVI
Originally committed as revision 5096 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-03-02 14:27:41 +00:00
Michael Niedermayer
8945ebb9c1 fixing av sync in videotest.avi (index doesnt match chunks, header doesnt indicate that)
Originally committed as revision 5088 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-03-01 16:11:04 +00:00
Michael Niedermayer
115e8ae577 support seeking in RenderAvi.avi (audio stream == single huge chunk)
Originally committed as revision 5087 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-03-01 15:42:07 +00:00
Michael Niedermayer
8223bca50d 10l forgot to set packet_size
Originally committed as revision 5086 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-03-01 15:21:53 +00:00
Michael Niedermayer
1894edeb74 fix demuxing of XviD_with_3_AAC-HE_audio_streams.avi
Originally committed as revision 5085 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-03-01 12:04:22 +00:00
Michael Niedermayer
5c89153e90 add movi_list offset into index
Originally committed as revision 5084 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-03-01 11:41:16 +00:00
Michael Niedermayer
30a43f2d09 add size to AVIndex
Originally committed as revision 5083 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-03-01 11:29:55 +00:00
Michael Niedermayer
94d1d6c02d ODML index parsing support
Originally committed as revision 5081 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-03-01 01:32:32 +00:00
Diego Biurrun
5509bffa88 Update licensing information: The FSF changed postal address.
Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-01-12 22:43:26 +00:00
Diego Biurrun
bb270c0896 COSMETICS: tabs --> spaces, some prettyprinting
Originally committed as revision 4764 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-22 01:10:11 +00:00
Diego Biurrun
115329f160 COSMETICS: Remove all trailing whitespace.
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-17 18:14:38 +00:00
Måns Rullgård
79396ac685 Kill some compiler warnings. Compiled code verified identical after changes.
Originally committed as revision 4567 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-09-06 21:25:35 +00:00
Michael Niedermayer
7cbaa7bafa parse pict_type for streams in avi
fix mpeg4 parser so it outputs te pict_type
support header only parseing without repacking

Originally committed as revision 4527 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-08-15 15:58:21 +00:00
Måns Rullgård
bf4e3bd2d0 kill a bunch of compiler warnings
Originally committed as revision 4522 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-08-14 15:42:40 +00:00
Michael Niedermayer
01f4895c68 changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
Originally committed as revision 4453 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-07-17 22:24:36 +00:00
Michael Niedermayer
2692067a45 AVPacket.pos
Originally committed as revision 4314 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-05-26 20:17:12 +00:00
Aurelien Jacobs
a965c478b2 drop most url_fileno() calls (allows to use ByteIOContext directly in caller apps instead of URLProtocol)
Originally committed as revision 4275 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-05-19 00:06:27 +00:00
Michael Niedermayer
c0df9d75bd switch to native time bases
Originally committed as revision 4168 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-04-30 21:43:59 +00:00
Michael Niedermayer
d46db490b1 segfault fix
Originally committed as revision 4079 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-03-24 21:27:54 +00:00
Michael Niedermayer
f3356e9c9e more fine grained discarding of packets
Originally committed as revision 4051 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-03-17 01:25:01 +00:00
Michael Niedermayer
80e3a08c97 reverse zero packet dissapearence "feature"
Originally committed as revision 4046 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-03-16 13:26:52 +00:00
Michael Niedermayer
b53f10648b cleanup strh parser
Originally committed as revision 4041 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-03-15 21:25:59 +00:00
Michael Niedermayer
7c7f386677 non interleaved avi support
various fixes/workarounds

Originally committed as revision 4038 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-03-15 03:42:57 +00:00
Michael Niedermayer
52a0bbff1f use libavformats index system instead of the half duplicated mess in avidec.c
Originally committed as revision 4036 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-03-13 02:04:35 +00:00
Michael Niedermayer
cb43c0e10d audio duration fix?
Originally committed as revision 3952 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-02-08 00:38:24 +00:00
Michael Niedermayer
8d65750ef1 overflows
Originally committed as revision 3935 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-02-04 11:26:40 +00:00
Michael Niedermayer
b4aea108eb support discarding of uninterresting packets
Originally committed as revision 3858 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-01-22 01:48:11 +00:00
Michael Niedermayer
0fbc6961eb 1/0 fix
Originally committed as revision 3856 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-01-21 23:38:09 +00:00
Michael Niedermayer
568e18b15e integer overflows, heap corruption
possible arbitrary code execution cannot be ruled out in some cases
precautionary checks

Originally committed as revision 3813 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-01-08 14:21:33 +00:00
Michael Niedermayer
55c7e4ad5d broken avi / div by zero fix
Originally committed as revision 3761 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-12-19 02:55:40 +00:00
Michael Niedermayer
3129cd0140 allocate a few bytes more for extradata so the bitstream reader if its used by the codec for parsing extardata, doesnt read over the end
Originally committed as revision 3679 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-11-13 01:27:35 +00:00
Kostya Shishkov
61c52ead7c When playing
ftp://ftp.mplayerhq.hu/MPlayer/samples/V-codecs/QPEG/VWbig6.avi with my
decoder (should appear soon) it hadn't changed palette even there are
palette change chunks in that AVI.
Here is small patch to make it work (zero number of colors to change in
that chunk actually means to change ALL colors).
patch by (Kostya <cannonball>at<bw-team>dot<com>)

Originally committed as revision 3670 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-11-12 01:32:35 +00:00
Michael Niedermayer
4a8d51356f fixing demuxing of vc2_intro.avi
Originally committed as revision 3610 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-10-19 10:37:02 +00:00
Roman Shaposhnik
664f583665 * static allocation for audio packets. This will make it a little bit
faster and easier to follow.

   * misc. fixes for problems with seeking

Originally committed as revision 3590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-10-13 00:03:00 +00:00
Michael Niedermayer
7b3c1382bf 100l (forgoten seeking functions)
Originally committed as revision 3585 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-10-11 23:53:53 +00:00
Michael Niedermayer
30667f42f5 pads stream
Originally committed as revision 3531 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-09-28 09:55:44 +00:00
Roman Shaposhnik
2c3cee348f * fix for a DV regression introduced with the last round of avi_read_packet
fixes.

Originally committed as revision 3482 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-09-19 19:24:56 +00:00
Mike Melanson
69bde0b258 added support for the elusive AVI palette change chunk, courtesy of
Kostya <cannonball at bw-team.com>

Originally committed as revision 3467 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-09-16 02:14:50 +00:00
Michael Niedermayer
d2c5f0a4bf various fixes for the main chunk demux loop
Originally committed as revision 3464 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-09-15 01:35:09 +00:00
Roman Shaposhnik
8f9298f801 * simplifying OpenDML AVI handling.
* adding code to skip over JUNK. It turns out that video editing
     software uses junk to resize ix## chunks without actually
     scrubbing the data. That trips up our packet extraction
     code since it recognizes ix## entries as "packets". Basically
     we have to skip over JUNK chunks for exactly the same reason
     we have to skip over ix## entries.

Originally committed as revision 3378 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-08-04 20:57:35 +00:00
Michael Niedermayer
f8facaaf41 play more broken files
Originally committed as revision 3308 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-07-14 00:10:06 +00:00
Michael Niedermayer
7520409245 10l
Originally committed as revision 3174 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-05-30 01:04:50 +00:00
Michael Niedermayer
cc11e2b3e4 skip subtitle streams instead of perishing
Originally committed as revision 3173 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-05-30 00:43:43 +00:00
Michael Niedermayer
42feef6b70 exporting keyframe flags, fixes keyframe stuff with streamcopy
Originally committed as revision 3169 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-05-29 12:01:28 +00:00
Michael Niedermayer
4fc2c6447f 100l (avi seeking)
Originally committed as revision 3155 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-05-24 15:13:23 +00:00
Michael Niedermayer
cde073b448 100l (AVStream.duration)
Originally committed as revision 3154 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-05-24 13:08:00 +00:00
Michael Niedermayer
cdd5034f89 store index for seeking in the native timebase of each stream
set correct timebase for nut
merge mpeg-ts seeking with existing seeking code
10l fix in mpegts (27mhz vs. 90khz)

Originally committed as revision 3152 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-05-23 16:26:12 +00:00
Michael Niedermayer
9ee91c2f53 move time_base (pts_num/pts_den) from AVFormatContext -> AVStream
Originally committed as revision 3148 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-05-21 20:43:21 +00:00
Michael Niedermayer
1fa3d65d57 vbr audio fix
Originally committed as revision 3111 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-05-06 21:52:38 +00:00
Michael Niedermayer
0a61ba5869 audio pts fix
Originally committed as revision 2689 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-01-10 23:55:57 +00:00