summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
Commit message (Collapse)AuthorAgeFilesLines
* Call ff_find_hwaccel() after calling avcodec_set_dimensions().Reimar Döffinger2009-11-241-15/+16
| | | | | | Patch by Reimar Originally committed as revision 20599 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use avcodec_set_dimensions()Michael Niedermayer2009-11-231-2/+1
| | | | Originally committed as revision 20591 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use get_bits_left() instead of size_in_bits - get_bits_count().Ronald S. Bultje2009-11-161-1/+1
| | | | Originally committed as revision 20543 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reset rbsp buffer size when freeing its data buffer.Mike Scheutzow2009-11-131-0/+2
| | | | | | Patch by Mike Scheutzow $(name) AT alcatel 'minus' lucent com Originally committed as revision 20531 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indentMichael Niedermayer2009-11-101-1/+1
| | | | Originally committed as revision 20507 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: Fix indentation after r20505.Carl Eugen Hoyos2009-11-101-1/+1
| | | | Originally committed as revision 20506 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add .pix_fmts to H264 VDPAU decoder declaration and remove obsolete testCarl Eugen Hoyos2009-11-101-3/+1
| | | | | | for codec->capabilities. Originally committed as revision 20505 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Try to fix has_b_frame calculation for open gop files.Michael Niedermayer2009-11-101-5/+8
| | | | | | Fixes issue1523 Originally committed as revision 20504 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove casts that are useless since the argument is void *.Reimar Döffinger2009-10-061-1/+1
| | | | Originally committed as revision 20177 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: Fix typo.Carl Eugen Hoyos2009-09-231-1/+1
| | | | Originally committed as revision 19980 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check num_units_in_tick/time_scale to be valid and within the range we support.Michael Niedermayer2009-09-231-0/+4
| | | | | | based on a patch by chrome Originally committed as revision 19979 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename CHECKED_ALLOC(Z) to FF_ALLOC(Z)_OR_GOTO and add context and labelRamiro Polla2009-09-061-12/+12
| | | | | | parameters. Originally committed as revision 19776 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace WORDS_BIGENDIAN with HAVE_BIGENDIANMåns Rullgård2009-07-261-1/+1
| | | | Originally committed as revision 19508 to svn://svn.ffmpeg.org/ffmpeg/trunk
* H.264: Check the return value of decode_vui_parameters()Alexander Strange2009-07-041-1/+2
| | | | | | | | | Files with invalid VUI are now rejected like other invalid SPS are. Fixes issue1231. Originally committed as revision 19335 to svn://svn.ffmpeg.org/ffmpeg/trunk
* H.264: Don't set data_partitioning for invalid NAL_DPA.Alexander Strange2009-07-031-1/+4
| | | | | | | | | | | Before, the decoder could interpret a corrupt frame as a NAL_DPA and NAL_DPC, and then start decoding even if decode_slice_header() returned an error. This frequently caused crashes. Fixes issue1228, issue1229, and partially issue1238. Originally committed as revision 19328 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix nalsize check to avoid an integer overflow that made the checkReimar Döffinger2009-06-301-1/+1
| | | | | | incorrect for nalsize > INT_MAX - buf_index Originally committed as revision 19307 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Improve wording: s/reseted/resetHaruhiko Yamagata2009-06-241-5/+5
| | | | | | Patch by Haruhiko Yamagata, h D yamagata A nifty D com Originally committed as revision 19266 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix H.264 picture reordering, 2nd try.Haruhiko Yamagata2009-06-231-3/+5
| | | | | | | | First, reverted one was r19239. Patch by Haruhiko Yamagata, h D yamagata A nifty D com Originally committed as revision 19258 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert r19239: It broke four conformance tests.Carl Eugen Hoyos2009-06-201-3/+3
| | | | Originally committed as revision 19241 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix H.264 picture reordering.Haruhiko Yamagata2009-06-201-3/+3
| | | | | | Patch by Haruhiko Yamagata, h D yamagata A nifty D com Originally committed as revision 19239 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 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