[FFmpeg-cvslog] h264_refs: assert that the references are not deallocated

Michael Niedermayer git at videolan.org
Sat Mar 30 20:42:55 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Mar 30 18:39:09 2013 +0100| [3f2ce24f590857ea2e4db0049ed971e00a8cdac5] | committer: Michael Niedermayer

h264_refs: assert that the references are not deallocated

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

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

 libavcodec/h264_refs.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c
index d83758d..9b16d1d 100644
--- a/libavcodec/h264_refs.c
+++ b/libavcodec/h264_refs.c
@@ -317,6 +317,7 @@ int ff_h264_decode_ref_pic_list_reordering(H264Context *h)
                 else
                     return -1;
             }
+            av_assert0(av_buffer_get_ref_count(h->ref_list[list][index].f.buf[0]) > 0);
         }
     }
 



More information about the ffmpeg-cvslog mailing list