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
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
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
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
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
Michael Niedermayer
2a3caca2b1
Make h261 and mpegvideo probe a little more robust so they dont fail with
...
slightly different probetest.
Originally committed as revision 19856 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
98487a5b69
Make dnxhd probe more strict, fail if we detect values in header that would
...
make our decoder fail anyway.
dnxhd probe now passes probetest.
Originally committed as revision 19847 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
89c4e176f6
Rewrite h261_probe().
...
New code can detect h261 startcodes even when the first is damaged or not at the
begin. It also passes probetest v2 & v3.
Originally committed as revision 19845 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
05bdd33a12
Make DTS probe more robust against false positives (as e.g. probetest shows).
...
In particular check that the detected markers clearly indicate a specific DTS
format (a wild mixture of e.g. little- and big-endian markers is unlikely to be
a valid DTS file) and ensure the markers appear with sufficient frequency.
Originally committed as revision 19844 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
e4c01d408a
Rewrite h263_probe().
...
The new code should detect h263 even if the first startcode is damaged or
somewhere else than the first byte. It also passes probetest v2 as just
posted on ffmpeg-dev.
Originally committed as revision 19841 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
63613fe615
Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
...
Originally committed as revision 19508 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
23251d751b
fix compilation of cavsvideo demuxer
...
Originally committed as revision 19506 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Patrick Dehne
d52b90bdb4
Add support for id3 tag parsing for ADTS AAC streams
...
Patch by Patrick Dehne ( patrick mysonicweb com )
Originally committed as revision 19225 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Andreas Öman
0e1ccdeb11
It should be #if, not #ifdef
...
Originally committed as revision 18659 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
9145021d68
Add raw MLP muxer.
...
Originally committed as revision 18652 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
9106a698e7
Rename bitstream.h to get_bits.h.
...
Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
a3d23e15fb
fix 6 channels raw pcm demuxing, raw pcm now demux a fixed number of samples
...
Originally committed as revision 18453 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
23d9cc4563
Support raw TrueHD files
...
Originally committed as revision 18049 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
bd36f175ab
Make pcm_read_seek treat negative time stamps as 0, this avoids incorrectly
...
seeking before data_offset and is more consistent with how the generic index
seeking code handles it.
Originally committed as revision 17964 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
4022fe01a6
Change the timebase of the raw demuxer to one that can represent the ts of fields.
...
Originally committed as revision 17675 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
81f052cb7d
Separate the raw FLAC demuxer from raw.c and put in a new file,
...
flacdec.c.
Originally committed as revision 17660 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
caee91f7d0
Separate the raw FLAC muxer from raw.c to its own file, flacenc.c.
...
Originally committed as revision 17601 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefan Gehrer
b81350a866
consistent naming of Chinese AVS raw demuxer
...
Originally committed as revision 17527 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefan Gehrer
9f2fc1268c
add raw demuxer for Chinese AVS elementary streams
...
Originally committed as revision 17473 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Benoit Fouet
ff9843ca39
Add a context to av_log() call.
...
Originally committed as revision 17376 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
b4ee1d3911
Make format long_names consistent.
...
Originally committed as revision 17360 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Benoit Fouet
bbfb80f363
Whitespace cosmetics to align return statements.
...
Originally committed as revision 16826 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Benoit Fouet
16f753f43f
Check buffer is inside what is passed when probing for flac.
...
Originally committed as revision 16825 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
David DeHaven
6cde949a20
Handle ID3v2 tags in raw FLAC streams by skipping them.
...
Patch by David DeHaven (dave sagetv com)
Originally committed as revision 16764 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Alex Converse
ac3ef4a41b
Fix probing of files with ID3v2 tags. Discussed at
...
http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-January/059302.html
Originally committed as revision 16688 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
406792e7b0
cosmetics: Remove pointless period after copyright statement non-sentences.
...
Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
b250f9c66d
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
...
They are now always defined to either 0 or 1.
Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
492322fccc
Remove silly FIXME comment.
...
Originally committed as revision 16122 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
2ba0cdd527
ADTS AAC probe.
...
fixes issue400
Originally committed as revision 15977 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
bd09e8a7df
raw dnxhd de/muxer
...
Originally committed as revision 15674 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
bf9067cf3e
Assume mono if no other information for raw.
...
Should fix issue687
Originally committed as revision 15631 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
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
16 years ago
Justin Ruggles
e1a12934c5
write number of samples in FLAC extradata.
...
based on a patch by Mathieu Velten (matmaul gmail com).
Originally committed as revision 15324 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Justin Ruggles
bdf6972c4b
change back to using CONFIG_*_DEMUXER for ac3_eac3_probe(), but use it
...
correctly this time.
Originally committed as revision 15147 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Aurelien Jacobs
75198e7a6d
simplify ac3_probe() and eac3_probe(). patch by Aurelien Jacobs.
...
Originally committed as revision 15145 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Justin Ruggles
4d951ef86d
check ENABLE_*_DEMUXER instead of CONFIG_*_DEMUXER
...
Originally committed as revision 15144 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Justin Ruggles
2988c93d94
create a separate codec_id for E-AC-3
...
Originally committed as revision 15143 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Peter Ross
ee7948cb8d
Add raw muxers/demuxers for F64/F32/S32/S24/U32/U24 PCM audio.
...
Originally committed as revision 14930 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
4c00864f31
Surround format-specific functions with matching preprocessor conditionals.
...
Originally committed as revision 14783 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
7402ee234a
Surround AVInputFormat declarations with format-specific #ifdefs.
...
Originally committed as revision 14782 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
964454263c
Replace generic CONFIG_MUXERS preprocessor condition around format-specific
...
functions by more appropriate format-specific preprocessor conditions.
Originally committed as revision 14781 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
bcb5430abe
Replace generic CONFIG_MUXERS preprocessor conditions around AVOutputFormat
...
declarations by more specific CONFIG_FOOBAR_MUXER conditions.
Originally committed as revision 14780 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
082f7acfc4
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
...
condition. This will make upcoming diffs smaller.
Originally committed as revision 14779 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago