aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | avformat, avcodec: log discard paddingwm42015-04-141-1/+1
| | | | | | | | | | | | Useful for debugging. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '27f274628234c1f934b9a6a6380ed567c1b4ceae'Michael Niedermayer2015-04-071-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '27f274628234c1f934b9a6a6380ed567c1b4ceae': parseutils: Make av_small_strptime public Conflicts: doc/APIchanges libavformat/utils.c libavutil/parseutils.c libavutil/version.h See: 29e972f67c914d35417bc7368493d2617abdd26e Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * parseutils: Make av_small_strptime publicLuca Barbato2015-04-071-9/+2
| | | | | | | | | | | | And use it in libavformat. Based on a similar patch by Stefano Sabatini <stefasab@gmail.com>.
* | avformat/utils: avoid discarded streams in av_find_default_stream_index()Michael Niedermayer2015-04-061-0/+3
| | | | | | | | | | | | Fixes Ticket2010 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: Terminate SPS in avci100_1080i_extradata to avoid warnings ↵Michael Niedermayer2015-03-241-1/+1
| | | | | | | | | | | | | | during parsing Fixes: AVCI100_Test.mxf Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '342fc46c69199b076b7c210f42208ce39a2bde1c'Michael Niedermayer2015-03-201-0/+22
|\| | | | | | | | | | | | | | | | | | | * commit '342fc46c69199b076b7c210f42208ce39a2bde1c': cmdutils: Add a stream specifier to map usable streams Conflicts: cmdutils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat: add avformat_flush()wm42015-03-051-0/+6
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '9deaec782810d098bca11c9332fab2d2f4c5fb78'Michael Niedermayer2015-02-111-45/+49
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit '9deaec782810d098bca11c9332fab2d2f4c5fb78': lavf: move internal fields from public to internal context Conflicts: libavformat/avformat.h libavformat/internal.h libavformat/mux.c libavformat/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavf: move internal fields from public to internal contextwm42015-02-101-38/+39
| | | | | | | | | | | | | | This is not an API change; the fields were explicitly declared private before. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | avformat/utils: Fix division by 0Michael Niedermayer2015-02-091-2/+2
| | | | | | | | | | | | | | Fixes: signal_sigsegv_14999ef_1188_cov_2888512890_SVA_CL1_E.264 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavf/utils: fix if_( styleStefano Sabatini2015-02-041-1/+1
| |
* | avformat: fix mode of img2dec.c and utils.cMichael Niedermayer2015-02-031-0/+0
| | | | | | | | | | Found-by: jamrial Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/img2dec: remove the non-negative number requirement for ↵Liviu Oniciuc2015-02-031-0/+2
| | | | | | | | | | | | | | | | | | start_number option industrial cameras usually mark the trigger frame as frame number 0 all frames saved before trigger frame receive a negative sequence number Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/network: Check for av_malloc* failures in ff_tls_init()Michael Niedermayer2015-02-031-1/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: Fix number suffixes in tb_unreliable()Michael Niedermayer2015-02-011-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: remove unneeded #include, there are no assert() only av_assert*Paul B Mahol2015-01-311-2/+0
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Merge commit '4227e4fe7443733fb906f6fb6c265105e8269c74'Michael Niedermayer2015-01-271-0/+37
|\| | | | | | | | | | | | | | | | | | | | | * commit '4227e4fe7443733fb906f6fb6c265105e8269c74': lavf: add a convenience function for adding side data to a stream Conflicts: libavformat/internal.h libavformat/replaygain.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavf: add a convenience function for adding side data to a streamAnton Khirnov2015-01-271-0/+37
| |
| * libavformat: Check for malloc failures in avformat_new_streamMartin Storsjö2015-01-041-0/+5
| | | | | | | | | | CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
| * avformat: Make avformat_free_context handle NULLLuca Barbato2014-10-171-0/+3
| | | | | | | | | | | | | | Work as the other free()-like functions. Bug-Id: CID 1087081 CC: libav-stable@libav.org
* | avformat: Improve data streams/codec supportAnshul Maheshwari2015-01-161-0/+1
| | | | | | | | | | | | | | This adds data codec/stream handling where previously there was only audio/video/subtitles Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: Use avio_closep() to avoid leaving stale pointers in memoryMichael Niedermayer2015-01-091-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: Clear pointer in ff_alloc_extradata() to avoid leaving a ↵Michael Niedermayer2015-01-061-0/+1
| | | | | | | | | | | | stale pointer in memory Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: add dvbsub to set_codec_from_probe_data()Michael Niedermayer2015-01-051-0/+1
| | | | | | | | | | | | Fixes part of ticket 4221 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Add FFMPEG_VERSION into the binary libsMichael Niedermayer2014-12-191-0/+3
| | | | | | | | | | | | This simplifies identifying from which revision a binary of a lib came from Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: Do not update programs streams from program-less streams in ↵Michael Niedermayer2014-12-141-0/+2
| | | | | | | | | | | | | | | | update_wrap_reference() Fixes Ticket3686 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: use r_frame_rate only in the demuxer for ↵Michael Niedermayer2014-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | ff_compute_frame_duration() This is primarly to maintain current behavior when r_frame_rate is set for muxers and could be reverted if it has some advantage Fixes Ticket3629 part1 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | fix "than" typoMichael Niedermayer2014-12-131-1/+1
| | | | | | | | | | Found-by reimar Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: Do not estimate the container bitrate from the streams if ↵Michael Niedermayer2014-12-131-0/+5
| | | | | | | | | | | | one video stream lacks the bitrate Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: check for malloc failurewm42014-12-121-0/+5
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: change assert to av_assert0()Michael Niedermayer2014-12-091-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: replace impossible condition by av_assert0() in ff_gen_search()Michael Niedermayer2014-12-091-4/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: fix calculating the absolute difference of timestampsMichael Niedermayer2014-12-091-1/+1
| | | | | | | | | | | | we dont use FFABS(a-b) as that could result in undefined behavior if it overflows Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: Compute the current pts of mpeg1/2 I/P frames from the next ↵Michael Niedermayer2014-12-091-0/+8
| | | | | | | | | | | | frame when available Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: Pass the next pts/dts to compute_pkt_fields() when availableMichael Niedermayer2014-12-091-4/+7
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: Search harder for missing stream information in flv by defaultMichael Niedermayer2014-12-011-5/+10
| | | | | | | | | | | | Fixes Ticket4133 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat: replace some odd 30-60 rates by higher less odd ones in ↵Michael Niedermayer2014-11-211-3/+9
| | | | | | | | | | | | | | | | get_std_framerate() Fixes Ticket4012 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Read (display) aspect ratio from mxf files.Carl Eugen Hoyos2014-11-171-0/+5
| | | | | | | | Fixes ticket #4107.
* | lavf/ffm: store/restore private codec contextLukasz Marek2014-11-161-0/+2
| | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | avformat/utils: Leave skip_clear enabled until after estimate_timings()Michael Niedermayer2014-11-031-1/+2
| | | | | | | | | | | | Should make no difference but will be needed for subsequent commits Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: support more AVC Intra formats without SPS/PPS headerThomas Mundt2014-10-291-2/+40
| | | | | | | | | | | | | | add support for AVC Intra 50 720p and 1080p without SPS/PPS header in mxf and mov demuxers. I got the SPS/PPS tables from libbmx. Reviewed-by: tomas.hardin@codemill.se Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat: Add and use ff_copy_whitelists()Michael Niedermayer2014-10-241-0/+13
| | | | | | | | | | | | | | Fixes potential security issue in case of running out of memory Found-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat: Add format_whitelistMichael Niedermayer2014-10-191-0/+17
| | | | | | | | | | | | | | | | This allows restricting demuxers to a list of needed ones for improved security Note, some demuxers themselfs open other demuxers, these are only restricted if AVOptions are forwarded to them. Please check that your code does that. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/util: Simplify av_guess_frame_rate() by using AVCodecContext.framerateMichael Niedermayer2014-10-161-2/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: Try to correct the codec_framerate in ↵Michael Niedermayer2014-10-161-1/+1
| | | | | | | | | | | | | | | | ff_compute_frame_duration() for the encoding case No testcase where this makes a difference is known Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: use av_reduce() to simplify code and avoid overflow in ↵Michael Niedermayer2014-10-151-8/+9
| | | | | | | | | | | | ff_compute_frame_duration() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '2d6e58497e76836604364b037df9b00ba3d75b69'Michael Niedermayer2014-10-151-6/+12
|\| | | | | | | | | | | | | | | | | | | * commit '2d6e58497e76836604364b037df9b00ba3d75b69': lavf: switch to AVCodecContext.framerate for demuxing Conflicts: libavformat/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavf: switch to AVCodecContext.framerate for demuxingAnton Khirnov2014-10-151-6/+8
| |
| * lavf: Don't drop both pts and dts if timestamps are invalidMichael Niedermayer2014-10-121-1/+1
| | | | | | | | | | | | | | | | | | In these cases, only drop dts. Because if we drop both we have no timestamps at all for some files. This improves playback of HLS streams from GoPro cameras. Signed-off-by: Martin Storsjö <martin@martin.st>
* | avformat/utils: print more information with av_dlog() in compute_pkt_fields()Michael Niedermayer2014-10-131-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>