History

avcodec/ffv1enc: 2Pass mode is not possible with golomb coding

"Fixes" Ticket7063

Michael Niedermayer committed 2 years ago

Commit 417b1631 parent 25d605d1 file · +5 −0Browse files

Unified · Split

libavcodec/ffv1enc.c+5−0
@@ -528,6 +528,11 @@ static av_cold int encode_init(AVCodecContext *avctx) · 527 unmodified lines
528528 avctx->slices > 1)
529529 s->version = FFMAX(s->version, 2);
530530
531+ if ((avctx->flags & (AV_CODEC_FLAG_PASS1 | AV_CODEC_FLAG_PASS2)) && s->ac == AC_GOLOMB_RICE) {
532+ av_log(avctx, AV_LOG_ERROR, "2 Pass mode is not possible with golomb coding\n");
533+ return AVERROR(EINVAL);
534+ }
535+
531536 // Unspecified level & slices, we choose version 1.2+ to ensure multithreaded decodability
532537 if (avctx->slices == 0 && avctx->level < 0 && avctx->width * avctx->height > 720*576)
533538 s->version = FFMAX(s->version, 2);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t