From 02b7c630875c0bc63cee5ec597aa33baf9bf4e20 Mon Sep 17 00:00:00 2001 From: Stian Selnes Date: Tue, 2 Dec 2014 18:55:13 +0100 Subject: 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 --- libavcodec/h261enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/h261enc.c') 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); -- cgit v1.2.3