[FFmpeg-cvslog] h264: stop testing whether the reference count changes in ff_set_ref_count ()

Anton Khirnov git at videolan.org
Tue May 17 16:04:13 CEST 2016


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Mar 21 16:30:38 2016 +0100| [56b17a33f231859cbccbd741b4763617cb4ecf03] | committer: Anton Khirnov

h264: stop testing whether the reference count changes in ff_set_ref_count()

It is no longer necessary after 741b494fa8cd28a7d096349bac183893c236e3f9

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

 libavcodec/h264.c |   11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 08b0891..f1f9c73 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1005,14 +1005,9 @@ int ff_set_ref_count(H264Context *h, H264SliceContext *sl)
         return AVERROR_INVALIDDATA;
     }
 
-    if (list_count   != sl->list_count   ||
-        ref_count[0] != sl->ref_count[0] ||
-        ref_count[1] != sl->ref_count[1]) {
-        sl->ref_count[0] = ref_count[0];
-        sl->ref_count[1] = ref_count[1];
-        sl->list_count   = list_count;
-        return 1;
-    }
+    sl->ref_count[0] = ref_count[0];
+    sl->ref_count[1] = ref_count[1];
+    sl->list_count   = list_count;
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list