Replace nonsense -1234 return value in dyn_buf_write by proper AVERROR(ENOMEM)