summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
Commit message (Collapse)AuthorAge
* Fix argument constness for the av_codec_get_id() andStefano Sabatini2008-11-08
| | | | | | | av_codec_get_tag() functions, making them take in input a constant array, since they're not supposed to change it. Fix some warnings. Originally committed as revision 15795 to svn://svn.ffmpeg.org/ffmpeg/trunk
* dnxhd codec is intra onlyBaptiste Coudurier2008-10-23
| | | | Originally committed as revision 15672 to svn://svn.ffmpeg.org/ffmpeg/trunk
* uses FF_ARRAY_ELEMS() where appropriateAurelien Jacobs2008-10-21
| | | | Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check for pts==dts on I/P frames in the presence of non low delay decoding andMichael Niedermayer2008-10-19
| | | | | | | discard these invalid timestamps. fixes issue171. Originally committed as revision 15641 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move code setting delay and presentation_delayed a little up soMichael Niedermayer2008-10-18
| | | | | | that the variables are available sooner. Originally committed as revision 15640 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove offset_t typedef and use int64_t directly instead.Diego Biurrun2008-10-03
| | | | | | | The name offset_t is easily confused with the standard off_t type and *_t is POSIX reserved namespace if any POSIX header is included. Originally committed as revision 15533 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move doxygen comments for av_gettime from utils.c to avformat.h.Diego Biurrun2008-09-27
| | | | Originally committed as revision 15439 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Ensure that muxer and encoder aspect ratios match. So noMichael Niedermayer2008-09-19
| | | | | | invalid files are generated. Originally committed as revision 15367 to svn://svn.ffmpeg.org/ffmpeg/trunk
* set block align in av_write_header if not set, fix issue #489Baptiste Coudurier2008-09-08
| | | | Originally committed as revision 15277 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Bump Major version, this commit is almost just renaming bits_per_sample toLuca Abeni2008-09-08
| | | | | | | | | | | bits_per_coded_sample but that cannot be done seperately. Patch by Luca Abeni Also reset the minor version and fix the forgotton change to libfaad. Note: The API/ABI should not be considered stable yet, there still may be a change done here or there if some developer has some cleanup ideas and patches! Originally committed as revision 15262 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add AVPacket.convergence_duration.Michael Niedermayer2008-09-03
| | | | Originally committed as revision 15179 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix detection of MPEG4 in MPEG-PS.Michael Niedermayer2008-09-02
| | | | | | Fixes issue568. Originally committed as revision 15152 to svn://svn.ffmpeg.org/ffmpeg/trunk
* make has_codec_parameters not returning true when sample_fmt is not setBaptiste Coudurier2008-08-29
| | | | Originally committed as revision 15043 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not truncate timestamps before the muxer as it makes simpleMichael Niedermayer2008-08-29
| | | | | | | things like last_pts - pts rather tricky and is not good for anything. Timestamps should be truncated just before storing when needed. Originally committed as revision 15015 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change implementation for ff_data_to_hex(), this is faster. See discussion onRonald S. Bultje2008-08-28
| | | | | | mailinglist in "Realmedia patch" thread. Originally committed as revision 15006 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Export data_to_hex() as private API in lavf, rename to ff_data_to_hex() andRonald S. Bultje2008-08-27
| | | | | | | | move it from sdp.c into utils.c. Also add new header internal.h specifically for lavf-specific internal API. See discussion in "Realmedia patch" thread on mailinglist. Originally committed as revision 15002 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove useless assignment (st is never read after this line)Aurelien Jacobs2008-08-26
| | | | Originally committed as revision 14985 to svn://svn.ffmpeg.org/ffmpeg/trunk
* When setting codec_id during codec probe we must also set codec_type.Andreas Öman2008-08-25
| | | | Originally committed as revision 14966 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark several libavformat arrays constReimar Döffinger2008-08-24
| | | | Originally committed as revision 14950 to svn://svn.ffmpeg.org/ffmpeg/trunk
* export sample_aspect_ratio read by the demuxer in a separate fieldAurelien Jacobs2008-08-23
| | | | | | 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-14
| | | | | | | | | | 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-13
| | | | 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-12
| | | | | | 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-10
| | | | | | the forward declarations. Originally committed as revision 14677 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avformat_version().Stefano Sabatini2008-08-08
| | | | 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-06
| | | | | | | | | | | 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-31
| | | | Originally committed as revision 14489 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix a mem leak in av_find_stream_info().Erik Hovland2008-07-18
| | | | | | 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-14
| | | | 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-14
| | | | | | Should fix issue313 Originally committed as revision 14232 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove old hackish codec probe system.Michael Niedermayer2008-07-12
| | | | 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-12
| | | | Originally committed as revision 14190 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indentMichael Niedermayer2008-07-12
| | | | 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-12
| | | | | | 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-12
| | | | Originally committed as revision 14187 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indentMichael Niedermayer2008-07-12
| | | | Originally committed as revision 14185 to svn://svn.ffmpeg.org/ffmpeg/trunk
* New codec probing system try #1.Michael Niedermayer2008-07-12
| | | | 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-12
| | | | | | | | 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-12
| | | | 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-12
| | | | | | all that is needed. Originally committed as revision 14179 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indentMichael Niedermayer2008-07-08
| | | | Originally committed as revision 14133 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10000l for myself, my last change was incomplete.Michael Niedermayer2008-07-08
| | | | | | 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-08
| | | | | | | | 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-03
| | | | | | 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-03
| | | | | | 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-27
| | | | Originally committed as revision 14012 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Also print flags with FF_FDEBUG_TS.Michael Niedermayer2008-06-26
| | | | 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-25
| | | | 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-25
| | | | 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-25
| | | | Originally committed as revision 13970 to svn://svn.ffmpeg.org/ffmpeg/trunk