[B2, Win 10 x64, Brief] Copying a C function body to after a C header indents the body to the level of the opening "(" in the function header. Before and after examples attached. To reproduce mark and copy the lines containing the body of vaapi_hevc_end_frame including the lines with the {}s and paste into the line following the definition of vaapi_hevc_decode_slice and you get:
static int vaapi_hevc_decode_slice(AVCodecContext *avctx,
const uint8_t *buffer,
uint32_t size)
{
av_log(avctx, AV_LOG_ERROR, "%s: Should never be called\n", __func__);
return AVERROR_BUG;
}
Interestingly if I hit Alt-U to undo then just the re-indent goes away and I have to hit Alt-U again to revert the paste. Whilst this is convenient it isn't expected!
Thanks