[FFmpeg-cvslog] h264: do not increase recovery frame which would lead to endless moving away of the recovery point .

Michael Niedermayer git at videolan.org
Tue Sep 20 02:53:40 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Sep 20 02:37:46 2011 +0200| [4832ed4c626bc716f932df7417cc17766f4031a3] | committer: Michael Niedermayer

h264: do not increase recovery frame which would lead to endless moving away of the recovery point.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4832ed4c626bc716f932df7417cc17766f4031a3
---

 libavcodec/h264.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 4d08642..d4858d0 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);
             }



More information about the ffmpeg-cvslog mailing list