summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* lavc: allow asynchronous decoders to return correct pkt_dts valueswm42015-09-12
| | | | | | | | | | | | | | | The generic code in utils.c sets the AVFrame.pkt_dts field from the packet it was supposedly decoded. This does not have to be true for a fully asynchronous decoder like mmaldec. It could be overwritten with an incorrect value. Even if the decoder doesn't determine the DTS (but sets it to AV_NOPTS_VALUE), it's impossible to determine a correct value in utils.c. Decoders can now be marked with FF_CODEC_CAP_SETS_PKT_DTS, in which case utils.c won't overwrite the field. The decoders are expected to set this field (even if they only set it to AV_NOPTS_VALUE). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mmaldec: disable timestamp interpolationwm42015-09-12
| | | | | | | | | This MMAL feature fills in missing timestamps from the framerate set on the input port. This is generally unwanted, since libavcodec decoders merely pass through timestamps without ever "fixing" them. The framerate is also unknown, and even the timebase doesn't have to be set. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mmaldec: fix problems with flush logicwm42015-09-12
| | | | | | | | | | | | | | Don't try to do a blocking wait for MMAL output if we haven't even sent a single real packet, but only flush packets. Obviously we can't expect to get anything back. Additionally, don't send a flush packet to MMAL in the same case. It appears the MMAL decoder will sometimes hang in mmal_vc_port_disable() (called from ffmmal_close_decoder()), waiting for a reply from the GPU which never arrives. Either MMAL disallows sending flush packets without preceding real data, or it's a MMAL bug. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mmaldec: hack against buffering problems on broken inputwm42015-09-12
| | | | | | | | | | | | | | | | | | I can't come up with a nice way to handle this. It's hard to keep the lock-stepped input/output in this case. You can't predict whether the MMAL decoder will output a picture (because it's asynchronous), so you have to assume in general that any packet could produce 0 or 1 frames. You can't continue to write input packets to the decoder, because then you might get too many output frames, which you can't get rid of because the lavc decoding API does not allow the decoder to return an output frame without consuming an input frame (except when flushing). The ideal fix is a M:N decoding API (preferably asynchronous), which would make this code potentially much cleaner. For now, this hack will do. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Split codeblock decoding from the main tile decodingLuca Barbato2015-09-11
| | | | That loop is completely stand-alone.
* jpeg2000: Do not warn about known and skippable markersLuca Barbato2015-09-11
| | | | Matches the openjpeg behaviour.
* mmvideo: Make sure the rle does not write over the frame boundariesLuca Barbato2015-09-11
| | | | | Bug-Id: 887 CC: libav-stable@libav.org
* ogg: Do not try to use the parser if it is not presentLuca Barbato2015-09-10
| | | | | Bug-Id: 886 CC: libav-stable@libav.org
* pixdesc: Document the component orderLuca Barbato2015-09-10
|
* pixdesc: Add missing alpha flag for yuva420p9beHendrik Leppkes2015-09-10
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* pixdesc: Consistently order componentsHendrik Leppkes2015-09-10
| | | | | | | | Ensure that the components are ordered consistently, ie. always RGB(A) and YUV(A). This allows to identify a specific plane on a given pixel format without hard-coding knowledge of the plane order. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* codec_desc: Add missing DXV entryVittorio Giovara2015-09-09
|
* lavu: Drop the {minus,plus}1 suffix from AVComponentDescriptor fieldsVittorio Giovara2015-09-07
| | | | | | The new fields can be accessed directly and are more intelligible. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavu: Remove bit packing from AVComponentDescriptorVittorio Giovara2015-09-07
| | | | | | | | | There is no practical benefit in having this structure elements bit packed given the size of the structure and its usage. Change types from uint16_t (packed) to plain int in order to simplify modifying the structure and accessing its fields. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavu: extend size of the AVPixFmtDescriptor.flags fieldwm42015-09-07
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* asfdec: alloc enough space for storing name in asf_read_metadata_objAlexandra Hájková2015-09-06
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mov: Allow more than one keyframe per trunMartin Storsjö2015-09-06
| | | | | | | | | | | | | | | | | The previous restriction was partially designed to fix certain (broken) samples from bug 215. There should be no restriction on the number of keyframes per fragment or trun. The spec suggests that all frames lacking MOV_FRAG_SAMPLE_FLAG_IS_NON_SYNC are key frames, but we require the flag MOV_FRAG_SAMPLE_FLAG_DEPENDS_YES to be unset as well. This works for (possibly broken) media that never sets the NON_SYNC flag and should also be correct for any spec-compliant file. For files that never set either of the flags, all samples are marked as keyframes. Signed-off-by: Martin Storsjö <martin@martin.st>
* dxtory: Unify and rework the decoding routinesLuca Barbato2015-09-06
| | | | | | | Do not make many assumption on the dimension of the slices and just try to decode additional lines if there is enough data left. Decodes all the samples kindly provided by ultramage.
* checkasm: add unit tests for v210encHenrik Gramner2015-09-06
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* riff: Add AVj2 fourcc for Avid jpeg2000Vittorio Giovara2015-09-04
|
* dxtory: Factorize the buffer loadingLuca Barbato2015-09-04
| | | | And the checks nearby it.
* dxtory: Factorize slice size checksLuca Barbato2015-09-04
| | | | They are always the same.
* fraps: increase vlc nb_bitsMichael Niedermayer2015-09-03
| | | | | Sample-Id: fraps_bug_huff.avi Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* huffman: allow specifying nb_bits to ff_huff_build_tree()Michael Niedermayer2015-09-03
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* huffman: increase bits constantMichael Niedermayer2015-09-03
| | | | | | Bug-ID: ffmpeg ticket 2593 Signed-off-by: Anton Khirnov <anton@khirnov.net>
* huffman: use a named identifer for the bits constantMichael Niedermayer2015-09-03
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mux: Make sure that the data is actually writtenSean McGovern2015-09-03
| | | | | | | | | | And forward the error if it is not. Bug-Id: 881 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* file: properly forward errors from file_read() and file_write()Sean McGovern2015-09-03
| | | | | | | | Bug-Id: 881 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegvideo: Drop a stray error messageLuca Barbato2015-09-03
| | | | The condition is not a failure.
* DXV decoderVittorio Giovara2015-09-02
| | | | Support all DXDI and DXD3 normal quality videos.
* lavc: Add a lzf decompressorLuca Barbato2015-09-02
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* build: Skip libvpx.h if libvpx is not enabledLuca Barbato2015-08-31
|
* tools: Drop a stale headerLuca Barbato2015-08-31
|
* dnxhddata: Double frame_size for cid 1260Michael Niedermayer2015-08-31
| | | | | | | | Despite '417792' being reported in the binary decoder, the buffer at encoding time needs to be bigger to avoid running out of space due to interlace handling. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* des: Add missing includeVittorio Giovara2015-08-31
|
* ismindex: Use the correct abs() versionVittorio Giovara2015-08-31
|
* lavr: Remove unused labelVittorio Giovara2015-08-31
|
* libfdk-aacdec: Remove unused variableVittorio Giovara2015-08-31
|
* build: Add support for travis CIFederico Tomassetti2015-08-30
| | | | | It is useful to support a future staging branch and to have an automated consistency check on github pull requests.
* Bump major versions of all librariesVittorio Giovara2015-08-28
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Postpone API-incompatible changes until the next bumpVittorio Giovara2015-08-28
|
* lavu: Drop deprecated private lls functionsVittorio Giovara2015-08-28
| | | | Deprecated in 02/2013.
* lavu: Drop deprecated context size variablesVittorio Giovara2015-08-28
| | | | Deprecated in 10/2012.
* lavu: Drop deprecated duplicated AVFrame/AVCodecContext parametersVittorio Giovara2015-08-28
| | | | Deprecated in 10/2012.
* lavu: Drop deprecated AV_CPU_FLAG_MMX2 symbolVittorio Giovara2015-08-28
| | | | Deprecated in 11/2012.
* lavu: Drop deprecated audioconvert.h headerVittorio Giovara2015-08-28
| | | | Deprecated in 11/2012.
* lavu: Drop deprecated av_reverse functionVittorio Giovara2015-08-28
| | | | Deprecated in 10/2012.
* lavu: Drop deprecated external access to AVPixFmtDescriptor tableVittorio Giovara2015-08-28
| | | | Deprecated in 10/2012.
* lavu: Drop deprecated old_pix_fmt.h and related codeVittorio Giovara2015-08-28
| | | | Deprecated in 10/2012.
* lavc: Drop deprecated deinterlace moduleVittorio Giovara2015-08-28
| | | | Deprecated in 03/2013.