diff options
author | Stian Selnes <stian@pexip.com> | 2014-12-02 18:55:13 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-07-07 15:11:15 +0200 |
commit | 02b7c630875c0bc63cee5ec597aa33baf9bf4e20 (patch) | |
tree | 0c20457b8386c89832e9ebe0cd4d2c5005385b6b /libavcodec/h261enc.c | |
parent | dc1de0b958836545339611e9c050a1d4fdded263 (diff) | |
download | ffmpeg-02b7c630875c0bc63cee5ec597aa33baf9bf4e20.tar.gz |
h261: Signal freeze picture release for intra frames
Freeze picture release should be set to 1 when we're responding to a
fast update request. For simplicity we set it for all intra frames,
including those that starts a GOP.
Fixes issue where Tandberg MXP1700 does not recover from packet loss
state since it's waiting for the freeze picture relase indication.
Bug-Id: 873
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h261enc.c b/libavcodec/h261enc.c index 30ba137918..94e8cec2a2 100644 --- a/libavcodec/h261enc.c +++ b/libavcodec/h261enc.c @@ -64,7 +64,7 @@ void ff_h261_encode_picture_header(MpegEncContext *s, int picture_number) put_bits(&s->pb, 1, 0); /* split screen off */ put_bits(&s->pb, 1, 0); /* camera off */ - put_bits(&s->pb, 1, 0); /* freeze picture release off */ + put_bits(&s->pb, 1, s->pict_type == AV_PICTURE_TYPE_I); /* freeze picture release on/off */ format = ff_h261_get_picture_format(s->width, s->height); |