aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * avformat: don't unconditionally call ff_read_frame_flush() when trying to seek.Justin Ruggles2011-10-131-10/+14
| | | | | | | | | | This prevents flushing the packet buffer when the input format does not support seeking.
* | lavf: check stream_index from read_packet() for validity.Michael Niedermayer2011-10-121-0/+5
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-10-091-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: lavf: fix signed overflow in avformat_find_stream_info() vp8: fix signed overflows motion_est: fix some signed overflows dca: fix signed overflow in shift aacdec: fix undefined shifts bink: Check for various out of bound writes bink: Check for out of bound writes when building tree put_bits: fix invalid shift by 32 in flush_put_bits() Conflicts: libavcodec/bink.c libavformat/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavf: fix signed overflow in avformat_find_stream_info()Mans Rullgard2011-10-081-2/+2
| | | | | | | | | | | | | | | | | | | | On the first iteration through this code, last_dts is always INT64_MIN (AV_NOPTS_VALUE) and the subtraction overflows in an invalid manner. Although the result is only used if the input values are valid, performing the subtraction is still not allowed in a strict environment. Signed-off-by: Mans Rullgard <mans@mansr.com>
* | update_stream_timings: Remove redundant check.Michael Niedermayer2011-10-061-1/+1
| | | | | | | | | | Found-by:Nicolas Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | generic seeking: fail if there are 1000 non keyframes found with no keyframe.Michael Niedermayer2011-10-051-2/+7
| | | | | | | | | | | | This avoids scanning through a whole file just to fail. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavf/utils: fix overestimation of the rational number density.Michael Niedermayer2011-10-031-1/+1
| | | | | | | | | | | | Fixes Ticket498 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-10-011-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (34 commits) dpcm: return error if packet is too small dpcm: use smaller data types for static tables dpcm: use sol_table_16 directly instead of through the DPCMContext. dpcm: replace short with int16_t dpcm: check to make sure channels is 1 or 2. dpcm: misc pretty-printing dpcm: remove unnecessary variable by using bytestream functions. dpcm: move codec-specific variable declarations to their corresponding decoding blocks. dpcm: consistently use the variable name 'n' for the next input byte. dpcm: output AV_SAMPLE_FMT_U8 for Sol DPCM subcodecs 1 and 2. dpcm: calculate and check actual output data size prior to decoding. dpcm: factor out the stereo flag calculation dpcm: cosmetics: rename channel_number to ch avserver: Fix a bug where the socket is IPv4, but IPv6 is autoselected for the loopback address. lavf: Avoid using av_malloc(0) in av_dump_format dxva2_h264: pass the correct 8x8 scaling lists dca: NEON optimised high freq VQ decoding avcodec: reject audio packets with NULL data and non-zero size dxva: Add ability to enable workaround for older ATI cards latmenc: Set latmBufferFullness to largest value to indicate it is not used ... Conflicts: libavcodec/dxva2_h264.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavf: Avoid using av_malloc(0) in av_dump_formatMartin Storsjö2011-09-301-1/+1
| | | | | | | | | | | | | | On OS X, av_malloc(0) returns pointers that cause crashes when freed. Signed-off-by: Martin Storsjö <martin@martin.st>
* | avformat_free_context: favor av_freep()Michael Niedermayer2011-10-011-8/+8
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavf/utils: Drop old hack for implicit HE-AAC signaling.Alex Converse2011-09-301-9/+0
| | | | | | | | | | | | It has not been needed since a58858d60d37c7abfcea11bb387909bf9cd4916d. Fixes decode of implicit HE-AAC without extradata or ADTS headers.
* | lavf/utils: ignore subtitle timestamps in timings calculationMichael Niedermayer2011-09-301-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-09-271-8/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (21 commits) fate: allow testing with libavfilter disabled x86: XOP/FMA4 CPU detection support ws_snd: misc cosmetic clean-ups ws_snd: remove the 2-bit ADPCM table and just subtract 2 instead. ws_snd: use memcpy() and memset() instead of loops ws_snd: use samples pointer for loop termination instead of a separate iterator variable. ws_snd: make sure number of channels is 1 ws_snd: add some checks to prevent buffer overread or overwrite. ws_snd: decode to AV_SAMPLE_FMT_U8 instead of S16. flacdec: fix buffer size checking in get_metadata_size() rtp: Simplify ff_rtp_get_payload_type rtpenc: Add a payload type private option rtp: Correct ff_rtp_get_payload_type documentation avconv: replace all fprintf() by av_log(). avconv: change av_log verbosity from ERROR to FATAL for fatal errors. cmdutils: replace fprintf() by av_log() avtools: parse loglevel before all the other options. oggdec: add support for Xiph's CELT codec sol: return error if av_get_packet() fails. cosmetics: reindent and pretty-print ... Conflicts: avconv.c cmdutils.c libavcodec/avcodec.h libavcodec/version.h libavformat/oggparsecelt.c libavformat/utils.c libavutil/avutil.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * oggdec: add support for Xiph's CELT codecNicolas George2011-09-261-1/+2
| | | | | | | | | | | | | | This patch also introduces CODEC_ID_CELT. Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * lavf: do not set codec_tag for rawvideoMans Rullgard2011-09-251-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | If the demuxer did not set a codec_tag, there is none and inventing one makes no sense. This change stops the rawvideo "decoder" over-writing user-supplied pixfmt with one derived from the codec_tag. The pixfmt-codec_tag-pixfmt round-trip is lossy since several pixfmts map to the same codec_tag. This fixes fate-lavf-pixfmt with avfilter disabled. Signed-off-by: Mans Rullgard <mans@mansr.com>
* | lavf/utils: replace deprecated url_ferror.Nicolas George2011-09-251-4/+4
| |
* | lavf/utils: use correct format string for int64_t.Nicolas George2011-09-251-1/+1
| |
* | lavf/utils: use AV_NOWARN_DEPRECATED in compatibility code.Nicolas George2011-09-251-0/+12
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-09-241-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: rtp: factorize dynamic payload type fallback flvdec: Ignore the index if it's from a creator known to be different cmdutils: move grow_array out of #if CONFIG_AVFILTER avconv: actually set InputFile.rate_emu ratecontrol: update last_qscale_for sooner Fix unnecessary shift with 9/10bit vertical scaling prores: mark prores as intra-only in libavformat/utils.c:is_intra_only() prores: return more meaningful error values prores: improve error message wording prores: cosmetics: prettyprinting, drop useless parentheses prores: lowercase AVCodec name entry Conflicts: cmdutils.c libavcodec/proresdec_lgpl.c tests/ref/lavfi/pixfmts_scale Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * prores: mark prores as intra-only in libavformat/utils.c:is_intra_only()Diego Biurrun2011-09-231-0/+1
| |
* | Use a colon in the stream description, this matches how -map works now.Carl Eugen Hoyos2011-09-231-1/+1
| |
* | lavf/utils: only complain about aspect missmatch when the difference is ↵Michael Niedermayer2011-09-221-1/+3
| | | | | | | | | | | | "meassureable" Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavf/utils: better dts wrap correction.Michael Niedermayer2011-09-201-2/+1
| | | | | | | | | | | | Fixes Ticket488 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-09-191-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: movenc: fix NULL reference in mov_write_tkhd_tag rmdec: Reject invalid deinterleaving parameters rv34: Fix potential overreads rv34: Fix buffer size used for MC of B frames after a resolution change rv34: Avoid NULL dereference on corrupted bitstream rv10: Reject slices that does not have the same type as the first one vf_yadif: add an option to enable/disable deinterlacing based on src frame "interlaced" flag vsrc_color: set output pos values to -1 vsrc_color: add @file doxy vsrc_buffer: remove duplicated file description eval: implement not() expression eval: add sqrt function for computing the square root rmdec: use the deinterleaving mode and not the codec when creating audio packets. lavf: Fix context pointer in av_open_input_stream when avformat_open_input fails Conflicts: doc/eval.texi doc/filters.texi libavcodec/rv10.c libavfilter/vsrc_color.c libavformat/rmdec.c libavutil/avutil.h libavutil/eval.c tests/ref/fate/eval Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavf: Fix context pointer in av_open_input_stream when avformat_open_input failsDavid Goldwich2011-09-191-1/+1
| | | | | | | | | | Signed-off-by: David Goldwich <david.goldwich@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | lavf/utils: rewrite real fps calculation code.Michael Niedermayer2011-09-161-17/+27
| | | | | | | | | | | | | | The new code is free of biasing to the first timestamps Fixes fraps.fps.test.zip Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ProRes DecoderElvis Presley2011-09-151-0/+1
| | | | | | | | Signed-off-by: Elvis Presley <elvis@e.p>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-09-141-6/+5
|\| | | | | | | | | | | | | | | | | | | | | * qatar/master: lavf utils: Remove write-only variable lavf utils: Rename shadowing variable smacker: fix a few off by 1 errors Check for invalid VLC value in smacker decoder. Check and propagate errors when VLC trees cannot be built in smacker decoder. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavf utils: Remove write-only variableAlex Converse2011-09-141-2/+1
| |
| * lavf utils: Rename shadowing variableAlex Converse2011-09-141-4/+4
| |
* | Don't override duration from file header with bitrate durationJoakim Plate2011-09-141-3/+5
| | | | | | | | | | This is most noticable on matroska files which has duration as part of it's header.
* | libavformat/utils: print ts in the "invalid dts/pts combination" case.Michael Niedermayer2011-09-131-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-09-121-2/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (31 commits) audioconvert: add explanatory comments to channel_names array audioconvert: K&R whitespace cosmetics avconv: use correct index when selecting metadata to write to. avconv: fix inverted variable doc/avconv: document option types (input/output/per-stream/...) doc/avtools-common-opts: write a section about stream specifiers. doc/avconv: remove two pointless paragraphs. doc/avconv: document that global options should be specified first. doc/avconv: remove entries for nonexistent options doc/avconv: remove documentation for removed 'timestamp' option doc: cosmetics, rename fftools-common-opts to avtools-.... avconv: move streamid_map to options context. avconv: extend -vf syntax avconv: move top_field_first to options context. avconv: move inter/intra matrix to options context. avconv: remove -psnr option. avconv: remove me_threshold option. avconv: move video_rc_override_string to options context. avconv: move frame pixel format to the options context. avconv: move frame aspect ratio to the options context. ... Conflicts: avconv.c cmdutils_common_opts.h doc/avconv.texi Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | libavformat/utils: Only require first packet to be known for all audio and ↵Joakim Plate2011-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | video streams It can take a long time before subtitles or data streams show up, so we shouldn't wait for those before assuming we have all info for streams. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | av_interleave_packet_per_dts: switch noninterleaved flushing logic to max dts.Wolfram Gloger2011-09-091-3/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Prevent double free of side_data when AVFMT_FLAG_KEEP_SIDE_DATA flag is setGavin Kinsey2011-09-081-1/+4
| |
* | flvdec: Properly decoding in-band metadata packets as data frames.Joseph Wecker2011-09-071-0/+2
| |
* | libavformat/utils: only run delta_dts_min calculation code when its value is ↵Michael Niedermayer2011-09-071-16/+20
| | | | | | | | | | | | | | | | used. This should improve speed. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavformat/utils: use FFMIN() where possibleMichael Niedermayer2011-09-071-2/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavformat/utils: Treat subtitle streams as noninterleaved when 20 seconds ↵wg2011-09-071-4/+28
| | | | | | | | | | | | have passed without a packet Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Replace some commented-out debug printf() / av_log() messages with av_dlog().Diego Biurrun2011-09-011-9/+7
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Rename find_program_from_stream to av_find_program_from_stream and add it to ↵Marton Balint2011-08-271-6/+12
| | | | | | | | | | | | | | | | | | avformat.h Also extend the functionality to use the last found program to start the search after that program. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Fix memory corruption in case of memory allocation failure in ↵Michael Niedermayer2011-08-271-1/+7
| | | | | | | | | | | | | | av_probe_input_buffer() Reported-by: Tanami Ohad Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-08-241-33/+34
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: avconv: Replace goto redo on decode fail with continue. avconv: Remove dead store. libx264: add 'crf_max' private option. libx264: add 'weightp' private option. libx264: add 'rc_lookahead' private option. libx264: add 'psy_trellis' private option. libx264: add 'psy_rd' private option. libx264: add 'aq_strength' private option. libx264: add 'aq_mode' private option. libx264: add 'cqp' private option. libx264: add 'crf' private option. lavc: remove vbv_delay option lavf utils: Fix bad indentation. avconv: use av_clip_int16 for audio clipping Conflicts: libavcodec/libx264.c libavcodec/options.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavf utils: Fix bad indentation.Alex Converse2011-08-231-33/+34
| |
* | lavf: warn when a parser is needed and not found.Nicolas George2011-08-221-0/+3
| |
* | Autodetect LOAS in transport streams.Carl Eugen Hoyos2011-08-201-0/+1
| | | | | | | | Fixes ticket 365.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-08-171-0/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: Revert "avconv: use stream copy by default when possible." avconv: print stream copy information. avconv: use stream copy by default when possible. matroskaenc: vertical alignment. matroskaenc: implement query_codec() lavf: add avformat_query_codec(). lavc: add avcodec_get_type() for mapping codec_id -> type. flvenc: use int64_t to store offsets avconv: don't segfault on 0 input files. Do not write ID3v1 tags by default mpegts: log into an AVFormatContext rather than MpegTSContext. Conflicts: doc/APIchanges libavcodec/version.h libavformat/avformat.h libavformat/mp3enc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavf: add avformat_query_codec().Anton Khirnov2011-08-161-0/+14
| | | | | | | | It allows to check if a given codec can be written into a container.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-08-021-0/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: Revert "swscale: use 15-bit intermediates for 9/10-bit scaling." swscale: use 15-bit intermediates for 9/10-bit scaling. dct32: Add SSE2 ASM optimizations Correct chroma vector calculation for RealVideo 3. lavf: Add an option to discard corrupted frames mpegts: Mark wrongly-sized packets as corrupted mpegts: Move scan test to handle_packets mpegts: Mark corrupted packets mpegts: Reset continuity counter on seek mpegts: Fix for continuity counter mpegts: Silence "can't seek" warning on unseekable apichange: add an entry for AV_PKT_FLAG_CORRUPT avpacket: signal possibly corrupted packets mpeg4videodec: remove dead code that would have detected erroneous encoding aac: Remove some suspicious illegal memcpy()s from LTP. bink: Eliminate unnecessary shadow declaration. Conflicts: doc/APIchanges libavcodec/version.h libavformat/avformat.h libavformat/options.c libavformat/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>