C2SoftAvcDec: keep threads active for entire sequence

Bug: 289097296
Test: atest android.mediav2.cts
      atest android.mediapc.cts
      atest android.media.decoder.cts
      atest android.media.encoder.cts
      atest android.media.codec.cts
      atest android.video.cts
      atest android.videocodec.cts
      atest VtsHalMediaC2V1_0TargetAudioDecTest
      atest VtsHalMediaC2V1_0TargetAudioEncTest
      atest VtsHalMediaC2V1_0TargetVideoDecTest
      atest VtsHalMediaC2V1_0TargetVideoEncTest
      atest VtsHalMediaC2V1_0TargetComponentTest
      atest VtsHalMediaC2V1_0TargetMasterTest

Change-Id: I786716ce841812bd9d5d524a2ab64d00d4ad522e
diff --git a/media/codec2/components/avc/C2SoftAvcDec.cpp b/media/codec2/components/avc/C2SoftAvcDec.cpp
index 96a4c4a..3385b95 100644
--- a/media/codec2/components/avc/C2SoftAvcDec.cpp
+++ b/media/codec2/components/avc/C2SoftAvcDec.cpp
@@ -416,6 +416,7 @@
     ivdext_create_op_t s_create_op = {};
 
     s_create_ip.s_ivd_create_ip_t.u4_size = sizeof(ivdext_create_ip_t);
+    s_create_ip.u4_keep_threads_active = 1;
     s_create_ip.s_ivd_create_ip_t.e_cmd = IVD_CMD_CREATE;
     s_create_ip.s_ivd_create_ip_t.u4_share_disp_buf = 0;
     s_create_ip.s_ivd_create_ip_t.e_output_format = mIvColorFormat;