summaryrefslogtreecommitdiff
path: root/libavcodec/h261enc.c
diff options
context:
space:
mode:
authorStian Selnes <stian@pexip.com>2014-12-12 16:08:19 +0100
committerLuca Barbato <lu_zero@gentoo.org>2015-07-07 15:04:55 +0200
commitdc1de0b958836545339611e9c050a1d4fdded263 (patch)
treeec4f1d91d696c1db7addf2e633833a0f4d1fa3e6 /libavcodec/h261enc.c
parentc8b8271379b200c5c6fa89ca995f90f97f55c2c5 (diff)
h261: Set 'still image mode off' in picture header
Ref H.261 recommendation section 4.2.1.3, setting the still image flag to 1 disables still image mode. Some decoders require this in order to decode the bitstream as normal video. Fixes H.261 calls to Cisco E20. Also, reserved (aka spare) bits should be set to 1 unless specified otherwise. Bug-Id: 872 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/h261enc.c')
-rw-r--r--libavcodec/h261enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h261enc.c b/libavcodec/h261enc.c
index db81f832a7..30ba137918 100644
--- a/libavcodec/h261enc.c
+++ b/libavcodec/h261enc.c
@@ -70,8 +70,8 @@ void ff_h261_encode_picture_header(MpegEncContext *s, int picture_number)
put_bits(&s->pb, 1, format); /* 0 == QCIF, 1 == CIF */
- put_bits(&s->pb, 1, 0); /* still image mode */
- put_bits(&s->pb, 1, 0); /* reserved */
+ put_bits(&s->pb, 1, 1); /* still image mode */
+ put_bits(&s->pb, 1, 1); /* reserved */
put_bits(&s->pb, 1, 0); /* no PEI */
if (format == 0)