Michael Niedermayer
bdadf05ec8
avcodec/parser: put lost comments back
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Diego Biurrun
4ec336484d
parser: cosmetics: Drop some unnecessary parentheses
11 years ago
Luca Barbato
a1c699659d
parser: K&R formatting cosmetics
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years ago
Diego Biurrun
ed61f3ca8a
parser: Remove commented-out cruft
11 years ago
Diego Biurrun
8f8bc92365
Add missing #includes for *INT64_MAX and *INT64_C
11 years ago
Michael Niedermayer
f31011e9ab
avcodec/parser: reset indexes on realloc failure
...
Fixes Ticket2982
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
08f6fdc3e4
avcodec/parser: Make av_register_codec_parser() thread safe
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
511cf612ac
miscellaneous typo fixes
12 years ago
Michael Niedermayer
096abfa150
parser: fix large overreads
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
12 years ago
Michael Niedermayer
0393cf15db
Revert "Acquire lock when initializing parsers."
...
This reverts commit 7feef7dbca
.
This commit causes assertion failures due to use of parser_init from multiple
threads, for example indirectly by ffmpeg.c and more directly from the
packet read functions.
I dont know how to fix this quickly, and fixing ffmpeg.c leaves
the possibility of other applications being affected.
Crashing the applications until this is resolved is clearly no good
thus this revert, so we have time to think about the problem.
Crashes can be reproduced by using multiple input files in ffmpeg.
12 years ago
Reimar Döffinger
7feef7dbca
Acquire lock when initializing parsers.
...
This is necessary since they might be initializing or
even using static VLC tables.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years ago
Reimar Döffinger
92947c6d72
Use err_out label for error-case cleanup.
...
Will simplify future changes (introducing proper
locking around opening/closing parsers).
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years ago
Diego Biurrun
9a07c1332c
parser: Move Doxygen documentation to the header files
12 years ago
Michael Niedermayer
6a697b42d0
parser: fix large overreads
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
6f6b0311a3
avcodec: Drop some silly commented-out av_log() invocations
12 years ago
Martin Storsjö
6d65496990
parser: Don't use pc as context for av_dlog
...
The ParserContext class doesn't have an AVClass, required for
using it as a logging class.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
1d9c2dc89a
Don't include common.h from avutil.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
12 years ago
Lou Logan
6851130fd6
cosmetics: minor libavcodec spelling errors
...
Also update some common misspelled words in patcheck
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Wolfram Gloger
f8353d5fda
mpegvideo: don't pretend the first frame is always a key frame
...
Signed-off-by: Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
Modify the parser initialization so that parsers can
set pict_type themselves. Use this in the mpegvideo parser
so that initial frames are not unconditionally I frames.
I have had this in my tree for several years.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Rafaël Carré
b24aaabd44
remove ParseContext1
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Maksym Veremeyenko
94bf9ac473
fix av_dlog call with non-AVClass struct
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
58c42af722
doxygen: misc consistency, spelling and wording fixes
13 years ago
Diego Biurrun
aebb56e184
Replace some commented-out debug printf() / av_log() messages with av_dlog().
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
ce5e49b0c2
replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*
14 years ago
Stefano Sabatini
975a1447f7
Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Diego Biurrun
09cbf60f8e
Replace more disabled printf() calls by av_dlog().
14 years ago
Diego Biurrun
045dd4b928
Replace some commented-out debug printf() / av_log() messages with av_dlog().
14 years ago
Michael Niedermayer
85ff339489
Revert "avparser: don't av_malloc(0)."
...
This hack is no longer needed.
This reverts commit 191e08d113
.
14 years ago
Ronald S. Bultje
5eef4afb9a
avparser: don't av_malloc(0).
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Ronald S. Bultje
191e08d113
avparser: don't av_malloc(0).
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Anton Khirnov
3453a231a6
lavc: remove misc disabled cruft.
14 years ago
Brad
1f6265e011
Fix parser: mark av_parser_parse() for removal on next major bump
...
Fix the breakage introduced with 9073ca6c6e
14 years ago
Anton Khirnov
9073ca6c6e
parser: mark av_parser_parse() for removal on next major bump
...
Fixes build with the bump, since the prototype is already marked for
removal.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Michael Chinen
59cb40b921
Fix index_entries pos:
...
It was being set wrong for files with data_offset > 0
Patch by Michael Chinen, mchinen gmail
Originally committed as revision 25239 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Aurelien Jacobs
c01694c889
saner default value for convergence_duration
...
Originally committed as revision 24002 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jai Menon
6858ce2ffc
Fix typo.
...
Originally committed as revision 22936 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Benoit Fouet
32e543f866
Replace @returns by @return .
...
Originally committed as revision 22729 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
b27758bc02
Fetch timestamp for the first frame of field only if frame_offset and
...
next_frame_offset are not set, because second field has next frame offset set
but not frame_offset, otherwise this wrongly fetch timestamp for the
second field.
Originally committed as revision 19244 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
6645e8ca2f
do not reference remainder packets in the parser, fix timestamps fetching
...
Originally committed as revision 18958 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ivan Schreter
b283ba26ce
Add handling of frame position in the parser.
...
Originally committed as revision 17823 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
7115cbda30
Consider all packets in the parser, not just ones with timestamps,
...
this should greatly simplify handling of packet pos.
Originally committed as revision 17733 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
2cc304215d
Favor container packets that end after the first byte of the access
...
unit in fetch_timestamp(). This should make no difference for valid
streams but may help invalid ones, also its needed for future changes.
Originally committed as revision 17732 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
a4c7a5ea27
Call ff_fetch_timestamp() for mpeg1/2 when a picture start code is found instead
...
of calling it at the end of a frame with a large negative offset.
This significantly reduces the maximal distance in container packets between
the point where the first byte of the "access unit" was stored and where
we call ff_fetch_timestamp() thus reducing the constraints on our parser.
Also change the parser from next_frame_offset to cur, this is needed
because now the reference is from container packet start instead of
frame start. (i previously misinterpreted this as bug)
Originally committed as revision 17731 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ivan Schreter
27ca0a79c9
Add timestamp computation if values are exported by decoder.
...
Patch by Ivan Schreter, schreter gmx net
Originally committed as revision 17574 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ivan Schreter
b1fa494205
Add convergence_duration to AVCodecParserContext.
...
Patch by Ivan Schreter, schreter gmx net
Originally committed as revision 17468 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ivan Schreter
6363af44da
Add key_frame to AVCodecParserContext, used in libavformat.
...
Initialized to -1 in parser.c for backward compatibility.
Patch by Ivan Schreter, schreter gmx net
Originally committed as revision 17442 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
Baptiste Coudurier
98a8ce4964
add state64 field to ParseContext storing last 8 bytes, to be able to check for longer startcodes
...
Originally committed as revision 15671 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago