Justin Ruggles
15299b3821
Calculate correct packet durations when demuxing Ogg/Speex. This involves
...
determining if there is any delay in the first packet and/or any truncation in
the final packet.
Originally committed as revision 20216 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
90aa6ace63
Merge declaration and initialization
...
Originally committed as revision 20214 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
098d8e0950
Simplify: use FFMIN
...
Originally committed as revision 20213 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Daniel G. Taylor
febd1c90a6
Detect Windows Media DRM protected files and display warning if no key
...
was provided.
Patch by Daniel G. Taylor, dan programmer-art org
Originally committed as revision 20209 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
b8c0db9981
Allow autodetection of E-AC3.
...
Originally committed as revision 20206 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
0096d766b9
Allow demuxing of E-AC3 (stream type 0x84) in MPEG-TS.
...
Originally committed as revision 20200 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Daniel Verkamp
54eb4ae0a2
Do not allow 0 sample rate in TMV demuxer
...
Originally committed as revision 20195 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Daniel Verkamp
f19ae9ea4d
Stricter TMV probe
...
Originally committed as revision 20194 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Daniel Verkamp
70d8c762d9
Reindent
...
Originally committed as revision 20182 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Daniel Verkamp
811e0fc2e8
Add RF64 support to wav demuxer.
...
Originally committed as revision 20181 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Anton Khirnov
7fd5aeb3e5
Only read ID3v1 tag if ID3v2 isn't present or is empty.
...
This prevents the demuxer from exporting multiple semantically identical but
differently named tags.
Patch by Anton Khirnov, wyskas gmail
Originally committed as revision 20175 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Anton Khirnov
41770abf86
id3v2: Export all text information frames with correct names.
...
Patch by Anton Khirnov <wyskas at gmail dot com>
Originally committed as revision 20171 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Anton Khirnov
078d89a2b0
MP3 muxer: Write all metadata.
...
Patch by Anton Khirnov <wyskas at gmail dot com>
Originally committed as revision 20170 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Daniel Verkamp
79c0790789
Fix pcm_read_seek () when the position it calculates is greater than 2 GB.
...
pcm_read_seek() puts the return value of url_fseek() in an int and then
compares < 0 to see if an error occurred; if the position is greater
than 2 GB, the 32-bit signed int result will be < 0.
Change the type of ret to int64_t to avoid the wraparound.
patch by Daniel Verkamp, daniel drv nu
Originally committed as revision 20169 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ian Caulfield
63380b5e54
Allow the combined TrueHD/AC3 tracks on Blu-Ray discs to be demuxed as two separate streams.
...
Patch by Ian Caulfield, ian D caulfield A gmail
Originally committed as revision 20168 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
e18027ac40
Add FIXME about low_delay vs has_b_frames.
...
Originally committed as revision 20161 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Wallak
f4a4be3f4e
H264 allows B frames without requiring a >=1 sized buffer.
...
Patch by wallak, wallak free fr
Originally committed as revision 20160 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
3fcb5113c6
wav demuxer: return AVERROR_EOF instead of AVERROR(EIO) when the end of
...
the file is reached normally, without any error.
Originally committed as revision 20143 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
e581b6288f
wav: return av_get_packet errors unchanged.
...
Originally committed as revision 20142 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
fbc6630168
Remove url_feof check that would be triggered only after incorrectly producing
...
an empty packet and also av_get_packet already handles EOF now.
Originally committed as revision 20140 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
8a62a378de
Remove useless setting of pkt->size, av_get_packet already handles that.
...
Originally committed as revision 20139 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
a7a9dd0eb6
Return special EOF checking for aiff and au demuxers, the check was at
...
the wrong place, causing an empty packet to be read before EOF was
detected and the eof detection is already now handled by av_get_packet anyway.
Originally committed as revision 20138 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
c3db0bc61d
Return any error return values from av_get_packet, get_buffer etc. unchanged
...
in the raw demuxers.
Also remove special handling of 0-size reads, if they are due to an error/eof,
these are already converted to the appropriate error by get_buffer.
Originally committed as revision 20137 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
7f7686dfb1
Make get_buffer and get_partial_buffer return url_ferror or AVERROR_EOF as
...
appropriate if it couldn't read any data at all.
This should make handling of EOF and error simpler or make it work right without
extra code in a few place (e.g. raw demuxer).
Originally committed as revision 20135 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
553e9f7529
matroskadec: cosmetics: indentation
...
Originally committed as revision 20133 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
ff0d5a745e
matroskadec: don't overwrite extradata already read by ff_get_wav_header()
...
Originally committed as revision 20132 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
038146e9cf
matroskadec: fix handling of A_MS/ACM track with no extradata
...
Originally committed as revision 20131 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
22a7e19b50
Make rawvideo_read_packet return partial frames.
...
This is consistent with other demuxers and also fixes a memleak (memory
allocated for partial frame data was leaked).
Originally committed as revision 20130 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
8cb724c5c4
Simplify: remove pointless {} and else
...
Originally committed as revision 20129 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
d4c1803e0e
Remove pointless setting of pkt->size, av_get_packet already handles this.
...
Originally committed as revision 20128 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
b46c98bf66
au demuxer: pass av_get_packet error on unchanged instead of converting to
...
AVERROR(EIO).
Originally committed as revision 20127 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
c67031e7cf
av_new_packet failing should return ENOMEM, not EIO.
...
Originally committed as revision 20126 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
43d7c6118d
put_bits can only reliably write up to 31 bit bits, above it relies on
...
undefined shift behaviour.
Document this, fix the assert and add a put_bits32 to handle writing 32
bits and use that where necessary.
Originally committed as revision 20124 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
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
15 years ago
Reimar Döffinger
f2ad907060
10l in code reading codec_name, the first byte is the length and should not
...
become part of the string.
Originally committed as revision 20102 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
5dd76bd741
Return an error when the parsed mpc chunk size is negative, otherwise we
...
might end up in an endless loop where the same chunk is parsed over and over.
Fixes a hang near the end for http://samples.mplayerhq.hu/A-codecs/musepack/sv8/sv8-tags.mpc
Originally committed as revision 20099 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
c9da676de4
Disable parsing for ogg streams where no ogg header was found,
...
if no header was found the parser was not initialized and thus will
crash when trying to use it.
Originally committed as revision 20093 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
19635234b1
Convert latin1 codec_name in mov to UTF-8, since all strings in FFmpeg
...
must be valid UTF-8.
Originally committed as revision 20092 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
4b4ac5c7a8
Sync AC3 probe values with MP3 probe values, they have to avoid similar issues.
...
This fixes ffmpeg-generated files with -acodec ac3 being detected as raw ac3
instead of MPEG.
Originally committed as revision 20075 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
f6765f3f04
Extend DV autodetection to also reliably detect single-frame DVs with
...
a higher score that MAX/4.
It checks that there are at least 10 DIF headers and at least one per
24000 bytes, and if so considers the file reliably detected as DV.
Passes probetest, too.
Originally committed as revision 20074 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Anton Khirnov
6378b06208
Add id3v2 metadata conversion table and use it in mp3 muxer.
...
Patch by Anton Khirnov, wyskas gmail
Originally committed as revision 20073 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
a42bf19134
100l, typo
...
Originally committed as revision 20033 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
haim alon
7b5252ce3e
Export mov/mp4 major and compatible brands as metadata.
...
Patch by haim alon, haim dot alter at gmail dot com
Originally committed as revision 20032 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
486168877e
Fix reading VDR files (broken since r19000).
...
Originally committed as revision 20017 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
98422c44cf
Fix possible buffer over-read in vorbis_comment, fix it double to be sure.
...
First, make s signed, so that comparisons against end - p will not be made as
unsigned, making the check incorrectly pass if p is beyond end.
Also ensure that p will never be > end, so the code is correct also if
buf is not padded.
Originally committed as revision 20014 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Anton Khirnov
20c6837880
id3v2: Add support for UTF-16 encoding.
...
patch by Anton Khirnov, wyskas gmail com
Originally committed as revision 20006 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Anton Khirnov
9aa1bcce51
id3v2: Use 0 instead of '\0'.
...
patch by Anton Khirnov, wyskas gmail com
Originally committed as revision 20005 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Anton Khirnov
787f8fad00
id3v2: check for enough space to write full UTF-8 characters.
...
patch by Anton Khirnov, wyskas gmail com
Originally committed as revision 20004 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
7d507ceb79
Correctly print number of remaining bytes in oggparsevorbis instead of always
...
with inverted sign.
Originally committed as revision 19978 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Benjamin Larsson
61dc238b45
Hook up the MD studio demuxer and Atrac1 decoder.
...
Originally committed as revision 19969 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago