History

vorbisenc: set AVCodecContext.bit_rate to 0

The Vorbis encoder is always VBR.

Justin Ruggles committed 14 years ago

Commit a0a5fed1 parent 890fddd1 file · +1 −0Browse files

Unified · Split

libavcodec/vorbisenc.c+1−0
@@ -1180,6 +1180,7 @@ static av_cold int vorbis_encode_init(AVCodecContext *avccontext) · 1179 unmodified lines
1180 if ((ret = create_vorbis_context(venc, avccontext)) < 0)1180 if ((ret = create_vorbis_context(venc, avccontext)) < 0)
1181 goto error;1181 goto error;
1182 1182
1183 avccontext->bit_rate = 0;
1183 if (avccontext->flags & CODEC_FLAG_QSCALE)1184 if (avccontext->flags & CODEC_FLAG_QSCALE)
1184 venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA;1185 venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA;
1185 else1186 else

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