Browse Source

obs-qsv11: Fix SEI crash caused by dangling pointer

Richard Stanway 8 years ago
parent
commit
34ee1a87c3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/obs-qsv11/obs-qsv11.c

+ 1 - 1
plugins/obs-qsv11/obs-qsv11.c

@@ -408,7 +408,7 @@ static bool update_settings(struct obs_qsv *obsqsv, obs_data_t *settings)
 static void load_headers(struct obs_qsv *obsqsv)
 {
 	DARRAY(uint8_t) header;
-	uint8_t sei = 0;
+	static uint8_t sei = 0;
 
 	// Not sure if SEI is needed.
 	// Just filling in empty meaningless SEI message.