summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
Commit message (Collapse)AuthorAge
* Fix muxing rgb rawvideo in avi regression.Michael Niedermayer2010-06-05
| | | | Originally committed as revision 23500 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make the error message issued in case of invalid codec tag moreStefano Sabatini2010-06-02
| | | | | | informative. Originally committed as revision 23423 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Print an error when MAX_STREAMS is reached.Michael Niedermayer2010-06-01
| | | | Originally committed as revision 23413 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure that when the parser is feeded with frame==packet that theMichael Niedermayer2010-05-27
| | | | | | | packets are passed through and wont be marked as static which would require them to be copied by av_dup_packet(). Originally committed as revision 23352 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add an AVSTREAM_PARSE_FULL_ONCE parsing mode to parse headers and combine ↵Alex Converse2010-05-26
| | | | | | packets once and only once. Originally committed as revision 23332 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Display a more descriptive log message when probe buffer limit isJai Menon2010-05-24
| | | | | | reached. Originally committed as revision 23288 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make av_write_header() return AVERROR(EINVAL) rather than -1 if theStefano Sabatini2010-05-22
| | | | | | input parameters are not valid. Originally committed as revision 23253 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Store in a dedicated array the format name - codec id - codec typeStefano Sabatini2010-05-22
| | | | | | mapping. Simplify. Originally committed as revision 23252 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Prefer enum CodecID over int in ff_codec_get_tag().Stefano Sabatini2010-05-22
| | | | Originally committed as revision 23249 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a libavformat internal function ff_write_chainedMartin Storsjö2010-05-21
| | | | Originally committed as revision 23207 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Validate AVCodecTag vs CodecID.Francesco Lavra2010-05-18
| | | | | | Patch by Francesco Lavra, francescolavra interfree it Originally committed as revision 23159 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize some code into the new function ff_toupper4().Francesco Lavra2010-05-18
| | | | | | Patch by Francesco Lavra, francescolavra interfree it Originally committed as revision 23158 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change MAX_READ_SIZE message during av_find_stream_info to DEBUG level.Baptiste Coudurier2010-05-14
| | | | | | It is not harmful and it scares too many users. Originally committed as revision 23139 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Export av_probe_input_format2.Reimar Döffinger2010-05-01
| | | | Originally committed as revision 23002 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark av_metadata_set() as deprecated, and use av_metadata_set2()Stefano Sabatini2010-04-25
| | | | | | | | in its place. av_metadata_set() is going to be dropped at the next major bump. Originally committed as revision 22961 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not probe when the format is known.Jean-Daniel Dupas2010-04-13
| | | | | | Patch by Jean-Daniel Dupas devlists shadowlab org Originally committed as revision 22870 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Raise needed score for codec probing in CODEC_ID_PROBE before the last packet.Michael Niedermayer2010-04-11
| | | | | | Fixes issue1871 Originally committed as revision 22831 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Dont try to compute AVPacket duration for possibly interlaced video codecsMichael Niedermayer2010-04-09
| | | | | | | when no parser is available. This partly fixes the frame rate misdetection in issue1756. Originally committed as revision 22824 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reusing the probe buffer to rewind the ByteIOContext in ↵Tomas Härdin2010-04-08
| | | | | | ff_probe_input_buffer() instead of seeking back to the start of the file. Once exhausted, the size of the buffer is reduced. Originally committed as revision 22821 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix rounding direction for calculation of AVPacket.duration.Michael Niedermayer2010-04-04
| | | | | | Fixes issue1579 Originally committed as revision 22802 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Limit probing to probesize.Michael Niedermayer2010-04-01
| | | | Originally committed as revision 22758 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add AVFMT_FLAG_NOFILLIN and AVFMT_FLAG_NOPARSE.Michael Niedermayer2010-03-31
| | | | Originally committed as revision 22745 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.Jean-Daniel Dupas2010-03-31
| | | | | | Patch by Jean-Daniel Dupas, devlists shadowlab org Originally committed as revision 22744 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Probe aac codecs for CODEC_ID_PROBE.Joakim Plate2010-03-31
| | | | | | Patch by Joakim Plate, elupus ecce se Originally committed as revision 22742 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix updating condition for the probe_size variable in the internalMicah F. Galizia2010-03-26
| | | | | | | | | | | | loop of ff_probe_input_buffer(), making sure that probe_size is always set to probe_max_size in the last iteration. Also make the function return an error if we get to the max probe length and still cannot figure out what the format is. Patch by Micah Galizia micahgalizia A gmail D com. Originally committed as revision 22688 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ReindentMartin Storsjö2010-03-25
| | | | Originally committed as revision 22666 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a lowercase parameter to ff_data_to_hexMartin Storsjö2010-03-25
| | | | Originally committed as revision 22665 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make av_open_input_file() return AVERROR_INVALIDDATA rather thanStefano Sabatini2010-03-21
| | | | | | | | | | | | AVERROR_NOFMT if the format is unknown / cannot be recognized. It is returned AVERROR_INVALIDDATA, in the sense that the data is invalid within what the specific libav* binary supports. That was the last remaining use of AVERROR_NOFMT, which is going to be dropped at the next libavutil major bump. Originally committed as revision 22625 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix erroneous behaviour when format probe hits end of fileMåns Rullgård2010-03-16
| | | | | | | | | | If the format probe hits end of file, do not add the error code to the buffer position. This is obviously wrong, and with a small input file would cause a negative buffer overflow. Fixes issue 1818. Originally committed as revision 22571 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rename av_read_frame_flush to ff_read_frame_flushAurelien Jacobs2010-03-15
| | | | | | it is an internal function, not part of public API Originally committed as revision 22562 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rename av_program_add_stream_index to ff_program_add_stream_indexAurelien Jacobs2010-03-15
| | | | | | it is an internal function, not part of public API Originally committed as revision 22561 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move the NTP offset definitions to internal.hMartin Storsjö2010-03-15
| | | | Originally committed as revision 22542 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move the probe loop from av_open_input_file() into its own methodMicah F. Galizia2010-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | av_probe_input_buffer() so that it can be reused. Here are a few differences to the original way things were probed: - maximum probe buffer size can be specified as a parameter. - offset within the stream to probe from can be specified as a parameter. - instead of seeking back to the start each time a probe fails, stream data is appended to the reallocated buffer. This lowers the amount of data read from the stream (there is no repetition) and results in fewer closed and reopened streams (when seeking fails). New attempt after r22296, which was revert in r22315 due to a FATE failure. See the thread: Subject: [FFmpeg-devel] [PATCH] Move av_open_input_file probe loop to its own method Date: 2010-03-05 03:23:57 GMT Patch by Micah F. Galizia printf("%s%s@%s.%s", "micah", "galizia", "gmail", "com"). Originally committed as revision 22532 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make the ntp_time function available to other parts of libavformat, as ↵Martin Storsjö2010-03-10
| | | | | | ff_ntp_time Originally committed as revision 22438 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add special case to avoid binary search when appending index entries.Michael Niedermayer2010-03-09
| | | | Originally committed as revision 22400 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove definition of match_ext(), which is declared under #ifdefStefano Sabatini2010-03-08
| | | | | | HAVE_AV_CONFIG_H and so not publicly declared, and currently unused. Originally committed as revision 22353 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ReindentMartin Storsjö2010-03-08
| | | | Originally committed as revision 22322 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename url_split to ff_url_splitMartin Storsjö2010-03-08
| | | | | | Since this function isn't in the public API, it should have an ff_ prefix. Originally committed as revision 22321 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert "Move the probe loop from av_open_input_file() into its own method"Måns Rullgård2010-03-08
| | | | | | | This reverts r22296. This change made some files to fail to open. The patch submitter has promised to investigate next week. Originally committed as revision 22315 to svn://svn.ffmpeg.org/ffmpeg/trunk
* av_find_stream_info(): Add a workaround for backwards compatible HE-AAC ↵Alex Converse2010-03-08
| | | | | | | | | signaling. The sample rate, frame size, and channel count from the container are not reliable when backwards compatible signaling is used. Originally committed as revision 22301 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix pts->dts conversion init for non-zero initial value for pts.Daniel Kristjansson2010-03-07
| | | | | | Patch by Daniel Kristjansson, danielk cuymedia net Originally committed as revision 22297 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move the probe loop from av_open_input_file() into its own methodMicah F. Galizia2010-03-07
| | | | | | | | | | | | | | | | | | av_probe_input_buffer() so that it can be reused. Here are a few differences to the original way things were probed: - maximum probe buffer size can be specified as a parameter. - offset within the stream to probe from can be specified as a parameter. - instead of seeking back to the start each time a probe fails, stream data is appended to the reallocated buffer. This lowers the amount of data read from the stream (there is no repetition) and results in fewer closed and reopened streams (when seeking fails). Patch by Micah F. Galizia printf("%s%s@%s.%s", "micah", "galizia", "gmail", "com"). Originally committed as revision 22296 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add some missing #includesMåns Rullgård2010-03-06
| | | | Originally committed as revision 22258 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a function ff_url_join for assembling URLsMartin Storsjö2010-03-05
| | | | Originally committed as revision 22225 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix memory leak in NUT muxerVitor Sessak2010-03-05
| | | | Originally committed as revision 22222 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Print chapter info in dump_format().Anton Khirnov2010-02-28
| | | | | | Patch by Anton Khirnov, wyskas gmail Originally committed as revision 22113 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Count all frames with codec_info_nb_frames not just ones with non zeroMichael Niedermayer2010-02-23
| | | | | | duration. I hope this breaks nothing. Its needed for my fix of issue1156 Originally committed as revision 22001 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Put codec_info_nb_frames back in AVStream and print its value.Michael Niedermayer2010-02-23
| | | | | | | This way streams with no or very few frames can be avoided during auto selection Originally committed as revision 21998 to svn://svn.ffmpeg.org/ffmpeg/trunk