• Zhao Zhili's avatar
    avcodec/libx264: fix extradata when config annexb=0 · 52297784
    Zhao Zhili authored
    AVCodecContext extradata should be an AVCDecoderConfigurationRecord
    when bitstream format is avcc. Simply concatenating the NALUs output
    by x264_encoder_headers does not form a standard
    AVCDecoderConfigurationRecord. The following cmd generates broken
    file before the patch:
    
    ffmpeg -i foo.mp4 -c:v libx264 -x264-params annexb=0 bar.mp4
    Signed-off-by: 's avatarZhao Zhili <zhilizhao@tencent.com>
    52297784
libx264.c 63.6 KB