Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 733 Bytes

56.md

File metadata and controls

21 lines (14 loc) · 733 Bytes

FFV1-SLICE-JUNK

Name

No junk at the end of the slice.

Description

In case of corruption at the end of the frame, junk in slice prevents decoding of slices after the junk.

Reproducibility

Get FFmpeg source code, configure it, then:

mv libavcodec/ffv1enc_template.c ffv1enc_template.c
sed -e 's/put_symbol_inline(c, p->state\[context], diff, 1, NULL, NULL);/for (int i=0; i<1000; i++) put_symbol_inline(c, p->state\[context], diff, 1, NULL, NULL);/g' ffv1enc_template.c > libavcodec/ffv1enc_template.c
make
mv ffv1enc_template.c libavcodec/ffv1enc_template.c
./ffmpeg -f lavfi -i "color=c=black:size=2x2" -vframes 1 -pix_fmt gray8 -write_crc32 0 -c:v ffv1 -level 3 -slices 1 -coder 1 FFV1-SLICE-JUNK_v3.mkv