summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* dcadec: set channel layout in a separate functionAlexandra Hájková2015-09-16
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dcadec: scan for extensions in a separate functionAlexandra Hájková2015-09-16
| | | | | | to make dca_decode_frame more readable Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* rtpdec: Forward the memory failureLuca Barbato2015-09-16
| | | | | | And avoid a memory leak. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* rtsp: warning when max_delay reachedEloi BAIL2015-09-16
| | | | | | | | | packets are queued due to packet reordering until the queue reach its maximal size or max delay is reached. This commit adds a warning trace when max delay is reached. Signed-off-by: Eloi BAIL <eloi.bail@savoirfairelinux.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: inform jitter buffer sizeEloi BAIL2015-09-16
| | | | | | | | This commit print as AV_LOG_VERBOSE the jitter buffer size. It might be the default value or the value set by application. Signed-off-by: Eloi BAIL <eloi.bail@savoirfairelinux.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: add a trace when jitter buffer is fullEloi BAIL2015-09-16
| | | | | | | | This commit adds a warning trace when jitter buffer is full. It helps to understand leading decoding issues. Signed-off-by: Eloi BAIL <eloi.bail@savoirfairelinux.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Increase the max size of the jitter buffer to 500 packetsMartin Storsjö2015-09-15
| | | | | | | | | | Since the actual max length of the jitter buffer is restricted by max_delay, this shouldn't harm the overall latency (assuming that max_delay is set properly), while allowing packet reordering with a larger number of packets (which may be required with high bitrate video). Signed-off-by: Martin Storsjö <martin@martin.st>
* jpeg2000: Factor out prec initLuca Barbato2015-09-14
| | | | Makes debugging a little simpler.
* jpeg2000: Factor out band stepsize initializationLuca Barbato2015-09-14
|
* jpeg2000: Factor out band initializationLuca Barbato2015-09-14
|
* jpeg2000: Refactor decode_packetsLuca Barbato2015-09-14
| | | | Move the packet-specific parsers in separate functions.
* jpeg2000: Templatize the frame writerLuca Barbato2015-09-14
|
* jpeg2000: Split codeblock decoding from the main tile decodingLuca Barbato2015-09-14
| | | | That loop is completely stand-alone.
* doc: Add travis badgeLuca Barbato2015-09-14
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegvideo: Drop mpegvideo.h where not neededVittorio Giovara2015-09-13
| | | | Add necessary headers in .c files.
* mpegvideo: Make sure mpegutils.h is included where neededVittorio Giovara2015-09-13
|
* mpegvideo: Move macros to more appropriate headersVittorio Giovara2015-09-13
| | | | | | | MAX_MB_BYTES -> mpegutils.h FRAME_SKIPPED -> mpegutils.h INPLACE_OFFSET -> mpegutils.h ME_MAP_SIZE -> motion_est.h
* avfilter: Support both syntaxes for the scale filterLuca Barbato2015-09-13
|
* lavr: Remove unreachable codeVittorio Giovara2015-09-13
| | | | Bug-Id: CID 1323180
* buffersrc: Improve initialization log messageVittorio Giovara2015-09-13
| | | | Add timebase and aspect ratio information.
* fate: Change global error option to private error_rate optionVittorio Giovara2015-09-13
|
* fate: Move mv0 option from global to mpv privateVittorio Giovara2015-09-13
|
* lavc: Keep idct integer optionVittorio Giovara2015-09-13
| | | | | | "int" is useful in testing because provides accurate results across different plaftforms, so remove it from the scheduled FF_API_UNUSED_MEMBERS deprecation.
* avconv_filter: Use full named optionsVittorio Giovara2015-09-13
| | | | | | | This introduces a slight timebase computation difference in zmbv-8bit fate test. This is expected since the new options are double instead of ints, and the additional precision skews the results in a non meaningful way.
* lavf: Update to the new crypto APIVittorio Giovara2015-09-13
|
* asfdec: add more checks for size left in asf packet bufferAlexandra Hájková2015-09-12
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavc: Fix compilation with --disable-everything --enable-parser=mpeg4videoHendrik Schreiber2015-09-12
|
* lavc: Sanitize header inclusion guardsVittorio Giovara2015-09-12
| | | | | | Fix typos, add missing comments, and remove stray lines. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Enable side data only packets by defaultVittorio Giovara2015-09-12
| | | | | | | | | Deprecate the now unused option, but temporarily retain the capability to disable the now default behaviour. Mention this change in the AVPacket documentation. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* travis: fix dependenciesJames Almer2015-09-12
| | | | | | | bc hasn't been needed since a982c5d74fbc7ff5bd2f2f73af61ae48e9b1bcc6 Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mmaldec: fix pkt_dts determinationwm42015-09-12
| | | | | | | | | | | | This also drops setting the frame->pts field. This is usually not set by decoders, so this would be an inconsistency that's at worst a danger to the API user. It appears the buffer->dts field is normally not set by the MMAL decoder, so don't use it. If it's ever going to be set by MMAL, we don't know whether the value will be what we want. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* 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>