summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_parser.c
Commit message (Collapse)AuthorAgeFilesLines
* parsers: initialize MpegEncContext.slice_context_count to 1Janne Grunau2012-01-061-0/+1
| | | | | | | | | The mpeg4 video, H264 and VC-1 parser hold (directly or indirectly) a MpegEncContext in their private context. Since they do not call the common mpegvideo init function slice_context_count has explicitly set to 1. Prevents a null pointer dereference in the h264 parser and fixes bug 193.
* Revert "h264: skip start code search if the size of the nal unit is known"Janne Grunau2011-12-191-1/+1
| | | | This reverts commit 87eebb3454ff0cd6af6ebf9e1d31bdfd1c3b601b.
* h264: skip start code search if the size of the nal unit is knownJanne Grunau2011-12-181-1/+1
| | | | | | | | Start code emulation prevention is only required in Annex B bytestream packed NAL units. For other coding formats the size is already known. Looking for a start code prefix can result in false positives like in http://streams.videolan.org/streams/mp4/Mr_MrsSmith-h264_aac.mp4 which has a false positive in the SPS.
* lavc: use designated initialisers for parsers.Anton Khirnov2011-11-021-6/+6
|
* lavc: rename ff_find_start_code to avpriv_mpv_find_start_codeAnton Khirnov2011-10-201-1/+1
| | | | It's used in lavf.
* doxygen: Consistently use '@' instead of '\' for Doxygen markup.Diego Biurrun2011-06-241-1/+1
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h264_parser: Fix whitespace after previous change.Philip Langdale2011-06-131-14/+15
| | | | | Signed-off-by: Philip Langdale <philipl@overt.org> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264_parser: Fix behaviour when PARSER_FLAG_COMPLETE_FRAMES is set.Philip Langdale2011-06-131-1/+1
| | | | | | | | | | Currently, the parser is buggy and only processes the stream extradata when the flag is set. This fixes it to actually inspect the frames. Whitespce will be fixed in a separate change. Signed-off-by: Philip Langdale <philipl@overt.org> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini2011-05-021-1/+1
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* h264: Add Intra and Constrained Baseline profiles to avctx.profileJanne Grunau2011-02-011-1/+1
|
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-261-1/+1
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Make ff_h264_find_frame_end static to h264.c; delete h264_parser.hDiego Elio Pettenò2011-01-251-2/+1
| | | | | | | The header is empty after making the function static, so delete it and drop its usage. Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* In h264 parser, return immediately if buf_size is 0, avoid printingBaptiste Coudurier2010-07-231-0/+3
| | | | | | erroneous message for last frame. Originally committed as revision 24450 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cleanup prev commit, flag variable should start with 0Howard Chu2010-05-281-3/+2
| | | | Originally committed as revision 23364 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Parse avctx->extradata if available.Howard Chu2010-05-281-0/+9
| | | | | | Fixes many "non-existing PPS referenced" error messages Originally committed as revision 23363 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add an AVSTREAM_PARSE_FULL_ONCE parsing mode to parse headers and combine ↵Alex Converse2010-05-261-0/+3
| | | | | | packets once and only once. Originally committed as revision 23332 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-201-1/+1
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Export H264 profile and level in AVCodecContext.Rafaël Carré2010-01-281-0/+3
| | | | | | Patch by Rafaël Carré, rafael D carre A gmail Originally committed as revision 21517 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Initialize thread_context[0] with h264 parser context.Rafaël Carré2010-01-281-1/+7
| | | | | | | | This allows freeing the parser memory in the thread_context freeing loop. Patch by Rafaël Carré gmailify(rafael, carre) Originally committed as revision 21508 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Init state to -1 in h264 parser.Baptiste Coudurier2009-04-131-1/+1
| | | | | | | | | | | | | Fix: ==22063== Conditional jump or move depends on uninitialised value(s) ==22063== at 0x811A4B7: ff_find_start_code (mpegvideo.c:99) ==22063== by 0x82F5B74: parse_nal_units (h264_parser.c:132) ==22063== by 0x82F5A68: h264_parse (h264_parser.c:261) [...] ==22063== Uninitialised value was created by a stack allocation ==22063== at 0x82F5AF5: parse_nal_units (h264_parser.c:112) Originally committed as revision 18479 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a ff_h264_free_context function and call it from the H.264 parser.Reimar Döffinger2009-04-101-0/+1
| | | | | | This ensures that the parser will no longer leak memory for all SPS/PPS it encounters. Originally committed as revision 18406 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix SEIs when splitting H264 input.John Cox2009-03-161-1/+1
| | | | | | Patch by John Cox, jc A kynesim D co D uk Originally committed as revision 18020 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: Fix indentation after last commit.Carl Eugen Hoyos2009-02-261-3/+3
| | | | Originally committed as revision 17621 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Initialize H264 parser context correctly if the optional SEI messagesIvan Schreter2009-02-261-0/+6
| | | | | | | | are not present. Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17620 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Export timestamp parameter from H.264.Ivan Schreter2009-02-241-0/+7
| | | | | | Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17575 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Correct time_base of H.264 and repeat_pict.Ivan Schreter2009-02-241-7/+7
| | | | | | Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17571 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use context variable repeat_pict for frame duration computation andIvan Schreter2009-02-211-0/+29
| | | | | | | | document this new use. Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17492 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set context variable picture_structure in H264 parser.Ivan Schreter2009-02-211-0/+28
| | | | | | Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17490 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set context variable key_frame in H264 parser.Ivan Schreter2009-02-211-0/+8
| | | | | | Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17489 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Parse NAL units in H264 parser.Ivan Schreter2009-02-211-0/+71
| | | | | | Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17488 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix a const related warningIvan Schreter2009-02-081-2/+2
| | | | | | Patch by Ivan Schreter ( schreter gmx net ) Originally committed as revision 17073 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-011-1/+1
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove CODEC_ID_H264_VDPAU.Carl Eugen Hoyos2009-01-171-2/+1
| | | | Originally committed as revision 16649 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-131-2/+2
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add VDPAU hardware accelerated decoding for H264 which can be used byNVIDIA Corporation2009-01-041-1/+2
| | | | | | | | video players. Original patch by NVIDIA corporation. Originally committed as revision 16431 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Explain the lack of +3/7Michael Niedermayer2008-12-281-0/+3
| | | | Originally committed as revision 16380 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make h264 parser 50% faster.Michael Niedermayer2008-12-231-0/+9
| | | | Originally committed as revision 16286 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 100l forgot return type.Michael Niedermayer2008-10-041-1/+1
| | | | Originally committed as revision 15539 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ff_parse_close() is not the correct function for H264Context.Michael Niedermayer2008-10-031-1/+9
| | | | Originally committed as revision 15537 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix warning reported by Intel C compiler:Diego Pettenò2008-10-021-4/+6
| | | | | | | | | | | | libavcodec/h264_parser.c(77): warning #589: transfer of control bypasses initialization of: variable "v" (declared at line 58) goto found; This new form also improves readability. Patch by Diego 'Flameeyes' Pettenò %flameeyes A gmail P com% Originally committed as revision 15526 to svn://svn.ffmpeg.org/ffmpeg/trunk
* license header consistency cosmeticsDiego Biurrun2007-07-051-1/+0
| | | | Originally committed as revision 9484 to svn://svn.ffmpeg.org/ffmpeg/trunk
* split h264.c to move parser in its own fileAurelien Jacobs2007-05-101-0/+149
Originally committed as revision 8985 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud