X Tutup
The Wayback Machine - https://web.archive.org/web/20200915164349/https://github.com/FFmpeg/FFmpeg/commits/master
Skip to content
Permalink
master

Commits on Sep 15, 2020

  1. avcodec/decode: use a packet list to store packet properties

    Keeping only the latest packet fed to the decoder works only for decoders that
    return a frame immediately after every consumed packet. Decoders that consume
    several packets before they return a frame will fill said frame with properties
    taken from the last consumed packet instead of the earliest.
    
    Signed-off-by: James Almer <jamrial@gmail.com>
    jamrial committed Sep 15, 2020
  2. avcodec/packet: move AVPacketList definition and function helpers ove…

    …r from libavformat
    
    And replace the flags parameter with a function callback that can be used to
    copy the contents of the packet (e.g, av_packet_ref and av_packet_copy_props).
    
    Signed-off-by: James Almer <jamrial@gmail.com>
    jamrial committed Sep 15, 2020

Commits on Sep 14, 2020

  1. avfilter/avf_concat: check for possible integer overflow

    Also check that segment delta pts is always bigger than input pts.
    
    There is nothing much currently that can be done to recover from
    this situation so just return AVERROR_INVALIDDATA error code.
    richardpl committed Sep 14, 2020
  2. avfilter/af_amix: do not leave unset PTS for frames after first strea…

    …m is over
    
    First stream is used only to get number of samples to put into each output frame.
    richardpl committed Sep 14, 2020
  3. avcodec/cfhdenc: Fix leaks on allocation errors

    The CineForm HD encoder attempts to allocate several buffers in its init
    function; yet if only some of these allocations succeed, the
    successfully allocated buffers leak. This is fixed by setting the
    FF_CODEC_CAP_INIT_CLEANUP flag.
    
    Reviewed-by: Paul B Mahol <onemda@gmail.com>
    Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
    mkver committed Sep 14, 2020
  4. avcodec/snowdec: Use ff_snow_common_init() directly

    Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
    mkver committed Sep 14, 2020
  5. avfilter/vf_premultiply: add missing AV_PIX_FMT_YUVA444P12

    query_formats says its supported, but is missing from switch statement leading to segfault
    markreidvfx authored and richardpl committed Sep 14, 2020
  6. avformat: add Argonaut Games BRP demuxer

    Used in FMVs for FX Fighter and Croc. Supports BVID and BASF streams,
    requests samples for anything else.
    
    Due to the way BASF streams are contained in the file, only one is
    supported. I have yet to see a BRP file with multiple.
    
    Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
    vs49688 committed Sep 14, 2020
  7. avformat/argo_asf: add ASF_MIN_BUFFER_SIZE #define

    For future use by the argo_brp demuxer
    
    Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
    vs49688 committed Sep 14, 2020
  8. avformat/argo_asf: split functionality into a header

    For future use by the argo_brp demuxer.
    
    Adds:
      - void ff_argo_asf_parse_file_header(ArgoASFFileHeader *hdr, const uint8_t *buf);
      - int  ff_argo_asf_validate_file_header(AVFormatContext *s, const ArgoASFFileHeader *hdr);
      - void ff_argo_asf_parse_chunk_header(ArgoASFChunkHeader *hdr, const uint8_t *buf);
      - int  ff_argo_asf_fill_stream(AVStream *st, const ArgoASFChunkHeader *ckhdr);
    
    Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
    vs49688 committed Sep 14, 2020
  9. avformat/argo_asf: bail if invalid tag

    Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
    vs49688 committed Sep 14, 2020

Commits on Sep 13, 2020

  1. avdevice/decklink_dec: add support for querying RP188 High Frame Rate…

    … timecode
    
    Signed-off-by: Marton Balint <cus@passwd.hu>
    cus committed Sep 13, 2020
  2. avdevice/decklink_dec: add support for rgb/yuv pixel format autodetec…

    …tion
    
    Signed-off-by: Marton Balint <cus@passwd.hu>
    cus committed Sep 13, 2020
  3. avdevice/decklink_dec: use decklink_ctx->raw_format as bmdPixelFormat

    Signed-off-by: Marton Balint <cus@passwd.hu>
    cus committed Sep 13, 2020
  4. avdevice/decklink_common.h: remove unsupported decklink version ifdef

    Signed-off-by: Marton Balint <cus@passwd.hu>
    cus committed Sep 13, 2020
  5. avformat: use av_timecode_make_smpte_tc_string2

    WSD format has no frames stored for playback time.
    
    Signed-off-by: Marton Balint <cus@passwd.hu>
    cus committed Sep 13, 2020
  6. avfilter/vf_showinfo: use av_timecode_make_smpte_tc_string2

    Signed-off-by: Marton Balint <cus@passwd.hu>
    cus committed Sep 13, 2020
  7. avcodec: use av_timecode_make_smpte_tc_string2 in hevc and h264 decoder

    Signed-off-by: Marton Balint <cus@passwd.hu>
    cus committed Sep 13, 2020
  8. fftools/ffprobe: use av_timecode_make_smpte_tc_string2

    Signed-off-by: Marton Balint <cus@passwd.hu>
    cus committed Sep 13, 2020
  9. avutil/timecode: add av_timecode_make_smpte_tc_string2

    Signed-off-by: Marton Balint <cus@passwd.hu>
    cus committed Sep 13, 2020
  10. avutil/timecode: do not trash bits on invalid av_timecode_get_smpte a…

    …rguments
    
    The function has no way to return error, so let's clip or calculate modulo.
    
    Signed-off-by: Marton Balint <cus@passwd.hu>
    cus committed Sep 13, 2020
  11. avutil/timecode: cosmetics on av_timecode_get_smpte

    Signed-off-by: Marton Balint <cus@passwd.hu>
    cus committed Sep 13, 2020
  12. avutil/timecode: fix av_timecode_get_smpte_from_framenum with 50/60 fps

    SMPTE 12M timecode can only count frames up to 39, because the tens-of-frames
    value is stored in 2 bit. In order to resolve this 50/60 fps SMPTE timecode is
    using the field bit (which is the same bit as the phase correction bit) to
    signal the least significant bit of a 50/60 fps timecode. See SMPTE ST
    12-1:2014 section 12.1.
    
    Therefore we slightly change the format of the return value of
    av_timecode_get_smpte_from_framenum and AV_FRAME_DATA_S12M_TIMECODE and start
    using the previously unused Phase Correction bit as Field bit. (As the SMPTE
    standard suggests)
    
    We add 50/60 fps support to av_timecode_get_smpte_from_framenum by calling the
    recently added av_timecode_get_smpte function in it which already handles this
    properly.
    
    This change affects the decklink indev and the DV and MXF muxers. MXF has no
    fate test for 50/60fps content, DV does, therefore the changes.
    
    MediaInfo (a recent version) confirms that half-frame timecode must be inserted
    to DV. MXFInspect confirms valid timecode insertion to the System Item of MXF
    files. For MXF, also see EBU R122.
    
    Note that for DV the field flag is not used because in the HDV specs (SMPTE
    370M) it is still defined as biphase mark polarity correction flag. So it
    should not matter that the DV muxer overrides the field bit.
    
    Signed-off-by: Marton Balint <cus@passwd.hu>
    cus committed Sep 13, 2020
  13. avcodec/cdgraphics: fix decoded output when seeking to start of file

    Also in cdg demuxer do not skip packets data, and remove
    private context which is not really needed.
    richardpl committed Sep 13, 2020
  14. avformat/cdg: Fix integer overflow in duration computation

    Fixes: signed integer overflow: 8398407 * 300 cannot be represented in type 'int'
    Fixes: 23914/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-4702539290509312
    
    Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
    Michael Niedermayer
    Michael Niedermayer committed Sep 13, 2020
  15. tools:target_dem_fuzzer: Split into a fuzzer fuzzing at the protocol …

    …level and one fuzzing a fixed demuxer input
    
    This should improve coverage and should improve the efficiency of seed files
    
    Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
    Michael Niedermayer
    Michael Niedermayer committed Sep 13, 2020
Older
You can’t perform that action at this time.
X Tutup