aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
Commit message (Collapse)AuthorAgeFilesLines
* H.264: Fix memory leaks with multithreading.Alexander Strange2009-06-161-2/+3
| | | | | | | | | The threads' contexts and rbsp_buffers were not freed at the end of decoding. Fixes issue 1581 Originally committed as revision 19207 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add field prev_interlaced_frame to H264Context to be able to flag soft telecineHaruhiko Yamagata2009-06-091-6/+21
| | | | | | | | progressive. Patch by Haruhiko Yamagata, h D yamagata A nifty D com Originally committed as revision 19141 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix sei_ct_type check so it does not mistreat ct_type= unknown.Michael Niedermayer2009-06-031-1/+1
| | | | Originally committed as revision 19082 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Print ct_type and pic_struct.Michael Niedermayer2009-06-031-0/+3
| | | | Originally committed as revision 19081 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove unused hack which set AVCodecContext frame_number to pic timestampBaptiste Coudurier2009-05-301-5/+0
| | | | Originally committed as revision 18988 to svn://svn.ffmpeg.org/ffmpeg/trunk
* H264: Don't deblock if alpha or beta is 0.Haruhiko Yamagata2009-05-241-0/+4
| | | | | | | This ensures that the MMX loop filter is always bitexact with the C version. Patch by Haruhiko Yamagata <h.yamagata _a_ nifty com> Originally committed as revision 18923 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a chroma_sample_location field to define positioning of chroma samplesDavid Conrad2009-05-111-1/+2
| | | | Originally committed as revision 18795 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support broken avc nal encapsulation.Michael Niedermayer2009-04-161-4/+5
| | | | | | Fixes issue987. Originally committed as revision 18533 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix 2 access units in a packet mp4s.Michael Niedermayer2009-04-121-1/+7
| | | | | | Fixes issue944 and possibly others. Originally committed as revision 18474 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Get rid of the non sensical idea of using the current picture for missingMichael Niedermayer2009-04-121-1/+4
| | | | | | reference pictures. Originally committed as revision 18473 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize field_end() out.Michael Niedermayer2009-04-121-40/+46
| | | | Originally committed as revision 18472 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Assert that the first list1 entry is a reference frame.Michael Niedermayer2009-04-121-0/+2
| | | | Originally committed as revision 18471 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a av_fast_malloc function and replace several uses of av_fast_realloc,Reimar Döffinger2009-04-121-1/+1
| | | | | | thus avoiding potential memleaks and pointless memcpys. Originally committed as revision 18470 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Loop up to MAX_THREADS instead of h->s.avctx->thread_count to free the threadReimar Döffinger2009-04-101-1/+1
| | | | | | | contexts, this avoids a crash when freeing the H.264 parser context introduced in r18406, since h->s.avctx is NULL there. Originally committed as revision 18418 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add forgotten void return type to ff_h264_free_contextReimar Döffinger2009-04-101-1/+1
| | | | Originally committed as revision 18411 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-3/+9
| | | | | | 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
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-071-1/+3
| | | | | | | | | | | AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows passing of packet-specific flags from demuxer to decoder, such as the keyframe flag, which appears necessary to playback corePNG P-frames. Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread "Google Summer of Code participation" on the mailinglist. Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Print timing_info on -debug 1.Michael Niedermayer2009-03-131-2/+4
| | | | Originally committed as revision 17949 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark variables "j" and "structure" in execute_ref_pic_marking() as av_uninitDiego Biurrun2009-03-051-2/+2
| | | | | | to work around false positive 'may be used uninitialized' warnings. Originally committed as revision 17837 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add support for ct_type to correctly detect interlaced flagIvan Schreter2009-03-041-11/+7
| | | | Originally committed as revision 17811 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add more correct bound checking in filter_mb().Vitor Sessak2009-03-041-1/+1
| | | | | | Should fix decoding of CVMAPAQP3_Sony_E.jsv in MinGW Originally committed as revision 17806 to svn://svn.ffmpeg.org/ffmpeg/trunk
* When a H.264 stream references a PPS or SPS id which doesn't exist, instead ofPanagiotis Issaris2009-03-031-2/+2
| | | | | | just saying that a non-existing id is referenced, show the value of the id. Originally committed as revision 17771 to svn://svn.ffmpeg.org/ffmpeg/trunk
* H.264: Simplify decode_residual()Alex Converse2009-03-031-5/+4
| | | | Originally committed as revision 17750 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not set low_delay if has_b_frames has been set before init()Michael Niedermayer2009-03-011-0/+1
| | | | | | | this will be needed once the parser can figure out has_b_frames in av_find_stream_info(). Originally committed as revision 17673 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Adjust time_base exactly when changing ticks_per_frame to 2 this is saferMichael Niedermayer2009-02-281-4/+5
| | | | | | and for some raw h264 we managed to change the timebase twice before. Originally committed as revision 17669 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Correctly reset SEI variables.Ivan Schreter2009-02-271-12/+15
| | | | | | Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17651 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add hardware acceleration hooks to H.264.Gwenole Beauchesne2009-02-271-1/+11
| | | | | | Patch by Gwenolé Beauchesne. Originally committed as revision 17644 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix SVQ3 regression since ticks_per_frame=2.Michael Niedermayer2009-02-271-1/+2
| | | | Originally committed as revision 17640 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add ticks_per_frame, this should hopefully fix the regressions causedMichael Niedermayer2009-02-261-0/+1
| | | | | | by the time_base change. Originally committed as revision 17630 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Half user provided time_base once during the first frame when there is noMichael Niedermayer2009-02-261-0/+3
| | | | | | | timebase stored in the h264 stream. This should fix fate. (ffmpeg.c used pict_repeat with its default 1/25 timebase) Originally committed as revision 17622 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add hwaccel->decode_slice() call for avhwaccel by Gwenole Beauchesne.Michael Niedermayer2009-02-251-0/+4
| | | | Originally committed as revision 17591 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Correct time_base of H.264 and repeat_pict.Ivan Schreter2009-02-241-1/+1
| | | | | | Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17571 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add ff_find_hwaccel() by Gwenole BeauchesneMichael Niedermayer2009-02-241-0/+1
| | | | Originally committed as revision 17569 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add and use ff_pixfmt_list_420.Michael Niedermayer2009-02-241-4/+3
| | | | Originally committed as revision 17564 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark two variables with av_uninit to avoid false positive gcc warnings.Diego Biurrun2009-02-241-2/+2
| | | | Originally committed as revision 17552 to svn://svn.ffmpeg.org/ffmpeg/trunk
* More approved hunks for VAAPI & our new and cleaner hwaccel API.Gwenole Beauchesne2009-02-231-0/+3
| | | | | | patch by Gwenole Beauchesne gbeauchesne splitted-desktop com Originally committed as revision 17540 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check return value of frame_start(), this avoids a crash if ↵Reimar Döffinger2009-02-221-1/+2
| | | | | | | | AVCodecContext::get_buffer failed. Not sure if returning -1 is the best possible solution but at least avoids the crash. Originally committed as revision 17520 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make the following H264 functions available to the parser:Ivan Schreter2009-02-211-22/+11
| | | | | | | | | | ff_h264_decode_sei, ff_h264_decode_seq_parameter_set, ff_h264_decode_picture_parameter_set, ff_h264_decode_nal, ff_h264_decode_rbsp_trailing Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17487 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use last decoded SPS as current SPS in order to parse picture timing SEIIvan Schreter2009-02-201-0/+1
| | | | | | | | correctly. This works around an apparent H.264 standard deficiency. Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17471 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Silence two warnings:Ivan Schreter2009-02-191-2/+2
| | | | | | | | cast discards qualifiers from pointer target type Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17463 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Parse buffering period (H.264, D.1.1).Ivan Schreter2009-02-181-0/+38
| | | | | | Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17441 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Store CPB count in the context.Ivan Schreter2009-02-181-0/+1
| | | | | | Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17439 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Parse cbp_removal_delay in SEI picture structure.Ivan Schreter2009-02-181-1/+4
| | | | | | Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17413 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Parse dpb_output_delay in SEI picture structure.Ivan Schreter2009-02-181-1/+4
| | | | | | Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17412 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Parse initial_cpb_removal_delay_length.Ivan Schreter2009-02-181-1/+1
| | | | | | Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17411 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move initialization of {luma,chroma}_weight_flag[] up,Gwenole Beauchesne2009-02-171-4/+5
| | | | | | | to make sure they are always initialized. Patch by Gwenole Beauchesne g${name} splitted-desktop com Originally committed as revision 17393 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: 'void/int inline' --> 'inline void/int' to avoid warnings of the typeDiego Biurrun2009-02-171-1/+1
| | | | | | "'inline' is not at beginning of declaration" with -Wextra. Originally committed as revision 17392 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Silence following warning if only zeros were not consumed:Carl Eugen Hoyos2009-02-151-1/+5
| | | | | | AVC: Consumed only m bytes instead of n Originally committed as revision 17327 to svn://svn.ffmpeg.org/ffmpeg/trunk
* H264: Change left_block_options to uint8_t from int, saving a little space.Alexander Strange2009-02-111-2/+2
| | | | Originally committed as revision 17147 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add SEI recovery point frame counter to H264Context and use it whenIvan Schreter2009-02-091-1/+19
| | | | | | | | setting key_frame. Patch by Ivan Schreter schreter A gmx D net Originally committed as revision 17109 to svn://svn.ffmpeg.org/ffmpeg/trunk