git.videolan.org Git - ffmpeg.git/rss log

FFmpeg git repo

http://git.videolan.org/?p=ffmpeg.git;a=summary

Les articles publiés sur le site

  • avcodec/mpegvideo_dec : Move memcpy'ing ctx to mpeg4videodec.c

    29 avril, par Andreas Rheinhardt
    avcodec/mpegvideo_dec: Move memcpy'ing ctx to mpeg4videodec.c
    
    When the destination MpegEncContext in ff_mpeg_update_thread_context()
    is not initialized, the source MpegEncContext is simply copied
    over it before (potentially) calling ff_mpv_common_init().
    This leads to data races when this code is executed which is why
    it should be replaced with only copying the necessary fields
    (this is for future commits).
    
    Given that the RV30 and RV40 decoders always call said function
    with an already initialized MpegEncContext (they use context_reinit
    in case of frame size changes), they don't need this ugly
    initialization (and are therefore race-free). This means that
    this code can be moved to the only decoder that actually needs it:
    MPEG-4. This commit does so.
    
    Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
    
    • [DH] libavcodec/mpeg4videodec.c
    • [DH] libavcodec/mpegvideo_dec.c
  • avformat/dump : Stream start offsets : change precision and label

    29 avril, par softworkz
    avformat/dump: Stream start offsets: change precision and label
    
    - Change precision to 6 digits to align with other printed times
    - Change label to just "Start"
    - Add 's' unit to format 'start' value for consistency
    
    Signed-off-by: softworkz <softworkz@hotmail.com>
    
    • [DH] libavformat/dump.c
  • avcodec/cbs_apv : don't return an error when reading empty buffers

    29 avril, par James Almer
    avcodec/cbs_apv: don't return an error when reading empty buffers
    
    The output will be a fragment with zero units, which is a lot more user friendly
    than making them think something went wrong, as it already happens with cbs_av1.
    
    Signed-off-by: James Almer <jamrial@gmail.com>
    
    • [DH] libavcodec/cbs_apv.c
  • avcodec/apv_parser : use an AVBufferRef to avoid data copying

    29 avril, par James Almer
    avcodec/apv_parser: use an AVBufferRef to avoid data copying
    
    Signed-off-by: James Almer <jamrial@gmail.com>
    
    • [DH] libavcodec/apv_parser.c
  • avcodec/cbs : add an AVBufferRef input argument to ff_cbs_read()

    29 avril, par James Almer
    avcodec/cbs: add an AVBufferRef input argument to ff_cbs_read()
    
    To allow taking a reference from an existing buffer outside of AVPackets.
    
    Signed-off-by: James Almer <jamrial@gmail.com>
    
    • [DH] libavcodec/apv_parser.c
    • [DH] libavcodec/av1_parser.c
    • [DH] libavcodec/cbs.c
    • [DH] libavcodec/cbs.h
    • [DH] libavcodec/vulkan_encode_h264.c
    • [DH] libavcodec/vulkan_encode_h265.c
    • [DH] libavcodec/vvc_parser.c