]> git.sesse.net Git - ffmpeg/commitdiff
h264: stop testing whether the reference count changes in ff_set_ref_count()
authorAnton Khirnov <anton@khirnov.net>
Mon, 21 Mar 2016 15:30:38 +0000 (16:30 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sun, 24 Apr 2016 08:06:23 +0000 (10:06 +0200)
It is no longer necessary after 741b494fa8cd28a7d096349bac183893c236e3f9

libavcodec/h264.c

index 08b089187dfce21c5f8d1236f7f4ab3c343f47b8..f1f9c7304bb582705c441b4f40698e2fa91706bc 100644 (file)
@@ -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;
 }