summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* mov: replace AVERROR(EOF) with AVERROR_EOF.Nicolas George2011-12-21
|
* Merge remote-tracking branch 'tjoppen/mxf_fixes_20111220'Michael Niedermayer2011-12-21
|\ | | | | | | | | | | | | | | | | | | | | * tjoppen/mxf_fixes_20111220: mxfdec: Sanity-check SampleRate mxfdec: Make sure mxf->nb_index_tables > 0 in mxf_packet_timestamps() mxfdec: Remove unused variables mxfdec: Make sure x < index_table->nb_ptses mxfdec: Ignore the last entry in Avid's index table segments Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mxfdec: Sanity-check SampleRateTomas Härdin2011-12-20
| | | | | | | | This avoids a SIGFPE if SampleRate is missing or set to naughty values.
| * mxfdec: Make sure mxf->nb_index_tables > 0 in mxf_packet_timestamps()Tomas Härdin2011-12-20
| | | | | | | | | | Only the OPAtom demuxing logic is guaranteed to have index tables, meaning OP1a files that lack an index would cause SIGSEGV.
| * mxfdec: Remove unused variablesTomas Härdin2011-12-20
| |
| * mxfdec: Make sure x < index_table->nb_ptsesTomas Härdin2011-12-20
| | | | | | | | Without this the demuxer will SIGSEGV on files with IndexEntryCount < IndexDuration
| * mxfdec: Ignore the last entry in Avid's index table segmentsTomas Härdin2011-12-20
| | | | | | | | | | | | The last entry is the total size of the essence container. Previously a TemporalOffset error would be logged, even though segments like these are expected.
* | avio: remove ENOTSUP mention in doxy as its not available on all supported ↵Michael Niedermayer2011-12-21
| | | | | | | | | | | | | | | | platforms and thus cannot be used Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-12-21
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: lavc: always align height by 32 pixel raw: add 10bit YUV definitions nut: support 10bit YUV mpegvideo_enc: separate declarations and statements oma: make header compile standalone vp3: Reorder some functions to fix VP3 build with Theora disabled. build: fix standalone compilation of ADX encoder build: fix standalone compilation of ADPCM decoders build: fix standalone compilation of mpc7/mpc8 decoders 4xm: Use bytestream2 functions to prevent overreads bytestream: add a new set of bytestream functions with overread checking mpegts: Suppress invalid timebase warnings on DMB streams. mpegts: Fix typo in handling sections in the PMT. vc1dec: Use the right pointer type for the tmp pointer Conflicts: libavcodec/4xm.c libavcodec/utils.c libavcodec/vc1dec.c libavcodec/vp3.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | nut: support 10bit YUVLuca Barbato2011-12-21
| | | | | | | | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * | oma: make header compile standaloneDiego Biurrun2011-12-20
| | |
| * | mpegts: Suppress invalid timebase warnings on DMB streams.Alex Converse2011-12-20
| | | | | | | | | | | | timestamp_len and timestamp_res intialize to zero.
| * | mpegts: Fix typo in handling sections in the PMT.Alex Converse2011-12-20
| | | | | | | | | | | | | | | This was an error rebasing 4682a1dc3aa2554ad7077f5db32d0f2d598d018e for commit. The "pes" variable guaranteed to be NULL in that block.
* | | mxfdec: Make sure mxf->nb_index_tables > 0 in mxf_packet_timestamps()Tomas Härdin2011-12-21
| | | | | | | | | | | | | | | | | | | | | Only the OPAtom demuxing logic is guaranteed to have index tables, meaning OP1a files that lack an index would cause SIGSEGV. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | Replace PATCHWELCOME by relevant error codes.Nicolas George2011-12-20
| | | | | | | | | | | | | | | This supersedes commit 154c0a8. The bug was also reported by Rafaël Carré.
* | | replace ENOTSUP by AVERROR_PATCHWELCOMEMichael Niedermayer2011-12-20
| | | | | | | | | | | | | | | | | | | | | This unbreaks compilation Found by: jb Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | roq: fix excessive memory allocMichael Niedermayer2011-12-20
| | | | | | | | | | | | | | | | | | | | | Fixes Ticket802 Bug found by: Oana Stratulat Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avidec: move eof check before continue.Michael Niedermayer2011-12-20
| |/ |/| | | | | | | | | | | | | Fixes a infinite loop Fixes half of Ticket800 Bug found by Oana Stratulat Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-12-20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: h264: clear trailing bits in partially parsed NAL units vc1: Handle WVC1 interlaced stream xl: Fix overreads mpegts: rename payload_index to payload_size segment: introduce segmented chain muxer lavu: add AVERROR_BUG error value avplay: clear pkt_temp when pkt is freed. qcelpdec: K&R formatting cosmetics qcelpdec: cosmetics: drop some pointless parentheses x86: conditionally compile dnxhd encoder optimizations Revert "h264: skip start code search if the size of the nal unit is known" swscale: fix formatting and indentation of unscaled conversion routines. h264: skip start code search if the size of the nal unit is known cljr: fix buf_size sanity check cljr: Check if width and height are positive integers Conflicts: libavcodec/cljr.c libavcodec/vc1dec.c libavformat/Makefile libavformat/mpegtsenc.c libavformat/segment.c libswscale/swscale_unscaled.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegts: rename payload_index to payload_sizeLuca Barbato2011-12-19
| | | | | | | | It holds the size of the current payload.
| * segment: introduce segmented chain muxerLuca Barbato2011-12-19
| | | | | | | | It behaves similarly to image2 muxer
* | siff: simplify code by using ffio_limit()Michael Niedermayer2011-12-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | soxdec: check av_malloc return.Michael Niedermayer2011-12-19
| | | | | | | | | | | | Bug found by: durandal_1707 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | dsicin demuxer: Fix excessive malloc()Michael Niedermayer2011-12-19
| | | | | | | | | | | | | | | | use ffio_limit() Fixes Ticket 790 Bug found by: Oana Stratulat Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavf: split out ffio_limit()Michael Niedermayer2011-12-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-12-19
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: APIchanges: fill in revision for AVFrame.age deprecation avcodec: deprecate AVFrame.age 4xm: remove unneeded check for remaining unused data. lavf: force threads to 1 in avformat_find_stream_info() swscale: fix overflows in vertical scaling at top/bottom edges. lavf: add OpenMG audio muxer. omadec: split data that will be used in the muxer to a separate file. lavf: rename oma.c -> omadec.c tmv decoder: set correct pix_fmt Conflicts: Changelog doc/APIchanges libavcodec/mpegvideo.c libavcodec/version.h libavformat/oma.c libavformat/version.h libswscale/swscale.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavf: force threads to 1 in avformat_find_stream_info()Anton Khirnov2011-12-18
| | | | | | | | | | Fixes avformat_find_stream_info() on streams with number of frames < thread count.
| * lavf: add OpenMG audio muxer.Michael Karcher2011-12-18
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * omadec: split data that will be used in the muxer to a separate file.Anton Khirnov2011-12-18
| |
| * lavf: rename oma.c -> omadec.cAnton Khirnov2011-12-18
| |
* | rl2demux: Fix FPEMichael Niedermayer2011-12-18
| | | | | | | | | | | | | | Fixes Ticket788 Bug found by Oana Stratulat Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'tjoppen/proper_mxf_track_linking'Michael Niedermayer2011-12-18
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tjoppen/proper_mxf_track_linking: mxfdec: Don't parse slices or DeltaEntryArrays mxfdec: Remove dead/useless code mxfdec: Hybrid demuxing/seeking solution mxfdec: Add mxf_edit_unit_absolute_offset() mxfdec: Replace zero IndexDurations with st->duration mxfdec: Add "fake" index to MXFIndexTable to assist seeking mxfdec: Add MXFIndexTables mxfdec: Move mxf_read_packet*() near the bottom of the file Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | mxfdec: Don't parse slices or DeltaEntryArraysTomas Härdin2011-12-16
| | | | | | | | | | | | The most recent demuxing/seeking code doesn't need them
| * | mxfdec: Remove dead/useless codeTomas Härdin2011-12-16
| | |
| * | mxfdec: Hybrid demuxing/seeking solutionTomas Härdin2011-12-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This uses the old demuxing code for OP1a and separate demuxing code for OPAtom. Timestamp output is added to the old demuxing code. The seeking code is made to seek to the start of the desired EditUnit only, from which the normal demuxing code takes over (if OP1a). This means we don't use delta entries or slices, only StreamOffsets. OPAtom seeking basically works like before. This also makes D-10 seeking behave the same way as OP1a and OPAtom. In other words, we allow seeking before the start or past the end for D-10 too. This fixes ticket #746.
| * | mxfdec: Add mxf_edit_unit_absolute_offset()Tomas Härdin2011-12-16
| | | | | | | | | | | | | | | This maps an EditUnit in an index table to the corresponding absolute offset in the file.
| * | mxfdec: Replace zero IndexDurations with st->durationTomas Härdin2011-12-16
| | | | | | | | | | | | The mxf_d10 muxer outputs files with zero IndexDurations..
| * | mxfdec: Add "fake" index to MXFIndexTable to assist seekingTomas Härdin2011-12-16
| | | | | | | | | | | | | | | | | | This changes mxf_compute_ptses() to be used for MXFIndexTable, and also adds code for computing the fake index to it. This also temporarily disables PTS computation. A future patch will restore it.
| * | mxfdec: Add MXFIndexTablesTomas Härdin2011-12-16
| | | | | | | | | | | | | | | This structs collects MXFIndexTableSegments belonging to one IndexSID and some other bits of useful information.
| * | mxfdec: Move mxf_read_packet*() near the bottom of the fileTomas Härdin2011-12-16
| | | | | | | | | | | | This simplifies future commits.
* | | siff: Fix excessive memory allocation.Michael Niedermayer2011-12-18
| | | | | | | | | | | | | | | | | | Bug found by: Oana Stratulat Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | mov: detect EOF in mov_read_dref()Michael Niedermayer2011-12-18
| | | | | | | | | | | | | | | | | | | | | This fixes a (near) infinite loop and Ticket783 Bug found by: cosminamironesei Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | sbgdec: change -1 into AVERROR(EINVAL).Nicolas George2011-12-18
| | | | | | | | | | | | | | | This is not as accurate as ELOOP, but there is an explicit error message just before anyway.
* | | sbgdec: Replace ELOOP by -1 to fix compilation on win32.Michael Niedermayer2011-12-18
| | | | | | | | | | | | | | | | | | | | | | | | This should be replaced by a more appropriate error code of course but we should not leave compilation broken until that is decided. Found-by: jb Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | sbgdec: replace EOVERFLOW with ENOMEM.Nicolas George2011-12-17
| | | | | | | | | | | | | | | This should fix track issue #781, regarding compilation with i686-w64-mingw32-gcc.
* | | avienc: Fix rawvideo 32bitMichael Niedermayer2011-12-17
| | | | | | | | | | | | | | | | | | | | | Bug found by: Rik Maes <rik.maes54@gmail.com> Change based on suggestion by Rik Maes Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-12-17
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: get_bits: remove A32 variant avconv: support stream specifiers in -metadata and -map_metadata wavpack: Fix 32-bit clipping wavpack: Clip samples after shifting h264: don't drop B-frames after next keyframe on POC reset. get_bits: remove useless pointer casts configure: refactor lists of tests and components into variables rv40: NEON optimised weak loop filter mpegts: replace some magic numbers with the existing define swscale: add unscaled packed 16 bit per component endianess conversion Conflicts: libavcodec/get_bits.h libavcodec/h264.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | mpegts: replace some magic numbers with the existing defineVladimir Pantelic2011-12-16
| | | | | | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | | mtvdemuxer: fix segfault caused by truncated packets.Michael Niedermayer2011-12-16
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | lavf: print an error if a packet has been truncated due to filesizeMichael Niedermayer2011-12-16
| | | | | | | | | | | | | | | | | | in av_get_packet() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>