summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-12-17 12:18:03 +0200
committerMartin Storsjö <martin@martin.st>2014-12-18 12:00:01 +0200
commit91bfac759dfd536e439ad3e35964705012c6a5a7 (patch)
tree546483b4c597c36cfe8453ed646451229e6a7a3b /libavcodec
parentdf07c07b3de0a5e8890078944de1eb5cb8372ef8 (diff)
downloadffmpeg-streaming-91bfac759dfd536e439ad3e35964705012c6a5a7.zip
ffmpeg-streaming-91bfac759dfd536e439ad3e35964705012c6a5a7.tar.gz
h261enc: Disallow sliced encoding
This avoids trying to do sliced encoding, even if a slice/packet size is requested (via the -ps option or the rtp_payload_size field), since the encoder currently doesn't support it (or at least our decoder can't decode it, even if the h261_encode_gob_header function is hooked up to be called from the slicing part in mpegvideo_enc.c). Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo_enc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 8775eac..8abbcf5 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -590,6 +590,7 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx)
s->out_format = FMT_H261;
avctx->delay = 0;
s->low_delay = 1;
+ s->rtp_mode = 0; /* Sliced encoding not supported */
break;
case AV_CODEC_ID_H263:
if (!CONFIG_H263_ENCODER)
OpenPOWER on IntegriCloud