summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
Commit message (Collapse)AuthorAge
* Add frame_size as a codec parameter requirement for Speex inJustin Ruggles2009-09-04
| | | | | | | av_find_stream_info(). It forces decoding of a packet when there is no Speex header in order to determine the correct frame size. Originally committed as revision 19760 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support for generic multi-stream key frame finding for new seek API.Ivan Schreter2009-08-22
| | | | Originally committed as revision 19680 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Moves the display of metadata to dump_format()Peter Ross2009-08-12
| | | | Originally committed as revision 19632 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only free '*ic_ptr' when a caller has pre-allocated a context and passed it inArt Clarke2009-07-15
| | | | | | | (wherein av_open_input_file assumes memory ownership). Patch by Art Clarke a<surname> xuggle com Originally committed as revision 19436 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix mem leak when user preallocates an AVFormatContext, passes it toArt Clarke2009-07-08
| | | | | | | av_open_input_file(), but the file does not exist. Patch by Art Clarke a$(surname) xuggle com Originally committed as revision 19370 to svn://svn.ffmpeg.org/ffmpeg/trunk
* If either of num or den is 0 make both 0 in av_set_pts_info().Michael Niedermayer2009-07-02
| | | | Originally committed as revision 19326 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure av_set_pts_info() does not set the fields of a timebase toMichael Niedermayer2009-07-01
| | | | | | negative values. Originally committed as revision 19325 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make arguments of av_set_pts_info() unsigned.Michael Niedermayer2009-07-01
| | | | | | Fixes issue1240/mpeg1/smclockmpeg1.avi.3.1 Originally committed as revision 19319 to svn://svn.ffmpeg.org/ffmpeg/trunk
* use AVFormatContext->probesize in av_find_stream_info and raise default to 5MBaptiste Coudurier2009-06-25
| | | | Originally committed as revision 19274 to svn://svn.ffmpeg.org/ffmpeg/trunk
* limit raw packet buffer size used for codec probingBaptiste Coudurier2009-06-25
| | | | Originally committed as revision 19272 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add ff_ prefixes to exported symbols in libavformat/riff.h.Daniel Verkamp2009-06-22
| | | | | | patch by Daniel Verkamp, aniel drv nu Originally committed as revision 19254 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Print why av_find_stream_info() failed, this is a rather common questionMichael Niedermayer2009-06-18
| | | | | | during debugging ... Originally committed as revision 19217 to svn://svn.ffmpeg.org/ffmpeg/trunk
* if b frames are parsed, set codec->has_b_framesBaptiste Coudurier2009-06-11
| | | | Originally committed as revision 19147 to svn://svn.ffmpeg.org/ffmpeg/trunk
* use dts codec probingBaptiste Coudurier2009-05-31
| | | | Originally committed as revision 19014 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix codec probing, stop after MAX_PROBE_PACKETS and return all packetsBaptiste Coudurier2009-05-31
| | | | Originally committed as revision 19000 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cast size to int64_t to avoid overflowBaptiste Coudurier2009-05-30
| | | | Originally committed as revision 18991 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set frame defaults in try_decode_frame.Baptiste Coudurier2009-04-13
| | | | | | | | | | | | | Fix: ==22211== Conditional jump or move depends on uninitialised value(s) ==22211== at 0x811E692: ff_print_debug_info (mpegvideo.c:1137) ==22211== by 0x82E6A7B: decode_frame (h264.c:7897) ==22211== by 0x80F2823: avcodec_decode_video2 (utils.c:564) [...] ==22211== Uninitialised value was created by a stack allocation ==22211== at 0x8064AA3: try_decode_frame (utils.c:1845) Originally committed as revision 18483 to svn://svn.ffmpeg.org/ffmpeg/trunk
* reindentBaptiste Coudurier2009-04-13
| | | | Originally committed as revision 18480 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify packet duplication code in ff_interleave_add_packet.Reimar Döffinger2009-04-11
| | | | | | | Behaviour only changes if pkt->destuct neither av_destruct_packet, av_destruct_packet_nofree nor NULL, in which case the new code avoids a double free. Originally committed as revision 18452 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Get rid of av_destruct_packet_nofree and use NULL instead.Reimar Döffinger2009-04-11
| | | | | | It is still used in comparisons to keep ABI compatibility. Originally committed as revision 18431 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make try_decode_frame() use the new avcodec_decode_* API.Thilo Borgmann2009-04-10
| | | | | | Patch by Thilo Borgmann thilo.borgmann AT g00glemail dot com. Originally committed as revision 18408 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_shrink_packet function for use in av_get_packet that reduces pkt->sizeReimar Döffinger2009-04-08
| | | | | | and ensures the following padding is correctly initialized to 0. Originally committed as revision 18378 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move av_packet_*() functions from libavformat/ to libavcodec/, where theThilo Borgmann2009-04-07
| | | | | | | | | AVPacket structure now resides also. Patch by Thilo Borgmann thilo.borgmann googlemail com, see the mailinglist thread "Google Summer of Code participation" for additional discussion. Originally committed as revision 18353 to svn://svn.ffmpeg.org/ffmpeg/trunk
* move max analyze duration check before considering new packetBaptiste Coudurier2009-03-19
| | | | Originally committed as revision 18051 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add AVFMT_GENERIC_INDEX support also for formats that do not use a parser.Reimar Döffinger2009-03-14
| | | | Originally committed as revision 17965 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not lose user flags when passing calls from the new to the old seeking API.Michael Niedermayer2009-03-14
| | | | Originally committed as revision 17959 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add avformat_seek_file()Michael Niedermayer2009-03-14
| | | | Originally committed as revision 17956 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 100l, to start reading from the first frame we must seek to data_offset,Reimar Döffinger2009-03-09
| | | | | | not 0 in av_seek_frame_generic. Originally committed as revision 17905 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark pos_min and pos_max variables as av_uninit to work around falseDiego Biurrun2009-03-05
| | | | | | positive uninitialized variable warnings. Originally committed as revision 17826 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Pass packet position to the parser, so frame's AVPacket.pos is computed ↵Ivan Schreter2009-03-05
| | | | | | correctly. Originally committed as revision 17824 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Fix indentation.Diego Biurrun2009-03-03
| | | | Originally committed as revision 17756 to svn://svn.ffmpeg.org/ffmpeg/trunk
* deprecate old metadata APIAurelien Jacobs2009-03-01
| | | | Originally committed as revision 17690 to svn://svn.ffmpeg.org/ffmpeg/trunk
* use new metadata API in libavformat/utils.cAurelien Jacobs2009-03-01
| | | | Originally committed as revision 17687 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Disable MPEG-1/2 style timestamp calculation for H264. It still randomizesMichael Niedermayer2009-03-01
| | | | | | the timestamps because delay is not known for the first few frames. Originally committed as revision 17674 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert "Improve frame rate guessing for streams with two fields per frame."Måns Rullgård2009-02-28
| | | | | | | This reverts r17656, which broke many tests. Further investigation is necessary. Originally committed as revision 17658 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Improve frame rate guessing for streams with two fields per frame.Ivan Schreter2009-02-28
| | | | | | Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17656 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not allow standard-frame-rate detection to increase the value ofReimar Döffinger2009-02-27
| | | | | | r_frame_rate by more than 1% over a previously set/detected value. Originally committed as revision 17641 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Detect the case when the time base is exact but far finer than necessary toReimar Döffinger2009-02-27
| | | | | | represent the time stamps, as e.g. for ipmovie.c and set a better r_frame_rate. Originally committed as revision 17631 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add ticks_per_frame, this should hopefully fix the regressions causedMichael Niedermayer2009-02-26
| | | | | | by the time_base change. Originally committed as revision 17630 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add timestamp computation if values are exported by decoder.Ivan Schreter2009-02-24
| | | | | | Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17574 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change duration computation to use time_base instead of TB/2.Ivan Schreter2009-02-24
| | | | | | Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17570 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add CODEC_ID_H264 to tb_unreliable(), it belongs there for the sameMichael Niedermayer2009-02-24
| | | | | | reason as mpeg2. (telecine amongth others) Originally committed as revision 17551 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow av_find_stream_info() to be aborted.Michael Niedermayer2009-02-23
| | | | | | Based on a patch by netgem. Originally committed as revision 17538 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Waste less space for printing timebases.Michael Niedermayer2009-02-21
| | | | Originally committed as revision 17505 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Print all timebases (idea from netgem)Michael Niedermayer2009-02-21
| | | | Originally committed as revision 17502 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use context variable repeat_pict for frame duration computation andIvan Schreter2009-02-21
| | | | | | | | document this new use. Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17492 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Be less noisy with invalid pts/dts.Michael Niedermayer2009-02-21
| | | | Originally committed as revision 17482 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add convergence_duration to AVCodecParserContext.Ivan Schreter2009-02-19
| | | | | | Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17468 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add key_frame to AVCodecParserContext, used in libavformat.Ivan Schreter2009-02-18
| | | | | | | | 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
* Add a warning log when trying to encode into a container requiring globalArt Clarke2009-02-12
| | | | | | | headers in extradata and the codec is not set correctly. Patch by Art Clarke aclarke xuggle com Originally committed as revision 17177 to svn://svn.ffmpeg.org/ffmpeg/trunk