avcodec/mpegvideo_enc: Use av_assert1() instead of assert() in merge_context_after_en...
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 1 Feb 2019 16:08:35 +0000 (17:08 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 6 Feb 2019 23:29:01 +0000 (00:29 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpegvideo_enc.c

index 9fdab31..c5480e1 100644 (file)
@@ -3592,8 +3592,8 @@ static void merge_context_after_encode(MpegEncContext *dst, MpegEncContext *src)
         }
     }
 
-    assert(put_bits_count(&src->pb) % 8 ==0);
-    assert(put_bits_count(&dst->pb) % 8 ==0);
+    av_assert1(put_bits_count(&src->pb) % 8 ==0);
+    av_assert1(put_bits_count(&dst->pb) % 8 ==0);
     avpriv_copy_bits(&dst->pb, src->pb.buf, put_bits_count(&src->pb));
     flush_put_bits(&dst->pb);
 }