Commit 09f9ef85 authored by Derek Buitenhuis's avatar Derek Buitenhuis

Merge commit 'f6c94457'

* commit 'f6c94457':
  mpegvideo_enc: enable rtp_mode when multiple slices are used
Merged-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parents 819a99ef f6c94457
......@@ -674,12 +674,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
return -1;
}
if (s->avctx->slices > 1 || s->avctx->thread_count > 1)
s->rtp_mode = 1;
if (s->avctx->thread_count > 1 && s->codec_id == AV_CODEC_ID_H263P)
s->h263_slice_structured = 1;
if (!avctx->time_base.den || !avctx->time_base.num) {
av_log(avctx, AV_LOG_ERROR, "framerate not set\n");
return -1;
......@@ -920,6 +914,13 @@ FF_ENABLE_DEPRECATION_WARNINGS
if ((CONFIG_H263P_ENCODER || CONFIG_RV20_ENCODER) && s->modified_quant)
s->chroma_qscale_table = ff_h263_chroma_qscale_table;
if (s->slice_context_count > 1) {
s->rtp_mode = 1;
if (avctx->codec_id == AV_CODEC_ID_H263 || avctx->codec_id == AV_CODEC_ID_H263P)
s->h263_slice_structured = 1;
}
s->quant_precision = 5;
ff_set_cmp(&s->mecc, s->mecc.ildct_cmp, s->avctx->ildct_cmp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment