• Anton Khirnov's avatar
    lavf: eliminate ff_get_audio_frame_size() · d92550d1
    Anton Khirnov authored
    It is basically a wrapper around av_get_audio_frame_duration(), with a
    fallback to AVCodecContext.frame_size. However, that field is set only
    when the stream codec context is actually used for encoding or decoding,
    which is discouraged.
    
    For muxing, it is generally the responsibility of the caller to set the
    packet duration.
    For demuxing, if the duration is not stored at the container level, it
    should be set by the parser.
    
    Therefore, removing the frame_size fallback should not break any
    important case.
    (cherry picked from commit 30e50c50)
    
    Conflicts:
    
    	libavformat/utils.c
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    d92550d1
utils.c 146 KB