One could copy the initialization to the top from the while loop:
  init_sec_buffer(&outbuf[0], SECBUFFER_TOKEN, NULL, 0);
  init_sec_buffer(&outbuf[1], SECBUFFER_ALERT, NULL, 0);
  init_sec_buffer(&outbuf[2], SECBUFFER_EMPTY, NULL, 0);
  init_sec_buffer_desc(&outbuf_desc, outbuf, 3);

But memset is shorter. Current code will crash when there is any failure
before this initialization.

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to