aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
* export sample_aspect_ratio read by the demuxer in a separate fieldAurelien Jacobs2008-08-231-0/+2
| | | | | | that the one read by the decoder. Originally committed as revision 14932 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not fill the pts reordering buffer with guessed dts.Michael Niedermayer2008-08-141-2/+0
| | | | | | | | | | These values should not matter at all in principle because they do not correspond to the time of display of any frame but it seems ffmpeg becomes confused by them if they are far off and its not strictly correct to set them to guessed values. Fixes video_stalls_at_start.wmv Originally committed as revision 14746 to svn://svn.ffmpeg.org/ffmpeg/trunk
* strcasecmp() requires #include <strings.h>Aurelien Jacobs2008-08-131-0/+1
| | | | Originally committed as revision 14728 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Prevent dts generation code to be executed when delay is > MAX_REORDER_DELAY,Baptiste Coudurier2008-08-121-2/+2
| | | | | | this fixes overflow in AVStream->pts_buffer. Originally committed as revision 14714 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: move at the beginning of the file the av_frac_* functions, avoidStefano Sabatini2008-08-101-52/+49
| | | | | | the forward declarations. Originally committed as revision 14677 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avformat_version().Stefano Sabatini2008-08-081-0/+5
| | | | Originally committed as revision 14667 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Maintain pointer to end of AVFormatContext.packet_buffer listMåns Rullgård2008-08-061-10/+12
| | | | | | | | | | | This changes add_to_pktbuf() to maintain a pointer to the last entry in the list, avoiding a linear walk-through on each call. Before this change, add_to_pktbuf() could take a significant amount of time (10% of total decoding time), even with input files of several minutes. After the change, the time spent in this function is barely measurable with oprofile. Originally committed as revision 14654 to svn://svn.ffmpeg.org/ffmpeg/trunk
* check url_fseek return value, update seek reg testsBaptiste Coudurier2008-07-311-7/+9
| | | | Originally committed as revision 14489 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix a mem leak in av_find_stream_info().Erik Hovland2008-07-181-1/+3
| | | | | | Patch by Erik Hovland erik hovland org Originally committed as revision 14276 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move the codec_id overriding at a slightly better place.Michael Niedermayer2008-07-141-5/+5
| | | | Originally committed as revision 14234 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove common factors from timebase in av_set_pts_info().Michael Niedermayer2008-07-141-2/+6
| | | | | | Should fix issue313 Originally committed as revision 14232 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove old hackish codec probe system.Michael Niedermayer2008-07-121-38/+0
| | | | Originally committed as revision 14193 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use strcmp() instead of strncmp() in set_codec_from_probe_data().Michael Niedermayer2008-07-121-2/+2
| | | | Originally committed as revision 14190 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indentMichael Niedermayer2008-07-121-5/+5
| | | | Originally committed as revision 14189 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only try to probe the codec when the available data has roughly doubledMichael Niedermayer2008-07-121-0/+2
| | | | | | relative to the last attempt. Originally committed as revision 14188 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add mpegvideo and H.264 to the codec probe.Michael Niedermayer2008-07-121-0/+4
| | | | Originally committed as revision 14187 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indentMichael Niedermayer2008-07-121-16/+16
| | | | Originally committed as revision 14185 to svn://svn.ffmpeg.org/ffmpeg/trunk
* New codec probing system try #1.Michael Niedermayer2008-07-121-1/+33
| | | | Originally committed as revision 14184 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move add_to_pktbuf() before av_read_packet(). My future work on codec ↵Michael Niedermayer2008-07-121-16/+16
| | | | | | | | identification cleanup will need this. Originally committed as revision 14181 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move set_codec_from_probe_data() up to where the other probe functions are.Michael Niedermayer2008-07-121-14/+14
| | | | Originally committed as revision 14180 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Pass AVPacketList instead of the whole context to add_to_pktbuf as that isMichael Niedermayer2008-07-121-5/+5
| | | | | | all that is needed. Originally committed as revision 14179 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indentMichael Niedermayer2008-07-081-2/+2
| | | | Originally committed as revision 14133 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10000l for myself, my last change was incomplete.Michael Niedermayer2008-07-081-1/+3
| | | | | | This one also reverts the libav mpeg ts regression test score change. Originally committed as revision 14132 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set cur_dts to 0 only during creating new streams and not every time cur_dts ↵Michael Niedermayer2008-07-081-5/+5
| | | | | | | | happens to be AV_NOPTS_VALUE. Originally committed as revision 14118 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after r14059, see "[PATCH] allow empty params forRonald S. Bultje2008-07-031-3/+3
| | | | | | av_open_input_stream()". Originally committed as revision 14060 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow NULL for read_header in AVInputFormat. See discussion in "[PATCH] allowRonald S. Bultje2008-07-031-0/+2
| | | | | | empty params for av_open_input_stream()". Originally committed as revision 14059 to svn://svn.ffmpeg.org/ffmpeg/trunk
* give context to av_logBaptiste Coudurier2008-06-271-2/+2
| | | | Originally committed as revision 14012 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Also print flags with FF_FDEBUG_TS.Michael Niedermayer2008-06-261-4/+6
| | | | Originally committed as revision 13987 to svn://svn.ffmpeg.org/ffmpeg/trunk
* make av_find_stream_info find frame_size for aac tooBaptiste Coudurier2008-06-251-1/+3
| | | | Originally committed as revision 13976 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make av_find_stream_info() find the frame_size for vorbis.Michael Niedermayer2008-06-251-0/+2
| | | | Originally committed as revision 13972 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fill missing pts in during muxing when we know that they are equal to dts.Michael Niedermayer2008-06-251-0/+3
| | | | Originally committed as revision 13970 to svn://svn.ffmpeg.org/ffmpeg/trunk
* We cannot calculate the duration of vorbis packets even if we do know theMichael Niedermayer2008-06-251-3/+3
| | | | | | "minimal" frame_size. Originally committed as revision 13969 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Prevent duration calculation code from generating random durations forMichael Niedermayer2008-06-241-0/+3
| | | | | | vorbis in ogg. Originally committed as revision 13958 to svn://svn.ffmpeg.org/ffmpeg/trunk
* uniformize AVStream->priv_data freeing in av_close_input_streamBaptiste Coudurier2008-06-201-0/+1
| | | | Originally committed as revision 13838 to svn://svn.ffmpeg.org/ffmpeg/trunk
* factorize read_header failure freeing codeBaptiste Coudurier2008-06-201-0/+9
| | | | Originally committed as revision 13837 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check if there is at least a stream before writing trailer.Art Clarke2008-06-201-1/+1
| | | | | | Patch by Art Clarke: aclarke vlideshow com Originally committed as revision 13836 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make timestamp debugging work nicer.Michael Niedermayer2008-06-091-2/+4
| | | | Originally committed as revision 13728 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge declaration and initialization.Ramiro Polla2008-06-061-2/+1
| | | | Originally committed as revision 13672 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Ensure the first audio stream is selected as the default streamAurelien Jacobs2008-06-031-1/+4
| | | | | | when no video stream is present. Originally committed as revision 13648 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make update_initial_durations() also work if a dts occured before aMichael Niedermayer2008-06-031-5/+20
| | | | | | | | sequence header (that is a few known dts/pts but no known durations previously) cnnts1.mpg is one sample affected by this. Originally committed as revision 13640 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not set pts in update_initial_durations() if stream has b frames.Michael Niedermayer2008-06-031-1/+3
| | | | Originally committed as revision 13639 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Audio channels and sample rate must be set in order to skipAndreas Öman2008-06-021-1/+1
| | | | | | additional probing of a stream. Originally committed as revision 13619 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rename last_frame_offset to next_frame_offset, due to r13615Baptiste Coudurier2008-06-021-1/+1
| | | | Originally committed as revision 13618 to svn://svn.ffmpeg.org/ffmpeg/trunk
* redundant check--Michael Niedermayer2008-05-271-1/+2
| | | | Originally committed as revision 13474 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not use the pts/dts calculation code which needs a parser, when no parserMichael Niedermayer2008-05-271-1/+1
| | | | | | is available. Originally committed as revision 13470 to svn://svn.ffmpeg.org/ffmpeg/trunk
* compute the end of all chapters when end is not specified in the containerAurelien Jacobs2008-05-241-0/+22
| | | | Originally committed as revision 13363 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: indentationAurelien Jacobs2008-05-241-1/+1
| | | | Originally committed as revision 13280 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove useless title checkAurelien Jacobs2008-05-241-1/+0
| | | | Originally committed as revision 13279 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Pass time_base as argument to new_chapter() as well.Michael Niedermayer2008-05-231-1/+2
| | | | | | | This fixes the wrong timebase the matroska demuxer had after my previous commits. Maybe we should reduce new_chapter() to just (AVFormatContext, int id) ? Originally committed as revision 13266 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Warn user about invalid timestamps.Michael Niedermayer2008-05-231-0/+12
| | | | Originally committed as revision 13264 to svn://svn.ffmpeg.org/ffmpeg/trunk