summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-20 02:37:46 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-20 02:52:17 +0200
commit4832ed4c626bc716f932df7417cc17766f4031a3 (patch)
tree24fd6b98d92b2c0d1936512bd2db463c358d2ba9 /libavcodec
parenta8a9844a3c3dab30ea479f5004b51eed5f3eac6c (diff)
h264: do not increase recovery frame which would lead to endless moving away of the recovery point.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 4d08642779..d4858d02ef 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3715,7 +3715,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size){
if((err = decode_slice_header(hx, h)))
break;
- if (h->sei_recovery_frame_cnt >= 0) {
+ if (h->sei_recovery_frame_cnt >= 0 && h->recovery_frame < 0) {
h->recovery_frame = (h->frame_num + h->sei_recovery_frame_cnt) %
(1 << h->sps.log2_max_frame_num);
}